/* style/news.css */
.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is dark (#0a0a0a), so text should be light */
}

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

.page-news__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  padding-bottom: 80px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #26A9E0 0%, #1A7FB5 100%); /* Use brand color for hero background, will be overlaid by video */
}

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

.page-news__hero-video {
  min-width: 100%;
  min-height: 100%;
  width: auto; /* Use auto for intrinsic video size */
  height: auto; /* Use auto for intrinsic video size */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  filter: brightness(0.4); /* Darken video to ensure text readability */
}

.page-news__hero-section .page-news__container {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.page-news__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff;
}

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

.page-news__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
  text-align: center;
}

.page-news__btn-primary {
  background-color: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

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

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

.page-news__section {
  padding: 60px 0;
  background-color: #0a0a0a; /* Ensure dark background for sections by default */
  color: #ffffff; /* Light text for dark background */
}

.page-news__dark-bg {
  background-color: #1A1A1A; /* Slightly lighter dark background for contrast */
  color: #ffffff;
}

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

.page-news__section-description,
.page-news__paragraph {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px auto;
  color: #f0f0f0;
}

.page-news__paragraph {
  text-align: left;
  margin-bottom: 20px;
}

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

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

.page-news__article-card:hover {
  transform: translateY(-5px);
}

.page-news__article-image {
  width: 100%;
  height: 225px; /* Display size for 800x450 source */
  object-fit: cover;
  display: block;
}

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

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

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

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

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

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

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

.page-news__image-content-layout {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 50px;
  text-align: left;
}

.page-news__image-content-layout--reversed {
  flex-direction: row-reverse;
}

.page-news__content-image {
  width: 50%;
  max-width: 600px; /* Max width for the image */
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: block;
}

.page-news__text-block {
  width: 50%;
}

.page-news__sub-title {
  font-size: 2em;
  margin-bottom: 15px;
  color: #26A9E0;
  font-weight: bold;
}

.page-news__text-block p {
  color: #f0f0f0;
  margin-bottom: 20px;
  text-align: left;
}

.page-news__faq-section {
  background-color: #0a0a0a;
  color: #ffffff;
}

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

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

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #26A9E0;
  cursor: pointer;
  background-color: #1A1A1A;
  transition: background-color 0.3s ease;
}

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

.page-news__faq-item[open] > .page-news__faq-question {
  background-color: #222222;
}

.page-news__faq-qtext {
  flex-grow: 1;
}

.page-news__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-news__faq-item[open] .page-news__faq-toggle {
  transform: rotate(45deg);
}

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

.page-news__faq-item[open] .page-news__faq-answer {
  max-height: 500px; /* Adjust as needed for content */
  padding-top: 10px;
}

/* Details element specific styles for native toggle */
.page-news__faq-item details > summary {
  list-style: none;
}

.page-news__faq-item details > summary::-webkit-details-marker {
  display: none;
}

.page-news__cta-bottom {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(90deg, #26A9E0 0%, #1A7FB5 100%);
  color: #ffffff;
}

.page-news__cta-bottom .page-news__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff;
}

.page-news__cta-bottom .page-news__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: 2.8em;
  }
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__image-content-layout {
    flex-direction: column;
  }
  .page-news__content-image,
  .page-news__text-block {
    width: 100%;
    max-width: 100%;
  }
  .page-news__image-content-layout--reversed {
    flex-direction: column;
  }
  .page-news__text-block p {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 60px;
  }
  .page-news__hero-title {
    font-size: 2.2em;
  }
  .page-news__hero-description {
    font-size: 1em;
  }
  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-news__btn-primary,
  .page-news__btn-secondary {
    width: 100%;
    padding: 12px 20px;
  }
  .page-news__section {
    padding: 40px 0;
  }
  .page-news__section-title {
    font-size: 1.8em;
  }
  .page-news__section-description,
  .page-news__paragraph {
    font-size: 0.95em;
    text-align: left;
  }
  .page-news__article-grid {
    grid-template-columns: 1fr;
  }
  .page-news__article-image {
    height: 200px; /* Smaller height for mobile */
  }
  .page-news__article-title {
    font-size: 1.2em;
  }
  .page-news__sub-title {
    font-size: 1.6em;
    text-align: center;
  }
  .page-news__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-news__faq-answer {
    padding: 0 20px 15px 20px;
  }
  .page-news__cta-bottom {
    padding: 60px 0;
  }
  .page-news__cta-bottom .page-news__cta-title {
    font-size: 2em;
  }
  .page-news__cta-bottom .page-news__cta-description {
    font-size: 1em;
  }

  /* Mobile responsive image/video/button rules */
  .page-news img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__hero-video-wrapper,
  .page-news__image-content-layout,
  .page-news__text-block,
  .page-news__cta-buttons {
    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 */
  }
  .page-news__hero-video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .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 {
    flex-wrap: wrap !important;
    gap: 10px;
  }
}