/* 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;
}

.page-news__section-title {
  font-size: clamp(2em, 5vw, 2.8em);
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-news__main-title {
  font-size: clamp(2.5em, 6vw, 3.2em); /* Adjusted to be slightly larger for H1 */
  font-weight: 800;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-news__description {
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

.page-news__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6; /* Text Main */
  border: 2px solid transparent;
}

.page-news__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-news__btn-secondary {
  background-color: transparent;
  color: #2AD16F; /* A lighter shade of primary for contrast */
  border: 2px solid #2AD16F;
}

.page-news__btn-secondary:hover {
  background-color: #2AD16F;
  color: #08160F; /* Background */
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, body handles main offset */
  overflow: hidden;
  background-color: #08160F;
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  margin-bottom: 30px;
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.page-news__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
  padding: 0 20px;
  box-sizing: border-box;
}

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

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

.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 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #1E3A2A; /* Divider */
}

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

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

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

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

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

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

.page-news__card-meta {
  font-size: 0.9em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 15px;
}

.page-news__card-excerpt {
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
}

.page-news__read-more {
  color: #57E38D; /* Glow */
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

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

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

/* Why Choose Section */
.page-news__why-choose-section {
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green */
}

.page-news__why-choose-section .page-news__section-title {
  color: #F2FFF6;
}

.page-news__content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-news__text-block {
  flex: 1;
  min-width: 300px;
  color: #A7D9B8;
}

.page-news__text-block p {
  margin-bottom: 20px;
  font-size: 1.05em;
  color: #A7D9B8;
}

.page-news__feature-list {
  list-style: none;
  padding: 0;
  margin-bottom: 25px;
}

.page-news__feature-list li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%2357E38D" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>') no-repeat left center;
  background-size: 18px;
  padding-left: 30px;
  margin-bottom: 10px;
  color: #F2FFF6;
}

.page-news__feature-list li strong {
  color: #F2FFF6;
}

.page-news__image-block {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-news__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  display: block;
  margin: 0 auto;
}

.page-news__why-choose-section .page-news__btn-primary {
  margin-top: 20px;
}

/* CTA Section */
.page-news__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #11A84E; /* Main Color */
  color: #F2FFF6;
}

.page-news__cta-section .page-news__section-title {
  color: #F2FFF6;
  margin-bottom: 20px;
}

.page-news__cta-section .page-news__description {
  color: #F2FFF6;
  margin-bottom: 40px;
}

.page-news__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

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

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

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

.page-news__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #1E3A2A; /* Divider */
  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.15em;
  font-weight: 600;
  color: #F2FFF6; /* Text Main */
  cursor: pointer;
  list-style: none; /* Remove default marker for details/summary */
}

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

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

.page-news__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #57E38D; /* Glow */
  transition: transform 0.3s ease;
}

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

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

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

.page-news__faq-answer a {
  color: #57E38D;
  text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__hero-image-wrapper {
    max-height: 450px;
  }
}

@media (max-width: 768px) {
  .page-news {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-news__container {
    padding: 0 15px !important;
  }

  .page-news__hero-section {
    padding-bottom: 40px;
  }

  .page-news__hero-image-wrapper {
    max-height: 300px;
    margin-bottom: 20px;
  }

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

  .page-news__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-news__section-title {
    font-size: clamp(1.8em, 7vw, 2.2em);
    margin-bottom: 30px;
  }

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

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

  .page-news__content-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .page-news__image-block {
    order: -1; /* Image appears above text on mobile */
  }

  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-news__btn-primary,
  .page-news__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 15px 20px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .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: 0;
    padding-right: 0;
    flex-wrap: wrap !important;
  }

  /* Mobile image responsiveness */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-news__section,
  .page-news__card,
  .page-news__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-news__hero-section,
  .page-news__latest-news-section,
  .page-news__why-choose-section,
  .page-news__cta-section,
  .page-news__faq-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
  }

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