/* style/news.css */

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

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

.page-news__dark-bg {
  background-color: var(--page-news-bg-dark);
  color: var(--page-news-text-main);
}

.page-news__dark-section {
  background-color: var(--page-news-bg-dark);
  color: var(--page-news-text-main);
  padding: 60px 0;
}

.page-news__light-bg {
  background-color: #ffffff;
  color: #333333;
  padding: 60px 0;
}

.page-news__text-main {
  color: var(--page-news-text-main);
}

.page-news__text-secondary {
  color: var(--page-news-text-secondary);
}

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

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

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

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6); /* Slightly darken image for text readability */
}

.page-news__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  max-width: 800px;
  padding: 20px;
  box-sizing: border-box;
}

.page-news__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: bold;
  color: var(--page-news-gold);
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-news__btn-primary {
  background: var(--page-news-btn-gradient);
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  display: inline-block;
  border: none;
}

.page-news__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-news__section-title {
  font-size: clamp(2em, 4vw, 2.8em);
  color: var(--page-news-gold);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.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;
}

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

.page-news__news-card {
  background-color: var(--page-news-bg-card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  color: var(--page-news-text-main);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-news__news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

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

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

.page-news__card-title {
  font-size: 1.4em;
  color: var(--page-news-text-main);
  margin-bottom: 10px;
  font-weight: bold;
}

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

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

.page-news__read-more {
  color: var(--page-news-glow);
  font-weight: bold;
  display: inline-block;
}

.page-news__view-all-button-container {
  text-align: center;
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-news__btn-secondary {
  background: none;
  color: var(--page-news-glow);
  border: 2px solid var(--page-news-glow);
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  display: inline-block;
}

.page-news__btn-secondary:hover {
  background: var(--page-news-glow);
  color: var(--page-news-bg-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-news__company-updates {
  padding: 60px 0;
  background-color: #ffffff;
  color: #333333;
}

.page-news__update-item {
  background-color: #f9f9f9;
  border-left: 5px solid var(--page-news-deep-green);
  padding: 25px;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-news__update-title {
  font-size: 1.6em;
  color: #1a1a1a;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-news__update-date {
  font-size: 0.9em;
  color: #666666;
  margin-bottom: 15px;
}

.page-news__update-text {
  font-size: 1em;
  color: #333333;
}

.page-news__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--page-news-deep-green);
  color: var(--page-news-text-main);
}

.page-news__cta-section .page-news__section-title {
  color: var(--page-news-gold);
}

.page-news__cta-section .page-news__description {
  color: var(--page-news-text-secondary);
  max-width: 700px;
  margin: 0 auto 40px auto;
}

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

.page-news__faq-section {
  padding: 60px 0;
  background-color: #f0f2f5;
  color: #333333;
}

.page-news__faq-section .page-news__section-title {
  color: #1a1a1a;
  margin-bottom: 40px;
}

.page-news__faq-item {
  background-color: #ffffff;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #333333;
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

.page-news__faq-item[open] .page-news__faq-question {
  background-color: #f5f5f5;
  border-bottom: none;
}

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

.page-news__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--page-news-deep-green);
  margin-left: 15px;
}

.page-news__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: #555555;
  line-height: 1.8;
}

/* Ensure images don't have filters */
.page-news img:not(.page-news__hero-image) {
  filter: none; /* No filters allowed for content images */
}

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

  .page-news__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-news__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-news__hero-content {
    position: static;
    transform: none;
    padding: 20px 15px;
    width: 100%;
  }

  .page-news__main-title {
    font-size: 2.2em;
  }

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

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

  .page-news__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-news__news-card {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }

  .page-news__card-image {
    height: 180px;
  }

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

  .page-news__view-all-button-container {
    flex-direction: column;
    gap: 15px;
  }

  .page-news__btn-primary,
  .page-news__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

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

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

  /* Mobile responsive for all images */
  .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,
  .page-news__company-updates,
  .page-news__cta-section,
  .page-news__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-news__video-section {
    padding-top: 10px !important;
  }

  .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-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}