/* style/news.css */

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

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

.page-news__section-title,
.page-news__cta-title {
  font-size: 2.5em;
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-news__section-title::after,
.page-news__cta-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #57E38D; /* Glow */
  border-radius: 2px;
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 10px; /* Small top padding */
  padding-bottom: 60px;
}

.page-news__hero-image-wrapper {
  width: 100%;
  position: relative;
  margin-bottom: 40px;
}

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

.page-news__hero-content {
  text-align: center;
  max-width: 800px;
  margin-top: -80px; /* Adjust to slightly overlap the image section for visual flow */
  position: relative;
  z-index: 1;
  background-color: rgba(17, 39, 27, 0.9); /* Card BG with slight transparency */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E; /* Border */
}

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

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

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-news__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

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

.page-news__news-grid,
.page-news__featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 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.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #2E7A4E; /* Border */
}

.page-news__news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-news__card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.page-news__card-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

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

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

.page-news__card-title {
  font-size: 1.4em;
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
  line-height: 1.3;
}

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

.page-news__read-more {
  color: #57E38D; /* Glow */
  font-weight: 600;
  display: flex;
  align-items: center;
}

.page-news__icon-arrow {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.page-news__news-card:hover .page-news__icon-arrow {
  transform: translateX(5px);
}

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

.page-news__btn-secondary {
  background-color: transparent;
  color: #57E38D; /* Glow */
  border: 2px solid #57E38D; /* Glow */
}

.page-news__btn-secondary:hover {
  background-color: #57E38D; /* Glow */
  color: #08160F; /* Background */
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(87, 227, 141, 0.4);
}

/* Featured Articles Section specific styles if needed */
.page-news__featured-articles-section {
  background-color: #0A4B2C; /* Deep Green */
  padding: 80px 0;
  border-top: 1px solid #1E3A2A; /* Divider */
  border-bottom: 1px solid #1E3A2A; /* Divider */
}

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

.page-news__featured-articles-section .page-news__section-title::after {
  background-color: #F2C14E; /* Gold */
}

.page-news__featured-grid .page-news__news-card {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
}

.page-news__featured-grid .page-news__card-title {
  color: #F2C14E; /* Gold */
}

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

/* FAQ Section */
.page-news__faq-section {
  padding: 60px 0;
}

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

.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 */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

.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: 20px;
  color: #57E38D; /* Glow */
}

.page-news__faq-item[open] .page-news__faq-toggle {
  color: #F2C14E; /* Gold */
}

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

/* CTA Banner */
.page-news__cta-banner {
  background: linear-gradient(90deg, #0A4B2C 0%, #13994A 100%); /* Deep Green to a shade of Button */
  padding: 80px 0;
  text-align: center;
  border-radius: 12px;
  margin-top: 60px;
  margin-bottom: 60px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  border: 1px solid #2E7A4E; /* Border */
}

.page-news__cta-content {
  max-width: 900px;
}

.page-news__cta-title {
  color: #F2FFF6; /* Text Main */
  margin-bottom: 25px;
  font-size: 2.8em;
}

.page-news__cta-title::after {
  background-color: #F2C14E; /* Gold */
}

.page-news__cta-description {
  font-size: 1.2em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 40px;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-news__main-title {
    font-size: clamp(2em, 4.5vw, 2.8em);
  }
  .page-news__hero-content {
    margin-top: -60px;
    padding: 25px;
  }
  .page-news__news-grid,
  .page-news__featured-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-news__section-title,
  .page-news__cta-title {
    font-size: 2em;
  }
  .page-news__cta-banner {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  /* All images */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* All image containers */
  .page-news__hero-image-wrapper,
  .page-news__news-card,
  .page-news__card-image,
  .page-news__container,
  .page-news__latest-news-section,
  .page-news__featured-articles-section,
  .page-news__faq-section,
  .page-news__cta-banner,
  .page-news__hero-section,
  .page-news__hero-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Specific adjustments for hero section */
  .page-news__hero-section {
    padding-bottom: 40px;
    padding-top: 10px !important;
  }
  .page-news__hero-content {
    margin-top: -40px; /* Less overlap on mobile */
    padding: 20px;
  }

  /* H1 font size for mobile */
  .page-news__main-title {
    font-size: 1.8em; /* Adjusted for smaller screens */
  }

  /* News cards */
  .page-news__news-grid,
  .page-news__featured-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-news__card-image {
    height: 180px; /* Smaller height for mobile cards */
  }
  .page-news__card-content {
    padding: 15px;
  }
  .page-news__card-title {
    font-size: 1.2em;
  }
  .page-news__card-excerpt {
    font-size: 0.95em;
  }

  /* Buttons */
  .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;
    padding: 12px 20px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-news__cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
    padding: 0;
  }

  /* Section titles */
  .page-news__section-title,
  .page-news__cta-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-news__description,
  .page-news__cta-description {
    font-size: 1em;
  }

  /* FAQ */
  .page-news__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-news__faq-answer {
    padding: 0 20px 15px;
  }
  .page-news__faq-toggle {
    font-size: 1.3em;
  }

  .page-news__cta-banner {
    padding: 40px 0;
  }
}