/* style/news.css */

/* Base styles for the news page */
.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* body handles the main background #121212 */
}

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

.page-news__section-title {
  font-size: clamp(2.2em, 4vw, 2.8em); /* Responsive font size */
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for titles */
  line-height: 1.2;
}

.page-news__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
}

.page-news__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1; /* Ensure image is behind content */
}

.page-news__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  color: #ffffff;
}

.page-news__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* H1 title with clamp */
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-news__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
  box-sizing: border-box;
}

.page-news__btn-primary {
  background: #26A9E0; /* Primary brand color */
  color: #ffffff;
  border-color: #26A9E0;
}

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

.page-news__btn-secondary {
  background: transparent;
  color: #26A9E0; /* Brand color for text */
  border-color: #26A9E0;
  margin-left: 15px;
}

.page-news__btn-secondary:hover {
  background: #26A9E0;
  color: #ffffff;
}

.page-news__btn-large {
  padding: 15px 30px;
  font-size: 1.1em;
}

/* News Grid Section */
.page-news__news-grid-section {
  padding: 60px 0;
  background-color: #1a1a1a; /* Slightly lighter dark background */
}

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

.page-news__news-card {
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark bg */
  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;
  display: flex;
  flex-direction: column;
}

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

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

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

.page-news__news-card-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news__news-card-title a {
  color: #26A9E0; /* Brand color for news titles */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__news-card-title a:hover {
  color: #ffffff;
}

.page-news__news-card-meta {
  font-size: 0.9em;
  color: #cccccc;
  margin-bottom: 15px;
}

.page-news__news-card-excerpt {
  font-size: 1em;
  color: #e0e0e0;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-news__news-card-link {
  display: inline-block;
  color: #26A9E0;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  margin-top: auto; /* Push to bottom */
}

.page-news__news-card-link:hover {
  text-decoration: underline;
  color: #ffffff;
}

.page-news__cta-buttons {
  text-align: center;
  margin-top: 50px;
  display: flex;
  flex-wrap: wrap; /* Allow wrapping for multiple buttons */
  justify-content: center;
  gap: 20px;
}

/* About Us Section */
.page-news__about-us-section {
  padding: 80px 0;
  background-color: #121212; /* Match body background */
}

.page-news__about-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-news__about-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.page-news__about-text {
  flex-grow: 1;
  color: #e0e0e0;
}

.page-news__about-text p {
  margin-bottom: 15px;
  font-size: 1.05em;
}

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

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

.page-news__faq-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  padding: 15px 20px;
  transition: background-color 0.3s ease;
}

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

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.15em;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  list-style: none; /* For details/summary */
}

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

.page-news__faq-qtext {
  flex-grow: 1;
  padding-right: 10px;
}

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

.page-news__faq-item[open] .page-news__faq-toggle {
  transform: rotate(45deg); /* Rotate plus to cross */
}

.page-news__faq-answer {
  padding-top: 10px;
  font-size: 1em;
  color: #e0e0e0;
}

/* Call to Action Section (Dark) */
.page-news__cta-section {
  padding: 80px 0;
  background-color: #26A9E0; /* Brand color as background */
  color: #ffffff;
}

.page-news__cta-section .page-news__section-title {
  color: #ffffff;
}

.page-news__cta-section .page-news__section-description {
  color: #f0f0f0;
}

.page-news__cta-section .page-news__btn-secondary {
  border-color: #ffffff;
  color: #ffffff;
}

.page-news__cta-section .page-news__btn-secondary:hover {
  background: #ffffff;
  color: #26A9E0;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-news__news-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-news__about-content {
    flex-direction: column;
  }
  .page-news__about-image {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-news__container {
    padding: 0 15px;
  }

  .page-news__hero-section {
    padding: 10px 0 40px 0;
  }

  .page-news__main-title {
    font-size: clamp(2em, 8vw, 2.8em);
  }

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

  .page-news__section-title {
    font-size: clamp(1.8em, 7vw, 2.2em);
  }

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

  .page-news__news-grid-section,
  .page-news__about-us-section,
  .page-news__faq-section,
  .page-news__cta-section {
    padding: 40px 0;
  }

  .page-news__news-grid {
    gap: 20px;
  }

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

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

  /* Mobile image responsiveness */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All containers with images/videos/buttons */
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__news-grid-section,
  .page-news__about-us-section,
  .page-news__faq-section,
  .page-news__cta-section,
  .page-news__hero-section,
  .page-news__news-card,
  .page-news__about-content,
  .page-news__faq-item,
  .page-news__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent overflow */
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Video responsiveness (placeholder, as no video in HTML) */
  .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-section {
    padding-top: 10px !important; /* Small top padding for video section */
  }
  
  /* Button responsiveness */
  .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 !important; /* Reset margin for stacking */
    margin-bottom: 10px; /* Add spacing between stacked buttons */
  }

  .page-news__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px;
  }
}

/* Color contrast enforcement */
.page-news {
  color: #ffffff; /* Text on body background #121212 */
}

.page-news__card {
  background: rgba(255, 255, 255, 0.08); /* Card background on dark body */
  color: #ffffff;
}

.page-news__dark-section {
  background: #26A9E0; /* Primary brand color as dark section */
  color: #ffffff;
}

.page-news__btn-primary {
  background: #26A9E0;
  color: #ffffff;
}

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

.page-news__cta-section .page-news__btn-secondary {
  color: #ffffff;
  border-color: #ffffff;
}

.page-news__cta-section .page-news__btn-secondary:hover {
  background: #ffffff;
  color: #26A9E0;
}