/* style/news.css */

/* Base styles for the page, adapting to dark body background */
.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: #000000; /* Ensure consistency with body background */
}

.page-news__section-padding {
  padding: 60px 0;
}

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

/* Hero Section */
.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image on top, text below */
  align-items: center;
  text-align: center;
  padding: 10px 0 60px; /* Small top padding, more bottom padding */
  background-color: #000000;
}

.page-news__hero-image {
  width: 100%;
  max-width: 1200px; /* Constrain hero image width */
  height: auto;
  object-fit: cover;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.page-news__hero-content {
  max-width: 800px;
  padding: 0 20px;
}

.page-news__main-title {
  font-size: 2.8em;
  font-weight: bold;
  line-height: 1.2;
  color: #26A9E0; /* Brand color for main title */
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

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

/* Section Titles */
.page-news__section-title {
  font-size: 2.2em;
  font-weight: bold;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 15px;
}

.page-news__section-subtitle {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 40px;
}

/* Buttons */
.page-news__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  max-width: 100%; /* For mobile responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-news__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-news__btn-primary:hover {
  background-color: #1a7fb8;
  transform: translateY(-2px);
}

.page-news__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-news__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
  transform: translateY(-2px);
}

.page-news__button-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* News Grid (Featured News) */
.page-news__news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-news__news-card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent light background for cards */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%; /* Ensure cards have equal height */
}

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

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

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

.page-news__card-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
  flex-grow: 1; /* Allow title to grow */
}

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

.page-news__card-title a:hover {
  color: #1a7fb8;
}

.page-news__card-meta {
  font-size: 0.9em;
  color: #cccccc;
  margin-bottom: 10px;
}

.page-news__card-excerpt {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 15px;
}

.page-news__read-more {
  display: inline-block;
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
  margin-top: auto; /* Push to bottom of card */
}

.page-news__read-more:hover {
  text-decoration: underline;
}

/* All News List */
.page-news__dark-section {
  background-color: #0d0d0d; /* Slightly lighter dark background for contrast */
  color: #ffffff;
}

.page-news__news-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.page-news__list-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-news__list-image {
  width: 200px;
  height: 133px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 20px;
  flex-shrink: 0;
  display: block;
}

.page-news__list-content {
  flex-grow: 1;
}

.page-news__list-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 8px;
}

.page-news__list-title a {
  color: #26A9E0;
  text-decoration: none;
}

.page-news__list-title a:hover {
  color: #1a7fb8;
}

.page-news__list-meta {
  font-size: 0.85em;
  color: #cccccc;
  margin-bottom: 10px;
}

.page-news__list-excerpt {
  font-size: 0.95em;
  color: #f0f0f0;
}

/* About Section */
.page-news__about-content {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 30px;
}

.page-news__about-content p {
  margin-bottom: 15px;
}

/* FAQ Section */
.page-news__faq-section {
  background-color: #000000; /* Dark background for FAQ */
  color: #ffffff;
}

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

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

.page-news__faq-item[open] {
  background-color: rgba(255, 255, 255, 0.12);
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #26A9E0;
  cursor: pointer;
  list-style: none; /* Hide default marker for details */
}

.page-news__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-news__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #ffffff;
  transition: transform 0.3s ease;
}

.page-news__faq-item[open] .page-news__faq-toggle {
  transform: rotate(45deg); /* Rotate '+' to 'x' or just change to '-' */
  content: '−'; /* Change content for open state */
}

.page-news__faq-answer {
  padding: 0 20px 20px;
  font-size: 1em;
  color: #f0f0f0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.page-news__faq-item[open] .page-news__faq-answer {
  max-height: 500px; /* Adjust as needed for content */
  transition: max-height 0.5s ease-in;
}

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

/* Responsive Styles */
@media (max-width: 992px) {
  .page-news__main-title {
    font-size: 2.2em;
  }
  .page-news__section-title {
    font-size: 1.8em;
  }
  .page-news__news-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-news__list-item {
    flex-direction: column;
    text-align: center;
  }
  .page-news__list-image {
    margin: 0 auto 20px;
  }
}

@media (max-width: 768px) {
  .page-news__section-padding {
    padding: 40px 0;
  }
  .page-news__hero-section {
    padding-bottom: 40px;
  }
  .page-news__main-title {
    font-size: 1.8em;
  }
  .page-news__hero-description {
    font-size: 1em;
  }
  .page-news__section-title {
    font-size: 1.6em;
  }
  .page-news__section-subtitle {
    font-size: 0.95em;
  }

  /* Images responsive */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Containers responsive */
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__hero-section,
  .page-news__featured-news,
  .page-news__all-news,
  .page-news__about-section,
  .page-news__faq-section,
  .page-news__news-card,
  .page-news__list-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Specific top padding for hero/video sections */
  .page-news__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  /* Buttons responsive */
  .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;
    padding-left: 15px; /* Add padding to button itself */
    padding-right: 15px; /* Add padding to button itself */
  }
  
  .page-news__button-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
  }

  .page-news__news-card {
    padding-left: 0;
    padding-right: 0;
  }
  
  .page-news__list-item {
    padding: 15px;
  }
  .page-news__list-image {
    width: 100%;
    height: auto;
    max-height: 180px; /* Limit height for mobile list images */
  }
  .page-news__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }
}