/* style/news.css */

/* General styles for the news page */
.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #f4f7f6; /* Matching body background */
}

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

.page-news__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #11A84E; /* Brand color for titles */
  line-height: 1.2;
}

.page-news__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

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

.page-news__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit image height */
  overflow: hidden;
  margin-bottom: 20px;
}

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

.page-news__hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin: 0 auto;
}

.page-news__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size */
  font-weight: 900;
  color: #F2C14E; /* Gold color for main title */
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: 1px;
}

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

.page-news__cta-button {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1.1em;
  font-weight: bold;
  color: #ffffff;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  border: none;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-news__cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-news__small-button {
  padding: 10px 20px;
  font-size: 1em;
}

/* Introduction Section */
.page-news__introduction-section {
  padding: 60px 0;
  background-color: #f4f7f6;
  color: #333333;
}

/* Highlights Section */
.page-news__highlights-section {
  padding: 60px 0;
  background-color: #f4f7f6;
  color: #333333;
}

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

.page-news__highlight-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

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

.page-news__highlight-image {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-news__card-title {
  font-size: 1.6em;
  font-weight: bold;
  color: #11A84E;
  margin-bottom: 15px;
}

.page-news__card-text {
  font-size: 1em;
  color: #555555;
  text-align: justify;
}

/* News Types Section */
.page-news__news-types-section {
  padding: 60px 0;
  background-color: #08160F;
  color: #F2FFF6;
}

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

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

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

.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 a {
  font-size: 1.4em;
  font-weight: bold;
  color: #F2C14E; /* Gold color for news titles */
  text-decoration: none;
  margin-bottom: 10px;
  display: block;
}

.page-news__card-title a:hover {
  text-decoration: underline;
}

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

.page-news__card-excerpt {
  font-size: 1em;
  color: #F2FFF6; /* Main text color */
  margin-bottom: 20px;
  flex-grow: 1;
}

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

.page-news__read-more:hover {
  color: #2AD16F;
  text-decoration: underline;
}

.page-news__all-news-cta {
  text-align: center;
  margin-top: 50px;
}

/* Why Choose Section */
.page-news__why-choose-section {
  padding: 60px 0;
  background-color: #08160F;
  color: #F2FFF6;
}

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

.page-news__reason-item {
  background-color: #11271B; /* Card BG color */
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding: 30px;
  text-align: center;
  border: 1px solid #2E7A4E; /* Border color */
}

.page-news__reason-icon {
  width: 100%;
  height: auto;
  max-height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-news__reason-title {
  font-size: 1.5em;
  font-weight: bold;
  color: #F2C14E; /* Gold color for titles */
  margin-bottom: 10px;
}

.page-news__reason-text {
  font-size: 1em;
  color: #F2FFF6; /* Main text color */
}

/* Join Guide Section */
.page-news__join-guide-section {
  padding: 60px 0;
  background-color: #f4f7f6;
  color: #333333;
}

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

.page-news__step-item {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  border: 1px solid #e0e0e0;
}

.page-news__step-title {
  font-size: 1.5em;
  font-weight: bold;
  color: #11A84E;
  margin-bottom: 15px;
}

.page-news__step-text {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
}

/* FAQ Section */
.page-news__faq-section {
  padding: 60px 0;
  background-color: #f4f7f6;
  color: #333333;
}

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

.page-news__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: #11A84E;
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
}

.page-news__faq-item[open] > .page-news__faq-question {
  background-color: #e6ffe6;
  border-bottom-color: #11A84E;
}

.page-news__faq-question:hover {
  background-color: #e6ffe6;
}

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

.page-news__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #11A84E;
}

/* Hide default details marker */
.page-news__faq-item summary::-webkit-details-marker {
  display: none;
}
.page-news__faq-item summary {
  list-style: none;
}

.page-news__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #555555;
  background-color: #ffffff;
}

/* CTA Bottom Section */
.page-news__cta-bottom-section {
  padding: 60px 20px;
  text-align: center;
  background-color: #0A4B2C; /* Deep Green */
  color: #F2FFF6;
}

.page-news__cta-bottom-section .page-news__section-title {
  color: #F2C14E; /* Gold for title */
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-news__description {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-news__section-title {
    font-size: 1.8em;
  }
  .page-news__main-title {
    font-size: clamp(1.8em, 6vw, 2.8em);
  }
  .page-news__description {
    font-size: 1em;
  }
  .page-news__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }
  .page-news__introduction-section,
  .page-news__highlights-section,
  .page-news__news-types-section,
  .page-news__why-choose-section,
  .page-news__join-guide-section,
  .page-news__faq-section,
  .page-news__cta-bottom-section {
    padding: 40px 0;
  }
  .page-news__container {
    padding: 0 15px;
  }

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

  /* Ensure image containers are responsive */
  .page-news__hero-image-wrapper,
  .page-news__highlight-card,
  .page-news__news-card,
  .page-news__reason-item,
  .page-news__step-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    margin-left: auto;
    margin-right: auto;
  }

  /* Buttons responsive */
  .page-news__cta-button,
  .page-news__small-button,
  .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;
    padding-right: 15px;
  }

  .page-news__guide-steps,
  .page-news__highlight-grid,
  .page-news__news-category-grid,
  .page-news__why-choose-grid {
    grid-template-columns: 1fr;
  }

  .page-news__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-news__faq-answer {
    padding: 15px 20px;
  }
}