/* style/news.css */

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

.page-news {
  background-color: var(--page-news-bg-primary);
  color: var(--page-news-text-main);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

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

.page-news__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7);
}

.page-news__hero-content {
  position: relative; /* Ensure content is above image in normal flow */
  z-index: 2;
  margin-top: -150px; /* Pull content up slightly over image for visual appeal, but not overlapping text */
  padding: 0 20px;
  max-width: 800px;
}

.page-news__hero-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  color: var(--page-news-text-main);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-news__cta-button {
  display: inline-block;
  background: var(--page-news-button-gradient);
  color: var(--page-news-text-main);
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-news__cta-button:hover {
  transform: translateY(-3px);
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%); /* Invert gradient on hover */
}

.page-news__cta-button--large {
  padding: 18px 35px;
  font-size: 1.1em;
}

/* Section Titles and Descriptions */
.page-news__section-title {
  font-size: 2.5em;
  color: var(--page-news-text-main);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  padding-top: 40px;
}

.page-news__section-description {
  font-size: 1.1em;
  color: var(--page-news-text-secondary);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Latest News Section */
.page-news__latest-news-section,
.page-news__featured-section,
.page-news__faq-section,
.page-news__cta-bottom-section {
  padding: 60px 0;
  background-color: var(--page-news-bg-primary);
}

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

.page-news__news-card,
.page-news__featured-card {
  background-color: var(--page-news-bg-secondary);
  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__news-card:hover,
.page-news__featured-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-news__news-card-image,
.page-news__featured-card-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

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

.page-news__news-card-title,
.page-news__featured-card-title {
  font-size: 1.4em;
  color: var(--page-news-text-main);
  margin-bottom: 10px;
  font-weight: bold;
  line-height: 1.3;
}

.page-news__news-card-title a,
.page-news__featured-card-title a {
  color: inherit;
  text-decoration: none;
}

.page-news__news-card-title a:hover,
.page-news__featured-card-title a:hover {
  color: var(--page-news-glow-color);
}

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

.page-news__news-card-summary {
  font-size: 1em;
  color: var(--page-news-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__read-more-button {
  display: inline-block;
  color: var(--page-news-glow-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  align-self: flex-start;
}

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

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

.page-news__view-all-button {
  padding: 12px 25px;
  font-size: 1em;
}

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

.page-news__faq-item {
  background-color: var(--page-news-bg-secondary);
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.page-news__faq-item summary {
  list-style: none;
}

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

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

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

.page-news__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--page-news-glow-color);
  margin-left: 15px;
}

.page-news__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: var(--page-news-text-secondary);
}

/* CTA Bottom Section */
.page-news__cta-bottom-section {
  background-color: var(--page-news-deep-green);
  text-align: center;
  padding: 80px 0;
  border-radius: 12px;
  margin: 60px auto;
  max-width: 1000px;
}

.page-news__cta-bottom-section .page-news__section-title {
  color: var(--page-news-text-main);
  padding-top: 0;
}

.page-news__cta-bottom-section .page-news__section-description {
  color: var(--page-news-text-secondary);
  margin-bottom: 40px;
}

/* General image styling for content area */
.page-news img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__hero-content {
    margin-top: -100px;
  }

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

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

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

  .page-news__hero-content {
    margin-top: -80px;
  }

  .page-news__hero-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

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

  .page-news__section-title {
    font-size: 2em;
    padding-top: 20px;
  }

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

  .page-news__news-grid,
  .page-news__featured-grid {
    grid-template-columns: 1fr;
  }

  .page-news__news-card-image,
  .page-news__featured-card-image {
    height: 180px;
  }

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

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

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

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

  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__hero-section,
  .page-news__latest-news-section,
  .page-news__featured-section,
  .page-news__faq-section,
  .page-news__cta-bottom-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-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;
    padding-right: 15px;
  }

  .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;
    display: flex;
    flex-direction: column; /* Ensure buttons stack vertically */
  }
}

@media (max-width: 480px) {
  .page-news__hero-content {
    margin-top: -60px;
  }

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

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

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

  .page-news__faq-question {
    font-size: 1em;
  }
}