/* style/news.css */

/* General page styling */
.page-news {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #000000; /* Ensuring consistency with body background */
}

.page-news__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  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;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 15px;
  padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
  background-color: #000000; /* Dark background */
  color: #ffffff;
  text-align: center;
  overflow: hidden; /* Prevent image overflow */
}

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

.page-news__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for title */
  font-weight: bold;
}

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

.page-news__btn-primary {
  display: inline-block;
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
}

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

.page-news__btn-primary--center {
  margin: 0 auto;
  display: block;
  max-width: 250px;
}

.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;
  opacity: 0.2; /* Subtle background image */
  display: block;
}

/* Latest News Section */
.page-news__latest-news-section {
  padding: 60px 0;
  background-color: #0d0d0d; /* Slightly lighter dark background */
}

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

.page-news__news-card {
  background-color: #1a1a1a; /* Dark card background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 400px; /* Ensure cards have a minimum height */
  display: flex;
  flex-direction: column;
}

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

.page-news__card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-news__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistent image size */
  object-fit: cover;
  display: block;
}

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

.page-news__card-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-news__card-excerpt {
  font-size: 0.95em;
  color: #cccccc;
  margin-bottom: 15px;
  flex-grow: 1;
}

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

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

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

.page-news__pagination-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #1a1a1a;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-weight: bold;
}

.page-news__pagination-link:hover:not(.page-news__pagination-link--active) {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-news__pagination-link--active {
  background-color: #26A9E0;
  color: #ffffff;
  cursor: default;
}

/* Featured Video Section */
.page-news__featured-video-section {
  padding: 60px 0;
  background-color: #000000;
  text-align: center;
  color: #ffffff;
}

.page-news__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 30px auto;
  background-color: #000000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.page-news__video {
  width: 100%;
  height: auto;
  display: block;
}

.page-news__video-description {
  font-size: 1.1em;
  color: #cccccc;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}


/* FAQ Section */
.page-news__faq-section {
  padding: 60px 0;
  background-color: #0d0d0d;
  color: #ffffff;
}

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

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

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #26A9E0; /* Brand color for question background */
  color: #ffffff;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

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

.page-news__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  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 20px; /* Adjust padding to match question */
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #2a2a2a; /* Slightly different background for answer */
  color: #cccccc;
}

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

.page-news__faq-answer p {
  margin: 0;
  padding-bottom: 0; /* No extra padding at the bottom of the last paragraph */
}


/* 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 {
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
    padding-bottom: 60px;
  }

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

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

  .page-news__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

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

  .page-news__news-card {
    min-height: auto; /* Allow height to adjust on mobile */
  }

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

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

  .page-news__card-excerpt {
    font-size: 0.9em;
  }

  .page-news__pagination {
    margin-top: 30px;
  }

  .page-news__pagination-link {
    width: 35px;
    height: 35px;
    font-size: 0.9em;
  }

  .page-news__video-wrapper {
    margin-bottom: 20px;
  }

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

  .page-news__faq-list {
    margin-top: 30px;
  }

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

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

  .page-news__faq-item.active .page-news__faq-answer {
    padding: 15px;
  }

  /* Image responsive adaptation */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Video responsive adaptation */
  .page-news video,
  .page-news__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Container responsive adaptation */
  .page-news__container,
  .page-news__hero-section,
  .page-news__latest-news-section,
  .page-news__featured-video-section,
  .page-news__faq-section,
  .page-news__news-card,
  .page-news__video-wrapper,
  .page-news__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }

  /* Buttons responsive adaptation */
  .page-news__btn-primary,
  .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__btn-primary--center {
    max-width: 100% !important; /* Override fixed width on mobile */
    width: 100% !important;
  }

  .page-news__pagination {
    flex-wrap: wrap;
    gap: 8px;
  }
}

/* Color Contrast Enforcement (already integrated with dark background choices) */
/* The main body has a dark background #000000, so text is #ffffff or lighter shades. */
/* Card backgrounds are #1a1a1a or #2a2a2a, also dark, so text is #ffffff or #cccccc. */
/* Brand color #26A9E0 is used for titles and buttons, paired with #ffffff text, ensuring contrast. */