/* style/news.css */

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

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

.page-news__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 30px;
  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: linear-gradient(90deg, #11A84E 0%, #22C768 100%); /* Main/Auxiliary gradient */
  border-radius: 2px;
}

.page-news__section-description {
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  margin-bottom: 40px;
}

/* --- 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;
  padding-top: 10px; /* Small top padding */
  padding-bottom: 60px;
  box-sizing: border-box;
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* Limit height to prevent image from being too tall */
    overflow: hidden;
    margin-bottom: 30px;
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-news__hero-content {
  max-width: 800px;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

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

.page-news__intro-text {
  font-size: 1.2em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

.page-news__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #ffffff;
  font-weight: bold;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
}

.page-news__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

/* --- Latest Articles Section --- */
.page-news__latest-articles-section {
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green */
}

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

.page-news__article-card {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-news__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-news__article-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency, will be object-fit: cover */
  object-fit: cover;
  display: block;
}

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

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

.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; /* Button top color */
}

.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;
  flex-grow: 1;
}

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

.page-news__read-more-link:hover {
  color: #F2C14E; /* Gold */
}

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

.page-news__view-all-button {
    display: inline-block;
    padding: 12px 25px;
    background: #11A84E; /* Main color */
    color: #F2FFF6; /* Text Main */
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-news__view-all-button:hover {
    background-color: #22C768; /* Auxiliary color */
}

/* --- Featured Video Section --- */
.page-news__featured-video-section {
  padding: 80px 0;
  background-color: #08160F; /* Background */
}

.page-news__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin-top: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  width: 100%; /* Desktop width */
  max-width: 100%; /* Desktop max-width */
  box-sizing: border-box;
}

.page-news__video-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    z-index: 2; /* Ensure overlay is above video */
}

.page-news__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
}

.page-news__video-cta-text {
    background-color: rgba(17, 168, 78, 0.8); /* Main color with transparency */
    color: #F2FFF6;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.5em;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease;
}

.page-news__video-link-overlay:hover .page-news__video-cta-text {
    background-color: rgba(34, 199, 104, 0.9); /* Auxiliary color with transparency */
    transform: translateY(-3px);
}

.page-news__video-description {
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  margin-top: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-news__faq-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-news__faq-item {
  background-color: #0A4B2C; /* Deep Green */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

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

.page-news__faq-item summary:hover {
  background-color: #1E3A2A; /* Divider */
}

.page-news__faq-toggle {
  font-size: 1.5em;
  font-weight: normal;
  color: #57E38D; /* Glow */
  margin-left: 15px;
}

.page-news__faq-item[open] .page-news__faq-toggle {
  content: '−'; /* Change to minus when open */
}

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

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

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

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

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

.page-news__btn-secondary {
  background: #11271B; /* Card BG */
  color: #2AD16F; /* Button top color */
  border: 2px solid #2AD16F; /* Button top color */
}

.page-news__btn-secondary:hover {
  background: #2AD16F; /* Button top color */
  color: #ffffff;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-news__section-title {
    font-size: 2em;
  }

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

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

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

  .page-news__hero-section {
    padding-bottom: 40px;
  }

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

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

  .page-news__intro-text {
    font-size: 1em;
  }

  .page-news__cta-button {
    padding: 12px 25px;
    font-size: 0.9em;
  }

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

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

  .page-news__latest-articles-section,
  .page-news__featured-video-section,
  .page-news__faq-section,
  .page-news__cta-section {
    padding: 60px 0;
  }

  .page-news__articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

  .page-news__article-card {
    margin: 0 15px; /* Add horizontal margin for cards */
  }

  .page-news__article-image {
    height: 200px; /* Adjust height for mobile */
  }

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

  .page-news__video-wrapper {
    margin-left: 15px;
    margin-right: 15px;
  }

  .page-news__video-cta-text {
      font-size: 1.2em;
      padding: 12px 25px;
  }

  .page-news__video-description {
      font-size: 0.95em;
      padding: 0 15px;
  }

  .page-news__faq-list {
    margin-left: 15px;
    margin-right: 15px;
  }

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

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

  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
    margin-left: 15px;
    margin-right: 15px;
  }

  .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; /* Ensure inner padding is maintained */
    padding-right: 15px; /* Ensure inner padding is maintained */
  }
  
  .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;
    flex-wrap: wrap !important;
    gap: 10px;
    overflow: hidden !important; /* Prevent overflow */
  }

  /* Images responsive styles */
  .page-news img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-news__section,
  .page-news__card,
  .page-news__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-news__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  /* Videos responsive styles */
  .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 {
    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;
  }
}

/* Ensure no filter is used for images */
.page-news img {
  filter: none;
}