/* style/news.css */

/* Custom Colors & Typography */
:root {
  --page-news-primary-color: #11A84E;
  --page-news-secondary-color: #22C768;
  --page-news-bg-color: #08160F;
  --page-news-card-bg: #11271B;
  --page-news-text-main: #F2FFF6;
  --page-news-text-secondary: #A7D9B8;
  --page-news-border-color: #2E7A4E;
  --page-news-glow-color: #57E38D;
  --page-news-gold-color: #F2C14E;
  --page-news-divider-color: #1E3A2A;
  --page-news-deep-green: #0A4B2C;
  --page-news-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-news {
  font-family: Arial, sans-serif;
  color: var(--page-news-text-main); /* Default text color for the page */
  background-color: var(--page-news-bg-color); /* Main background color */
}

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

.page-news__section-title {
  font-size: 2.5em; /* Use em for relative sizing */
  font-weight: 700;
  color: var(--page-news-text-main);
  text-align: center;
  margin-bottom: 40px;
  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: var(--page-news-primary-color);
  border-radius: 2px;
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding as body handles header offset */
  padding-bottom: 60px;
  overflow: hidden;
}

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

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

.page-news__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px 20px;
  box-sizing: border-box;
  color: var(--page-news-text-main);
}

.page-news__main-title {
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--page-news-gold-color); /* Use gold for main title */
  margin-bottom: 20px;
  /* No fixed font-size for H1, relying on responsive scaling and other properties */
  font-size: clamp(2em, 5vw, 3.5em); /* Example: Min 2em, preferred 5vw, max 3.5em */
}

.page-news__subtitle {
  font-size: 1.1em;
  line-height: 1.6;
  color: var(--page-news-text-secondary);
  margin-bottom: 30px;
}

/* Buttons */
.page-news__btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
}

.page-news__btn--primary {
  background: var(--page-news-button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-news__btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-news__btn--secondary {
  background: transparent;
  color: var(--page-news-primary-color);
  border: 2px solid var(--page-news-primary-color);
}

.page-news__btn--secondary:hover {
  background: var(--page-news-primary-color);
  color: #ffffff;
}

/* Latest News Section */
.page-news__latest-news-section {
  padding: 80px 0;
  background-color: var(--page-news-bg-color);
}

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

.page-news__news-card {
  background-color: var(--page-news-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px 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__news-image-wrapper {
  width: 100%;
  height: 220px; /* Fixed height for consistent card images */
  overflow: hidden;
}

.page-news__news-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.page-news__news-card:hover .page-news__news-image {
  transform: scale(1.05);
}

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

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

.page-news__news-title a {
  color: var(--page-news-text-main);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__news-title a:hover {
  color: var(--page-news-primary-color);
}

.page-news__news-meta {
  font-size: 0.9em;
  color: var(--page-news-text-secondary);
  margin-bottom: 15px;
}

.page-news__news-excerpt {
  font-size: 1em;
  color: var(--page-news-text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1; /* Allow excerpt to take available space */
}

.page-news__read-more-btn {
  display: inline-block;
  color: var(--page-news-primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  align-self: flex-start; /* Align to the start of the flex container */
}

.page-news__read-more-btn:hover {
  color: var(--page-news-gold-color);
}

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

/* CTA Section */
.page-news__cta-section {
  padding: 80px 0;
  background-color: var(--page-news-deep-green);
}

.page-news__cta-box {
  background-color: var(--page-news-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 40px;
  border: 1px solid var(--page-news-border-color);
}

.page-news__cta-image {
  flex-shrink: 0;
  width: 40%; /* Adjust as needed */
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

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

.page-news__cta-title {
  font-size: 2em;
  font-weight: 700;
  color: var(--page-news-gold-color);
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-news__cta-description {
  font-size: 1.1em;
  color: var(--page-news-text-secondary);
  line-height: 1.6;
  margin-bottom: 30px;
}

/* FAQ Section */
.page-news__faq-section {
  padding: 80px 0;
  background-color: var(--page-news-bg-color);
}

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

.page-news__faq-item {
  background-color: var(--page-news-card-bg);
  border: 1px solid var(--page-news-border-color);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}

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

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--page-news-text-main);
  cursor: pointer;
  background-color: var(--page-news-deep-green);
  transition: background-color 0.3s ease;
}

.page-news__faq-question:hover {
  background-color: var(--page-news-primary-color);
}

.page-news__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-news__faq-item[open] .page-news__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' or '-' effect */
}
.page-news__faq-item.active .page-news__faq-toggle { /* For JS fallback */
  transform: rotate(45deg);
}


.page-news__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  color: var(--page-news-text-secondary);
  line-height: 1.6;
  border-top: 1px solid var(--page-news-border-color);
}

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

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

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

  .page-news__cta-box {
    flex-direction: column;
    text-align: center;
    padding: 30px;
  }

  .page-news__cta-image {
    width: 80%;
    margin-bottom: 20px;
  }

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

@media (max-width: 768px) {
  .page-news__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

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

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

  .page-news__main-title {
    font-size: clamp(1.6em, 7vw, 2.5em); /* More aggressive scaling for mobile */
  }

  .page-news__subtitle {
    font-size: 1em;
    margin-bottom: 20px;
  }

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

  .page-news__news-grid {
    grid-template-columns: 1fr; /* Stack cards on mobile */
  }

  .page-news__news-image-wrapper {
    height: 180px;
  }

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

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

  .page-news__cta-description {
    font-size: 0.95em;
  }

  .page-news__faq-question {
    font-size: 1.1em;
    padding: 18px 20px;
  }
  
  /* Mobile mandatory responsive rules */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important; /* Ensure images stretch if needed but don't overflow */
    height: auto !important;
    display: block !important;
  }
  
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__cta-box, /* Added for CTA section */
  .page-news__news-card, /* Added for news cards */
  .page-news__hero-content, /* Added for hero content */
  .page-news__latest-news-section .page-news__container, /* Specific container for news section */
  .page-news__cta-section .page-news__container, /* Specific container for CTA section */
  .page-news__faq-section .page-news__container, /* Specific container for FAQ section */
  .page-news__news-image-wrapper { /* Ensure image wrappers are also responsive */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden !important; /* Prevent overflow */
  }

  /* Video (if present) responsive rules */
  .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 !important;
    padding-right: 15px !important;
    overflow: hidden !important;
  }
  
  .page-news__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  /* Buttons responsive rules */
  .page-news__btn,
  .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; /* Ensure buttons take full width */
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px !important; /* Add internal padding for text */
    padding-right: 15px !important;
    text-align: center !important; /* Center text if button takes full width */
  }
  
  .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 !important;
    padding-right: 15px !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    flex-direction: column !important; /* Stack buttons vertically on mobile */
  }
}