/* style/news.css */

/* --- General Styles for page-news --- */
.page-news {
  font-family: 'Arial', sans-serif;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  line-height: 1.6;
}

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

.page-news__section-title {
  font-size: 2.5em;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-news__section-description {
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  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;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* body already has --header-offset, this is for visual spacing */
  overflow: hidden; /* Ensure content doesn't overflow */
}

.page-news__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-news__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-news__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  color: #F2FFF6;
  padding: 40px 20px;
  background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
}

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

.page-news__description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #A7D9B8;
}

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

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

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

.page-news__news-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: 10px;
  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 #2E7A4E; /* Border */
}

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

.page-news__news-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

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

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

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

.page-news__news-title a:hover {
  color: #2AD16F; /* Highlight color */
}

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

.page-news__news-excerpt {
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
  min-height: 70px; /* Ensure consistent height for excerpts */
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Limit to 3 lines */
  -webkit-box-orient: vertical;
}

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

.page-news__read-more:hover {
  color: #57E38D; /* Glow */
}

.page-news__cta-block {
  text-align: center;
  margin-top: 50px;
}

.page-news__cta-button--secondary {
  background: none;
  border: 2px solid #2AD16F;
  color: #2AD16F;
  box-shadow: none;
}

.page-news__cta-button--secondary:hover {
  background: #2AD16F;
  color: #F2FFF6;
}

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

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

.page-news__guide-card {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  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 #2E7A4E; /* Border */
  padding-bottom: 20px; /* Added padding for consistency */
}

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

.page-news__guide-image {
  width: 100%;
  height: 200px; /* Consistent height for guide images */
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
  min-width: 200px;
  min-height: 200px;
}

.page-news__guide-title {
  font-size: 1.3em;
  margin: 0 20px 10px 20px;
  line-height: 1.3;
}

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

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

.page-news__guide-excerpt {
  font-size: 0.95em;
  color: #A7D9B8; /* Text Secondary */
  margin: 0 20px 20px 20px;
  min-height: 60px; /* Consistent height */
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* --- CTA Section (Dark) --- */
.page-news__cta-section {
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green */
  text-align: center;
}

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

.page-news__cta-title {
  font-size: 2.2em;
  color: #F2FFF6;
  margin-bottom: 20px;
}

.page-news__cta-description {
  font-size: 1.1em;
  color: #A7D9B8;
  margin-bottom: 40px;
}

.page-news__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

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

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

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

.page-news__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  cursor: pointer;
  outline: none;
  list-style: none; /* Hide default marker */
}

.page-news__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for Webkit browsers */
}

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

.page-news__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #2AD16F;
  transition: transform 0.3s ease;
}

.page-news__faq-item[open] .page-news__faq-toggle {
  transform: rotate(45deg); /* Rotate '+' to 'x' or just change to '-' */
  content: "−"; /* Visually change the plus to minus */
}

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

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

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

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

  .page-news__section-title {
    font-size: 2em;
  }

  .page-news__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-news__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* Ensure minimal top padding */
  }

  .page-news__hero-content {
    padding: 30px 15px;
  }

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

  .page-news__description {
    font-size: 1em;
  }

  .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-left: 15px;
    padding-right: 15px;
  }

  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-news__latest-updates-section,
  .page-news__guide-section,
  .page-news__cta-section,
  .page-news__faq-section {
    padding: 50px 0;
  }

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

  .page-news__news-image,
  .page-news__guide-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-news__news-card,
  .page-news__guide-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-news__faq-item summary {
    font-size: 1.1em;
    padding: 15px;
  }

  .page-news__faq-answer {
    padding: 0 15px 15px 15px;
    font-size: 0.95em;
  }

  /* Ensure all content sections have proper mobile padding */
  .page-news__latest-updates-section .page-news__container,
  .page-news__guide-section .page-news__container,
  .page-news__cta-section .page-news__container,
  .page-news__faq-section .page-news__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Image responsiveness for all img tags */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}