/* style/news.css */

/* Base styles for page-news */
.page-news {
  color: #f8f9fa; /* Light text for dark body background */
  background-color: transparent; /* Rely on shared body background */
}

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

.page-news__container--center {
  text-align: center;
}

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

.page-news__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

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

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

.page-news__section-description--light {
  color: #e0e0e0;
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  position: relative;
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6);
}

.page-news__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 20px;
  max-width: 900px;
  margin-top: -150px; /* Pull content slightly over the image for visual hierarchy, but not overlapping text */
  background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent background for readability */
  border-radius: 8px;
  padding-bottom: 40px;
}

.page-news__main-title {
  color: #FFFFFF;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size for H1 */
}

.page-news__intro-text {
  color: #e0e0e0;
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* CTA Buttons */
.page-news__cta-button {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

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

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

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

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

.page-news__btn-secondary--light {
  color: #FFFFFF;
  border-color: #FFFFFF;
}

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

.page-news__btn-primary--center, .page-news__btn-secondary--center {
  margin: 0 auto;
  display: block;
  width: fit-content;
  max-width: 100%;
}

.page-news__view-all-button-container {
  text-align: center;
  margin-top: 40px;
}

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

.page-news__news-card, .page-news__analysis-card, .page-news__promo-card, .page-news__guide-card {
  background-color: rgba(255, 255, 255, 0.1); /* Light background for cards on dark body */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  color: #f8f9fa;
}

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

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

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

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

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

.page-news__card-title--light a {
  color: #FFFFFF;
}

.page-news__card-title--light a:hover {
  color: #e0e0e0;
}

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

.page-news__card-excerpt {
  font-size: 1em;
  color: #e0e0e0;
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__card-excerpt--light {
  color: #f8f9fa;
}

.page-news__card-link {
  display: inline-block;
  margin-top: auto;
  color: #26A9E0;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-news__card-link:hover {
  color: #1e87c0;
}

.page-news__card-link--light {
  color: #FFFFFF;
}

.page-news__card-link--light:hover {
  color: #e0e0e0;
}

/* Dark Background Sections */
.page-news__dark-bg {
  background-color: #26A9E0;
  color: #FFFFFF;
}

/* Video Section */
.page-news__video-section {
  padding-top: 60px; /* Small top padding */
  padding-bottom: 60px;
}

.page-news__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  background-color: #000;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  box-sizing: border-box; /* Crucial for responsiveness */
}

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

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

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

.page-news__faq-item {
  background-color: rgba(255, 255, 255, 0.1); /* Light background for FAQ items */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: #FFFFFF;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  list-style: none; /* For details/summary */
}

.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;
}

.page-news__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  color: #e0e0e0;
  line-height: 1.6;
}

.page-news__faq-item[open] .page-news__faq-question {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Call to Action Section */
.page-news__call-to-action {
  background-color: #26A9E0;
  padding: 80px 0;
}

.page-news__call-to-action .page-news__section-title {
  color: #FFFFFF;
}

.page-news__call-to-action .page-news__section-description {
  color: #f8f9fa;
  margin-bottom: 50px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__hero-content {
    margin-top: -100px;
  }
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__section-description {
    font-size: 1em;
  }
  .page-news__news-grid, .page-news__analysis-grid, .page-news__promotions-grid, .page-news__guides-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding-bottom: 40px;
  }
  .page-news__hero-image-wrapper {
    max-height: 300px;
  }
  .page-news__hero-content {
    margin-top: -80px;
    padding: 15px;
    border-radius: 0;
  }
  .page-news__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em) !important;
  }
  .page-news__intro-text {
    font-size: 0.95em;
  }
  .page-news__section {
    padding: 40px 0;
  }
  .page-news__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-news__section-description {
    font-size: 0.9em;
    margin-bottom: 30px;
  }

  /* Mobile image responsiveness */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__news-card,
  .page-news__analysis-card,
  .page-news__promo-card,
  .page-news__guide-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-news__hero-section,
  .page-news__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Mobile video responsiveness */
  .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;
  }

  /* Mobile button responsiveness */
  .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;
    padding-right: 15px;
  }
  .page-news__cta-buttons,
  .page-news__button-group,
  .page-news__btn-container,
  .page-news__view-all-button-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-news__cta-buttons {
    display: flex;
    flex-direction: column;
  }
  .page-news__btn-primary--center, .page-news__btn-secondary--center {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .page-news__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-news__faq-toggle {
    font-size: 1.2em;
  }
  .page-news__faq-answer {
    padding: 10px 20px 15px;
  }
  .page-news__news-grid, .page-news__analysis-grid, .page-news__promotions-grid, .page-news__guides-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .page-news__hero-content {
    margin-top: -60px;
  }
  .page-news__main-title {
    font-size: clamp(1.5em, 8vw, 2em) !important;
  }
  .page-news__intro-text {
    font-size: 0.9em;
  }
  .page-news__section-title {
    font-size: 1.5em;
  }
  .page-news__section-description {
    font-size: 0.85em;
  }
  .page-news__cta-button {
    padding: 10px 20px;
  }
}