/* style/news.css */

/* Body background is handled by shared.css var(--site-bg). 
   Content sections adapt text/bg colors for contrast. */

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

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

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

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

.page-news__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

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

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

.page-news__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* H1 font size constraint */
  color: var(--color-gold);
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.page-news__description {
  font-size: 1.1em;
  color: var(--color-text-secondary);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__btn-primary {
  background: var(--btn-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-news__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
}

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

.page-news__btn-secondary:hover {
  background: var(--color-primary);
  color: #ffffff;
  transform: translateY(-3px);
}

/* Section Titles */
.page-news__section-title {
  font-size: 2.2em;
  color: var(--color-gold);
  text-align: center;
  margin-bottom: 15px;
  font-weight: bold;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.page-news__section-subtitle {
  font-size: 1.1em;
  color: var(--color-text-secondary);
  text-align: center;
  margin-bottom: 40px;
}

/* Featured News */
.page-news__featured-news {
  padding: 60px 0;
  background-color: var(--color-bg-card);
}

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

.page-news__news-card {
  background: var(--color-deep-green);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  border: 1px solid var(--color-border);
}

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

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

.page-news__card-content {
  padding: 25px;
}

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

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

.page-news__card-title a:hover {
  color: var(--color-gold);
}

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

.page-news__card-excerpt {
  font-size: 1em;
  color: var(--color-text-main);
  margin-bottom: 20px;
}

.page-news__read-more {
  display: inline-block;
  color: var(--color-secondary);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

.page-news__view-all-button {
  text-align: center;
}

/* Latest Articles */
.page-news__latest-articles {
  padding: 60px 0;
  background-color: var(--color-bg-main);
}

.page-news__article-item {
  display: flex;
  background: var(--color-bg-card);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--color-border);
}

.page-news__article-image {
  width: 40%;
  height: auto;
  object-fit: cover;
  display: block;
}

.page-news__article-content {
  padding: 25px;
  width: 60%;
}

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

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

.page-news__article-title a:hover {
  color: var(--color-gold);
}

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

.page-news__article-excerpt {
  font-size: 1em;
  color: var(--color-text-main);
  margin-bottom: 20px;
}

.page-news__pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 50px;
}

.page-news__pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-deep-green);
  color: var(--color-text-main);
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 1px solid var(--color-border);
}

.page-news__pagination-link:hover,
.page-news__pagination-link--active {
  background: var(--btn-gradient);
  color: #ffffff;
  border-color: transparent;
}

/* CTA Section */
.page-news__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--color-bg-main);
  border-top: 1px solid var(--color-divider);
}

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

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

.page-news__faq-item {
  background: var(--color-deep-green);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-news__faq-item[open] {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: var(--color-text-main);
  cursor: pointer;
  background: var(--color-deep-green);
  border-bottom: 1px solid var(--color-divider);
}

.page-news__faq-item[open] .page-news__faq-question {
  border-bottom: 1px solid var(--color-border);
}

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

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

.page-news__faq-qtext {
  flex-grow: 1;
}

.page-news__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: var(--color-gold);
}

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

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

.page-news__faq-answer a {
  color: var(--color-secondary);
  text-decoration: underline;
}

.page-news__faq-answer a:hover {
  color: var(--color-gold);
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-news__news-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

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

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

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

@media (max-width: 768px) {
  .page-news__hero-section {
    padding-bottom: 40px;
  }

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

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

  .page-news__section-subtitle {
    margin-bottom: 30px;
  }

  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .page-news__btn-primary,
  .page-news__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-news__news-card {
    margin: 0 10px;
  }
  
  .page-news__article-item {
    margin: 0 10px 30px;
  }

  /* Mobile responsive for images, videos, containers */
  .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__section,
  .page-news__card,
  .page-news__container,
  .page-news__video-section,
  .page-news__video-container,
  .page-news__video-wrapper,
  .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;
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }

  .page-news__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

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