/* style/news.css */

/* --- General Styling --- */
.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #08160F; /* Background color from custom palette */
  color: #F2FFF6; /* Main text color from custom palette for dark background */
}

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

.page-news__section-title {
  font-size: clamp(1.8rem, 2.5vw, 2.5rem); /* Responsive H2 font size */
  color: #F2FFF6; /* Main text color */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-news__section-description {
  font-size: 1.1rem;
  color: #A7D9B8; /* Secondary text color */
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Hero Section --- */
.page-news__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  padding: 60px 0 40px 0; /* Adjusted padding to prevent header overlap, small top padding for hero */
  overflow: hidden;
  box-sizing: border-box;
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 500px; /* Limit hero image height */
  margin-bottom: 30px; /* Space between image and content */
}

.page-news__hero-content {
  text-align: center;
  padding: 0 20px;
  max-width: 900px;
  z-index: 1; /* Ensure content is above any potential background layers */
}

.page-news__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive H1 font size */
  color: #F2FFF6; /* Main text color */
  margin-bottom: 15px;
  line-height: 1.2;
  font-weight: bold;
}

.page-news__hero-description {
  font-size: 1.2rem;
  color: #A7D9B8; /* Secondary text color */
  margin-bottom: 30px;
}

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

/* --- Buttons --- */
.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-news__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button color */
  color: #F2FFF6; /* Main text color for button */
  border: 2px solid transparent;
}

.page-news__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-news__btn-secondary {
  background-color: transparent;
  color: #2AD16F; /* Green color for secondary button text */
  border: 2px solid #2AD16F; /* Green border */
}

.page-news__btn-secondary:hover {
  background-color: #2AD16F;
  color: #08160F; /* Dark background color for hover text */
}

.page-news__btn-center {
  margin-left: auto;
  margin-right: auto;
  display: block; /* Make it a block element to center with auto margins */
  max-width: 300px; /* Limit width for centering */
}

/* --- Latest News Section --- */
.page-news__latest-news-section {
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green from custom palette */
}

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

.page-news__news-card {
  background-color: #11271B; /* Card BG from custom palette */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

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

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

.page-news__card-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
  line-height: 1.3;
  font-weight: bold;
}

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

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

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

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

.page-news__read-more {
  color: #2AD16F; /* Green color for link */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  align-self: flex-start;
}

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

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

/* --- Updates & Events Section --- */
.page-news__updates-events-section {
  padding: 80px 0;
  background-color: #08160F; /* Background color from custom palette */
}

.page-news__update-item {
  background-color: #11271B; /* Card BG from custom palette */
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-news__update-title {
  font-size: 1.5rem;
  color: #F2FFF6; /* Main text color */
  margin-bottom: 10px;
  font-weight: bold;
}

.page-news__update-date {
  font-size: 0.95rem;
  color: #A7D9B8; /* Secondary text color */
  margin-bottom: 15px;
}

.page-news__update-text {
  font-size: 1rem;
  color: #A7D9B8; /* Secondary text color */
  margin-bottom: 20px;
}

/* --- Promotional News Section --- */
.page-news__promotional-news-section {
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green from custom palette */
}

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

.page-news__promo-card {
  background-color: #11271B; /* Card BG from custom palette */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-news__promo-title {
  font-size: 1.4rem;
  color: #F2FFF6; /* Main text color */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-news__promo-text {
  font-size: 1.0rem;
  color: #A7D9B8; /* Secondary text color */
  margin-bottom: 25px;
  flex-grow: 1;
}

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

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

.page-news__faq-item {
  background-color: #11271B; /* Card BG from custom palette */
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  overflow: hidden; /* Ensure content doesn't overflow when collapsed */
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #F2FFF6; /* Main text color */
  cursor: pointer;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
  -webkit-touch-callout: none; /* Disable callout on iOS */
  -webkit-user-select: none;   /* Disable text selection on iOS */
  -khtml-user-select: none;    /* Disable text selection on Konqueror */
  -moz-user-select: none;      /* Disable text selection on Firefox */
  -ms-user-select: none;       /* Disable text selection on IE/Edge */
  user-select: none;           /* Standard property */
}

.page-news__faq-question::-webkit-details-marker {
  display: none;
}

.page-news__faq-item[open] .page-news__faq-question {
  background-color: #0A4B2C; /* Deep Green for open FAQ item */
}

.page-news__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #2AD16F; /* Green color for toggle */
}

.page-news__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  color: #A7D9B8; /* Secondary text color */
  /* For details tag, the content is naturally hidden/shown */
}

/* --- Call to Action Section --- */
.page-news__cta-section {
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green from custom palette */
  text-align: center;
}

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

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-news__hero-image {
    max-height: 400px;
  }
}

@media (max-width: 768px) {
  .page-news__container {
    padding: 0 15px;
  }

  .page-news__hero-section {
    padding-top: 10px !important; /* Small top padding for hero on mobile */
    padding-bottom: 30px;
  }

  .page-news__hero-image {
    max-height: 300px;
    margin-bottom: 20px;
  }

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

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

  .page-news__cta-group {
    flex-direction: column;
    gap: 15px;
  }

  .page-news__btn-primary,
  .page-news__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }
  
  .page-news__btn-center {
    max-width: 100% !important;
    width: 100% !important;
  }

  .page-news__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .page-news__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  .page-news__latest-news-section,
  .page-news__updates-events-section,
  .page-news__promotional-news-section,
  .page-news__faq-section,
  .page-news__cta-section {
    padding: 50px 0;
  }

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

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

  .page-news__card-title {
    font-size: 1.1rem;
  }

  .page-news__card-excerpt {
    font-size: 0.9rem;
  }

  .page-news__update-title,
  .page-news__promo-title {
    font-size: 1.2rem;
  }

  .page-news__faq-question {
    font-size: 1.1rem;
    padding: 15px 20px;
  }

  .page-news__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 0.95rem;
  }
  
  /* Image, video, button responsive adaptions */
  .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__video-section,
  .page-news__video-container,
  .page-news__video-wrapper,
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .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;
  }

  .page-news__video-section {
    padding-top: 10px !important;
  }
  
  .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;
  }
  
  .page-news__cta-group {
    flex-direction: column;
    gap: 10px;
  }
}