/* style/news.css */

/* Custom Colors from prompt */
/* Background: #08160F */
/* Card BG: #11271B */
/* Text Main: #F2FFF6 */
/* Text Secondary: #A7D9B8 */
/* Border: #2E7A4E */
/* Button: linear-gradient(180deg, #2AD16F 0%, #13994A 100%) */
/* Glow: #57E38D */
/* Gold: #F2C14E */
/* Divider: #1E3A2A */
/* Deep Green: #0A4B2C */

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

/* Ensure images maintain aspect ratio and don't overflow */
.page-news img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px; /* Consistent with card design */
}

/* Ensure containers for images/videos/buttons are responsive */
.page-news__container,
.page-news__hero-image-wrapper,
.page-news__cta-image-wrapper,
.page-news__news-grid,
.page-news__cta-buttons,
.page-news__view-all-button-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden; /* Prevent content overflow */
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image then text */
  align-items: center;
  padding: 0 20px 60px; /* Small top padding, larger bottom for content */
  padding-top: 10px; /* Decorative top padding, body handles header offset */
  box-sizing: border-box;
  text-align: center;
}

.page-news__hero-image-wrapper {
  margin-bottom: 40px; /* Space between image and text */
  width: 100%;
  max-width: 1200px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0; /* Hero image typically full width, no border-radius here */
}

.page-news__hero-content {
  max-width: 900px;
  width: 100%;
  padding: 30px;
  background: #11271B; /* Custom Card BG, ensuring contrast */
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  border: 1px solid #2E7A4E; /* Custom Border */
}

.page-news__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Clamp for H1 */
  color: #F2FFF6; /* Custom Text Main */
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
}

.page-news__hero-description {
  font-size: 1.1em;
  color: #A7D9B8; /* Custom Text Secondary */
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1.05em;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 180px;
  box-sizing: border-box; /* Crucial for responsive buttons */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

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

.page-news__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

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

.page-news__btn-secondary:hover {
  background-color: rgba(87, 227, 141, 0.1);
  transform: translateY(-2px);
  color: #F2FFF6;
}

/* News Grid Section */
.page-news__news-grid-section {
  padding: 60px 20px;
  background-color: #08160F; /* Custom Background */
  box-sizing: border-box;
}

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

.page-news__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  color: #F2FFF6; /* Custom Text Main */
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
  position: relative;
  padding-bottom: 15px;
}

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

.page-news__section-description {
  font-size: 1.05em;
  color: #A7D9B8; /* Custom Text Secondary */
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
}

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

.page-news__news-card {
  background-color: #11271B; /* Custom Card BG */
  border: 1px solid #2E7A4E; /* Custom Border */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px 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 {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  border-bottom: 1px solid #2E7A4E; /* Custom Border */
}

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

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

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

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

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

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

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

.page-news__read-more:hover {
  color: #F2FFF6; /* Custom Text Main */
  text-decoration: underline;
}

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

/* CTA Banner Section */
.page-news__cta-banner {
  background-color: #0A4B2C; /* Custom Deep Green */
  padding: 80px 20px;
  text-align: center;
}

.page-news__cta-banner .page-news__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

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

.page-news__cta-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  color: #F2FFF6; /* Custom Text Main */
  margin-bottom: 20px;
  font-weight: 700;
}

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

.page-news__cta-image-wrapper {
  width: 100%;
  max-width: 600px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid #2E7A4E; /* Custom Border */
}

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

.page-news__faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-news__faq-item {
  background-color: #11271B; /* Custom Card BG */
  border: 1px solid #2E7A4E; /* Custom Border */
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
}

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

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

.page-news__faq-item summary:hover {
  color: #57E38D; /* Custom Glow */
}

.page-news__faq-qtext {
  flex-grow: 1;
  padding-right: 15px;
}

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

.page-news__faq-item[open] .page-news__faq-toggle {
  transform: rotate(45deg); /* Rotate plus to cross */
}

.page-news__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #A7D9B8; /* Custom Text Secondary */
  line-height: 1.6;
  max-height: 0; /* Hidden by default for JS fallback */
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding-top 0.3s ease-out;
}

.page-news__faq-item[open] .page-news__faq-answer {
  max-height: 500px; /* Adjust as needed */
  padding-top: 10px;
}

/* Base link styling */
.page-news a {
  color: #57E38D; /* Custom Glow */
  text-decoration: underline;
}

.page-news a:hover {
  color: #F2FFF6; /* Custom Text Main */
}

/* Responsive adjustments */
@media (min-width: 769px) {
  .page-news__cta-banner .page-news__container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .page-news__cta-content {
    text-align: left;
  }

  .page-news__cta-buttons {
    justify-content: flex-start;
  }
}

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

  .page-news__hero-section {
    padding: 0 15px 40px;
    padding-top: 10px !important; /* body already handles header offset */
  }

  .page-news__hero-image-wrapper {
    margin-bottom: 25px;
  }

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

  .page-news__main-title {
    font-size: 1.8em;
  }

  .page-news__hero-description {
    font-size: 1em;
  }

  .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: 12px 20px;
    font-size: 1em;
  }

  .page-news__news-grid-section,
  .page-news__cta-banner,
  .page-news__faq-section {
    padding: 40px 15px;
  }

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

  .page-news__section-description {
    font-size: 0.95em;
    margin-bottom: 40px;
  }

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

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

  .page-news__card-title {
    font-size: 1.2em;
  }

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

  .page-news__faq-answer {
    padding: 0 20px 15px;
  }

  /* Force responsive images/videos/buttons - IMPORTANT */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-news video,
  .page-news__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__video-section,
  .page-news__video-container,
  .page-news__video-wrapper,
  .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: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }

  .page-news__cta-button,
  .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;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Specific padding for video section on mobile */
  .page-news__video-section {
    padding-top: 10px !important; /* body already handles header offset */
  }
}