/* 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: transparent; /* Body background handled by shared.css */
}

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

/* --- Hero Section --- */
.page-news__hero-section {
  position: relative;
  padding: 80px 0;
  background-color: #017439; /* Brand primary color for hero background */
  color: #ffffff;
  text-align: center;
  overflow: hidden; /* Ensure no overflow for hero content */
}

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

.page-news__hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 30px;
  color: #f0f0f0;
}

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

.page-news__cta-buttons--inline {
    margin-top: 20px;
    margin-bottom: 20px;
}

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
  text-align: center;
  box-sizing: border-box; /* Include padding in width calculation */
}

/* Specific button colors from requirements */
.page-news__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-news__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
  color: #ffffff;
}

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

.page-news__btn-secondary:hover {
  background-color: #ffffff;
  color: #017439;
  border-color: #ffffff;
}

/* --- Content Area --- */
.page-news__content-area {
  padding: 60px 0;
  background-color: #1a1a2e; /* Body background color from shared.css */
  color: #ffffff; /* Light text for dark background */
}

.page-news__section-title {
  font-size: 2.2em;
  color: #017439; /* Brand primary color for titles */
  margin-bottom: 30px;
  text-align: center;
  font-weight: bold;
}

.page-news__sub-title {
  font-size: 1.6em;
  color: #017439; /* Brand primary color for subtitles */
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-news__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0; /* Slightly off-white for readability */
}

.page-news__list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-news__list li {
  margin-bottom: 10px;
  font-size: 1.1em;
}

.page-news__list ol {
    list-style-type: decimal;
    margin-left: 25px;
    margin-bottom: 20px;
    color: #f0f0f0;
}

.page-news__list ol li {
    margin-bottom: 10px;
    font-size: 1.1em;
}

/* --- Image Styling --- */
.page-news__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* --- Video Styling --- */
.page-news__video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  cursor: pointer; /* Indicate clickability for JS video */
}

/* --- FAQ Section --- */
.page-news__faq-list {
  margin-top: 40px;
}

.page-news__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter background for FAQ item */
  border-radius: 8px;
  margin-bottom: 15px;
  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: #ffffff;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

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

.page-news__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #017439; /* Brand primary color for toggle icon */
}

.page-news__faq-item.active .page-news__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' or '-' effect */
}

.page-news__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content, use !important */
  padding: 15px 25px;
}

.page-news__faq-answer p {
  margin-bottom: 0;
  font-size: 1em;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: 2.4em;
  }
  .page-news__section-title {
    font-size: 1.8em;
  }
  .page-news__sub-title {
    font-size: 1.4em;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important; /* Apply header offset to hero section on mobile */
  }
  .page-news__hero-title {
    font-size: 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%;
    max-width: 100% !important; /* Enforce full width for buttons */
    padding: 12px 20px;
    font-size: 0.95em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-news__container {
    padding: 0 15px; /* Adjust container padding for mobile */
  }

  .page-news__content-area {
    padding: 40px 0;
  }
  .page-news__section-title {
    font-size: 1.6em;
    margin-bottom: 20px;
  }
  .page-news__sub-title {
    font-size: 1.2em;
    margin-top: 30px;
    margin-bottom: 15px;
  }
  .page-news__paragraph,
  .page-news__list li {
    font-size: 1em;
  }

  /* Images, Videos, and their containers responsiveness */
  .page-news__image,
  .page-news__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin-left: auto;
    margin-right: auto;
  }

  .page-news__video-section,
  .page-news__video-container,
  .page-news__video-wrapper,
  .page-news__section,
  .page-news__card,
  .page-news__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  .page-news__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-news__faq-answer {
    padding: 0 20px;
  }
  .page-news__faq-item.active .page-news__faq-answer {
    padding: 10px 20px;
  }
}

@media (max-width: 480px) {
  .page-news__hero-title {
    font-size: 1.8em;
  }
  .page-news__section-title {
    font-size: 1.4em;
  }
  .page-news__faq-question {
    font-size: 1em;
  }
}