/* style/news.css */

/* Base styles for the page */
.page-news {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Light text for dark background */
  background-color: #08160F; /* Custom dark background */
}

/* Container for content width */
.page-news__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

/* Section titles and descriptions */
.page-news__section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: #F2FFF6;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-news__section-description {
  font-size: 16px;
  color: #A7D9B8;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

.page-news__hero-image-wrapper {
  width: 100%;
  max-height: 70vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

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

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

.page-news__hero-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  color: #F2FFF6;
  margin-bottom: 20px;
  line-height: 1.1;
}

.page-news__hero-description {
  font-size: 18px;
  color: #A7D9B8;
  margin-bottom: 30px;
}

.page-news__hero-cta {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  color: #ffffff;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-news__hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

/* Latest News Section */
.page-news__latest-news {
  padding: 60px 0;
  background-color: #0A4B2C; /* Deep Green for a section */
}

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

.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;
  display: flex;
  flex-direction: column;
}

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

.page-news__card-image-wrapper {
  width: 100%;
  height: 225px; /* Fixed height for consistent card appearance */
  overflow: hidden;
}

.page-news__card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.page-news__news-card:hover .page-news__card-image {
  transform: scale(1.05);
}

.page-news__card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-news__card-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.3;
}

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

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

.page-news__card-date {
  font-size: 14px;
  color: #A7D9B8;
  margin-bottom: 10px;
  display: block;
}

.page-news__card-excerpt {
  font-size: 16px;
  color: #A7D9B8;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__card-read-more {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  color: #2AD16F;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__card-read-more:hover {
  color: #57E38D;
}

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

.page-news__view-all-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  color: #11A84E; /* Text color for secondary button */
  background-color: #F2FFF6; /* Light background for secondary button */
  border: 2px solid #11A84E;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.page-news__view-all-button:hover {
  background-color: #11A84E;
  color: #F2FFF6;
  transform: translateY(-2px);
}

/* Featured Articles Section (similar to latest news, but can have different styling if needed) */
.page-news__featured-articles {
  padding: 60px 0;
  background-color: #08160F; /* Main background color */
}

/* FAQ Section */
.page-news__faq-section {
  padding: 60px 0;
  background-color: #11271B; /* Card BG for FAQ section */
}

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

.page-news__faq-item {
  background-color: #0A4B2C; /* Deep Green for individual FAQ item */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid #2E7A4E;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: 700;
  color: #F2FFF6;
  cursor: pointer;
  list-style: none; /* 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: 24px;
  font-weight: 700;
  color: #57E38D;
  margin-left: 15px;
  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: 16px;
  color: #A7D9B8;
}

/* CTA Section */
.page-news__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #08160F;
}

.page-news__cta-title {
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 800;
  color: #F2FFF6;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-news__cta-description {
  font-size: 18px;
  color: #A7D9B8;
  max-width: 700px;
  margin: 0 auto 40px auto;
}

.page-news__cta-button {
  display: inline-block;
  padding: 18px 40px;
  border-radius: 10px;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  color: #ffffff;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-news__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(34, 199, 104, 0.5);
}

/* Responsive styles */
@media (max-width: 992px) {
  .page-news__news-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-news__hero-title {
    font-size: clamp(28px, 4.5vw, 48px);
  }
  .page-news__hero-description {
    font-size: 16px;
  }
  .page-news__card-title {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .page-news__container {
    padding: 0 15px !important;
  }
  .page-news__hero-section,
  .page-news__latest-news,
  .page-news__featured-articles,
  .page-news__faq-section,
  .page-news__cta-section {
    padding: 40px 0 !important;
  }
  .page-news__hero-section {
    padding-top: 10px !important; /* Body handles header offset */
  }
  .page-news__hero-image-wrapper {
    max-height: 50vh;
  }
  .page-news__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-news__hero-content {
    padding: 0 15px;
  }
  .page-news__hero-cta,
  .page-news__view-all-button,
  .page-news__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 15px 20px;
  }
  .page-news__news-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-news__card-image,
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-news__faq-question {
    font-size: 16px;
    padding: 15px 20px;
  }
  .page-news__faq-answer {
    padding: 0 20px 15px 20px;
  }
  .page-news__section-title,
  .page-news__cta-title {
    font-size: 24px;
  }
  .page-news__section-description,
  .page-news__cta-description {
    font-size: 15px;
  }
}