/* style/news.css */

/* Base styles for the news page */
.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;
}

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

.page-news__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  position: relative;
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-news__hero-content {
  position: relative; /* Ensure content is above image filter */
  z-index: 10;
  max-width: 900px;
  margin-top: 40px;
}

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

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

.page-news__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

/* Section Titles */
.page-news__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #F2FFF6;
  text-align: center;
  margin-bottom: 50px;
  padding-top: 40px;
}

/* Latest News Section */
.page-news__latest-news-section {
  padding: 80px 0;
  background-color: #08160F; /* Background */
}

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

.page-news__news-card {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  border: 1px solid #2E7A4E; /* Border */
}

.page-news__news-card:hover {
  transform: translateY(-5px);
}

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

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

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

.page-news__card-title a {
  color: #F2FFF6;
  text-decoration: none;
}

.page-news__card-title a:hover {
  color: #2AD16F;
}

.page-news__card-meta {
  font-size: 0.9rem;
  color: #A7D9B8;
  margin-bottom: 15px;
}

.page-news__card-description {
  font-size: 1rem;
  color: #A7D9B8;
  margin-bottom: 20px;
}

.page-news__read-more-button {
  display: inline-block;
  color: #2AD16F;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-news__read-more-button:hover {
  color: #57E38D;
}

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

/* Featured News Section */
.page-news__featured-news-section {
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green */
}

.page-news__featured-article {
  display: flex;
  flex-direction: column;
  gap: 30px;
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid #2E7A4E;
}

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

.page-news__featured-content {
  padding: 30px;
}

.page-news__featured-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: #F2FFF6;
  margin-bottom: 15px;
}

.page-news__featured-meta {
  font-size: 0.95rem;
  color: #A7D9B8;
  margin-bottom: 20px;
}

.page-news__featured-description {
  font-size: 1.05rem;
  color: #A7D9B8;
  margin-bottom: 30px;
}

/* Promotions & Updates Section */
.page-news__promotions-updates-section {
  padding: 80px 0;
  background-color: #08160F; /* Background */
}

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

.page-news__promo-card {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  border: 1px solid #2E7A4E;
}

.page-news__promo-card:hover {
  transform: translateY(-5px);
}

/* FAQ Section */
.page-news__faq-section {
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green */
}

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

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

.page-news__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #F2FFF6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

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

.page-news__faq-item summary:hover {
  background-color: rgba(46, 122, 78, 0.2); /* Slightly lighter hover for border color */
}

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

.page-news__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  margin-left: 20px;
  color: #57E38D; /* Glow */
}

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

/* Join CTA Section */
.page-news__join-cta {
  padding: 80px 0;
  text-align: center;
  background-color: #08160F; /* Background */
}

.page-news__cta-description {
  font-size: 1.1rem;
  color: #A7D9B8;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

  .page-news__featured-article {
    flex-direction: column;
  }

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

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

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

  .page-news__intro-text,
  .page-news__cta-description {
    font-size: 1rem;
  }

  .page-news__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .page-news__latest-news-section,
  .page-news__featured-news-section,
  .page-news__promotions-updates-section,
  .page-news__faq-section,
  .page-news__join-cta {
    padding: 50px 0;
  }

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

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

  .page-news__featured-title {
    font-size: 1.6rem;
  }

  .page-news__featured-content,
  .page-news__card-content,
  .page-news__faq-item summary,
  .page-news__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Mobile image responsiveness */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Mobile button responsiveness */
  .page-news__cta-button,
  .page-news__read-more-button {
    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;
  }
  
  .page-news__hero-content .page-news__cta-button {
    padding-left: 30px !important;
    padding-right: 30px !important;
  }

  /* Mobile container responsiveness */
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__hero-section,
  .page-news__latest-news-section,
  .page-news__featured-news-section,
  .page-news__promotions-updates-section,
  .page-news__faq-section,
  .page-news__join-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-news__hero-image-wrapper {
    max-height: 400px;
  }
}

@media (max-width: 480px) {
  .page-news__main-title {
    font-size: 1.8rem;
  }

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

  .page-news__cta-button {
    padding: 12px 20px;
  }
}