/* style/news.css */

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

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

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

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px; /* Limit height for hero image */
}

.page-news__hero-content {
  padding: 40px 20px;
  max-width: 800px;
  margin-top: 20px; /* Space between image and content */
}

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

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

/* Section Titles and Descriptions */
.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;
}

/* CTA Button */
.page-news__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #ffffff; /* White text for button */
  border: none;
  cursor: pointer;
  max-width: 100%; /* Ensure button adapts to width */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

/* Latest Articles Section */
.page-news__latest-articles-section,
.page-news__featured-news-section,
.page-news__faq-section,
.page-news__cta-download-section {
  padding: 80px 0;
  border-top: 1px solid #1E3A2A; /* Divider */
}

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

.page-news__article-card {
  background-color: #11271B; /* Card B G */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  border: 1px solid #2E7A4E; /* Border */
}

.page-news__article-card:hover {
  transform: translateY(-5px);
}

.page-news__article-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-news__article-content {
  padding: 20px;
  color: #F2FFF6; /* Text Main */
}

.page-news__article-title {
  font-size: 1.3em;
  margin-bottom: 10px;
  font-weight: bold;
}

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

.page-news__article-title a:hover {
  color: #2AD16F; /* Lighter green for hover */
}

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

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

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

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

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

/* Featured News Section */
.page-news__featured-item {
  display: flex;
  align-items: center;
  background-color: #11271B; /* Card B G */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  margin-bottom: 40px;
  border: 1px solid #2E7A4E; /* Border */
}

.page-news__featured-item:last-child {
  margin-bottom: 0;
}

.page-news__featured-image {
  width: 50%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.page-news__featured-content {
  width: 50%;
  padding: 30px;
  color: #F2FFF6; /* Text Main */
}

.page-news__featured-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  font-weight: bold;
}

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

.page-news__featured-title a:hover {
  color: #2AD16F; /* Lighter green for hover */
}

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

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

.page-news__featured-item--reverse {
  flex-direction: row-reverse;
}

/* FAQ Section */
.page-news__faq-list {
  margin-top: 40px;
}

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

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

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

.page-news__faq-question {
  color: #F2FFF6; /* Text Main */
}

.page-news__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #2AD16F; /* Lighter green */
}

.page-news__faq-item[open] .page-news__faq-toggle {
  transform: rotate(45deg);
}

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

.page-news__faq-answer p {
  margin-bottom: 10px;
}

.page-news__faq-link {
  color: #2AD16F; /* Lighter green */
  text-decoration: none;
  font-weight: bold;
}

.page-news__faq-link:hover {
  text-decoration: underline;
}

/* CTA Download Section */
.page-news__cta-download-section {
  text-align: center;
  padding: 80px 20px;
}

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

.page-news__cta-button--primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #ffffff;
}

.page-news__cta-button--secondary {
  background: #11271B; /* Card B G */
  border: 2px solid #2AD16F; /* Lighter green border */
  color: #2AD16F; /* Lighter green text */
}

.page-news__cta-button--secondary:hover {
  background: #2E7A4E; /* Border color for hover */
  color: #ffffff;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-news__hero-content {
    padding: 30px 15px;
  }

  .page-news__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }

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

  .page-news__featured-item {
    flex-direction: column;
  }

  .page-news__featured-image,
  .page-news__featured-content {
    width: 100%;
  }

  .page-news__featured-image {
    height: 250px;
  }

  .page-news__featured-item--reverse {
    flex-direction: column; /* Reset to column for mobile */
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding-top: 10px !important;
  }
  .page-news__hero-image {
    max-height: 400px;
  }

  .page-news__latest-articles-section,
  .page-news__featured-news-section,
  .page-news__faq-section,
  .page-news__cta-download-section {
    padding: 40px 0;
  }

  .page-news__container {
    padding: 0 15px; /* Add padding for mobile content */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Image responsive rules */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Container for images, videos, buttons */
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__cta-buttons,
  .page-news__article-card,
  .page-news__featured-item,
  .page-news__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Button responsive rules */
  .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; /* Adjust padding for full width */
    padding-right: 15px;
  }
  
  .page-news__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-news__article-content,
  .page-news__featured-content {
    padding: 15px;
  }

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

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

@media (max-width: 480px) {
  .page-news__main-title {
    font-size: 2em;
  }
  .page-news__section-title {
    font-size: 1.8em;
  }
  .page-news__hero-description,
  .page-news__section-description {
    font-size: 1em;
  }
  .page-news__article-title {
    font-size: 1.1em;
  }
  .page-news__featured-title {
    font-size: 1.3em;
  }
}