/* style/news.css */

/* Base Styles & Typography */
.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-news__section-title,
.page-news__hero-title,
.page-news__promo-title,
.page-news__cta-title {
  color: #ffffff;
  text-align: center;
  margin-bottom: 20px;
  font-size: 2.5em;
  line-height: 1.2;
}

.page-news__section-description,
.page-news__hero-description,
.page-news__promo-description,
.page-news__cta-description {
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.1em;
}

/* Color Contrast Fixes based on body background #0a0a0a (dark) */
.page-news__dark-bg {
  background-color: #017439; /* Primary color for dark sections */
  color: #ffffff;
}

.page-news__light-bg {
  background-color: #1a1a1a; /* A slightly lighter dark for contrast with dark body */
  color: #ffffff;
}

.page-news__light-bg .page-news__section-title,
.page-news__light-bg .page-news__section-description {
  color: #ffffff;
}

/* Buttons */
.page-news__btn-primary {
  display: inline-block;
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1.1em;
  text-align: center;
}

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

.page-news__read-more {
  color: #FFFF00; /* Use font color for accent */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-news__read-more:hover {
  color: #C30808;
}

/* Hero Section */
.page-news__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  position: relative;
  overflow: hidden;
}

.page-news__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin-bottom: 40px;
}

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

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

/* Latest Articles Section */
.page-news__latest-articles {
  padding: 60px 0;
}

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

.page-news__article-card {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for dark background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #ffffff;
}

.page-news__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

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

.page-news__article-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #ffffff;
}

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

.page-news__article-title a:hover {
  color: #FFFF00;
}

.page-news__article-summary {
  font-size: 0.95em;
  color: #e0e0e0;
  margin-bottom: 15px;
  flex-grow: 1;
}

/* Featured Video Section */
.page-news__featured-video {
  padding: 60px 0;
  text-align: center;
}

.page-news__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 960px;
  margin: 40px auto 0;
  background-color: #000;
  border-radius: 10px;
}

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

/* Promotion Banner */
.page-news__promotion-banner {
  padding: 60px 0;
}

.page-news__promo-content {
  display: flex;
  align-items: center;
  gap: 40px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-news__promo-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.page-news__promo-text {
  flex: 1;
  text-align: left;
}

.page-news__promo-text .page-news__promo-title {
  text-align: left;
  font-size: 2em;
  color: #FFFF00;
}

.page-news__promo-text .page-news__promo-description {
  text-align: left;
  color: #e0e0e0;
}

/* FAQ Section */
.page-news__faq-section {
  padding: 60px 0;
}

.page-news__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

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

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

.page-news__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-news__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #FFFF00;
}

.page-news__faq-answer {
  padding: 0 25px 20px;
  font-size: 0.95em;
  color: #e0e0e0;
}

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

.page-news__faq-answer a {
  color: #FFFF00;
  text-decoration: underline;
}

/* Call to Action Section */
.page-news__cta-section {
  padding: 80px 20px;
  text-align: center;
}

.page-news__cta-content {
  max-width: 800px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: 2em;
  }
  .page-news__promo-content {
    flex-direction: column;
    text-align: center;
  }
  .page-news__promo-image {
    max-width: 80%;
  }
  .page-news__promo-text .page-news__promo-title,
  .page-news__promo-text .page-news__promo-description {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
  }

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

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

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

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

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

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

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

  .page-news__promo-content {
    padding: 20px;
  }

  .page-news__promo-image {
    max-width: 100%;
  }

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

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

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

  .page-news__cta-section {
    padding: 60px 15px;
  }

  .page-news__cta-content {
    padding: 30px;
  }

  /* Mobile Responsive for all images */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Mobile Responsive for all video */
  .page-news video,
  .page-news__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Mobile Responsive for all containers holding images/videos/buttons */
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__hero-section,
  .page-news__latest-articles,
  .page-news__featured-video,
  .page-news__promotion-banner,
  .page-news__faq-section,
  .page-news__cta-section,
  .page-news__video-wrapper,
  .page-news__promo-content,
  .page-news__cta-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }
  
  /* Mobile Responsive for buttons */
  .page-news__btn-primary,
  .page-news__read-more {
    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__hero-content .page-news__btn-primary {
    margin: 0 auto;
  }
}