/* style/news.css */
.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background-color: #FFFFFF; /* Body background is light */
}

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

.page-news__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-news__section-title--white {
  color: #FFFFFF;
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  padding-bottom: 60px;
  background: linear-gradient(135deg, #26A9E0, #1a7bbd);
  color: #FFFFFF;
  overflow: hidden;
  text-align: center;
}

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

.page-news__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-news__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
}

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

.page-news__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(50%); /* Allowed to make it subtle, but not change color */
}

/* Buttons */
.page-news__btn-primary {
  display: inline-block;
  background-color: #EA7C07; /* Login color for primary action */
  color: #FFFFFF;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-news__btn-primary:hover {
  background-color: #d16b06;
}

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

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

.page-news__article-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  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 6px 20px rgba(0, 0, 0, 0.15);
}

.page-news__article-image-wrapper {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  overflow: hidden;
}

.page-news__article-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.page-news__article-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-news__article-title a {
  color: #26A9E0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__article-title a:hover {
  color: #1a7bbd;
  text-decoration: underline;
}

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

.page-news__article-excerpt {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

.page-news__read-more-link:hover {
  color: #d16b06;
  text-decoration: underline;
}

/* Video Section */
.page-news__video-section {
  padding: 80px 0;
  background-color: #26A9E0;
  color: #FFFFFF;
  text-align: center;
}

.page-news__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto 30px;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-news__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  cursor: pointer;
}

.page-news__video-caption {
  font-size: 1.1em;
  opacity: 0.9;
}

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

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

.page-news__faq-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: #F8F9FA;
  font-size: 1.1em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-news__faq-question:hover {
  background-color: #e9ecef;
}

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

.page-news__faq-item.active .page-news__faq-toggle {
  transform: rotate(45deg);
}

.page-news__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px;
}

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

/* Bottom CTA Section */
.page-news__cta-bottom {
  padding: 80px 0;
  background: linear-gradient(135deg, #26A9E0, #1a7bbd);
  color: #FFFFFF;
  text-align: center;
}

.page-news__cta-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.page-news__cta-description {
  font-size: 1.2em;
  margin-bottom: 30px;
}

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

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

@media (max-width: 768px) {
  .page-news__hero-section {
    flex-direction: column;
    text-align: center;
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
  }

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

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

  .page-news__hero-image-wrapper {
    position: relative;
    height: 250px;
    margin-top: 30px;
  }

  .page-news__articles-grid {
    grid-template-columns: 1fr;
  }

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

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

  .page-news__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    padding-bottom: 56.25% !important; /* 16:9 Aspect Ratio */
    margin-left: 0;
    margin-right: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .page-news__video-section .page-news__container {
    padding-left: 0;
    padding-right: 0;
  }

  .page-news__cta-bottom .page-news__container {
    padding: 20px;
  }

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

  /* Mobile specific image, video, button adaptations */
  .page-news img {
    max-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;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .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;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 10px; /* Add some space between stacked buttons */
  }
  .page-news__cta-buttons {
    display: flex;
    flex-direction: column; 
    gap: 10px;
  }
  .page-news__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-news__faq-answer {
    padding: 0 20px;
  }
  .page-news__faq-item.active .page-news__faq-answer {
    padding: 10px 20px;
  }
}

@media (max-width: 480px) {
  .page-news__hero-title {
    font-size: 1.8em;
  }
  .page-news__btn-primary {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-news__section-title {
    font-size: 1.5em;
  }
  .page-news__article-title {
    font-size: 1.2em;
  }
}