/* style/news.css */

/* Base styles for the page, adapting to dark body background */
.page-news {
  color: #ffffff; /* Light text for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Rely on body background from shared.css */
}

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

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

.page-news__section:nth-of-type(even) {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for contrast */
}

.page-news__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #26A9E0; /* Brand primary color for titles */
  line-height: 1.2;
}

.page-news h3 {
  font-size: 1.8em;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #26A9E0;
}

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

.page-news strong {
  color: #26A9E0;
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 80px;
  overflow: hidden;
  background-color: #1a1a1a; /* A slightly lighter dark background for the hero area */
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 500px; /* Limit height for hero image */
  margin-bottom: 30px;
}

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

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

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

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

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

.page-news__button-group {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* Image specific styles */
.page-news__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-bottom: 30px;
  min-width: 200px; /* Enforce minimum size for content images */
  min-height: 200px;
  object-fit: cover;
}

/* Dark sections for CTA */
.page-news__dark-section {
  background-color: #26A9E0;
  color: #FFFFFF;
  padding: 80px 0;
}

.page-news__dark-section .page-news__section-title {
  color: #FFFFFF;
}

.page-news__dark-section .page-news__btn-primary {
  background-color: #EA7C07; /* Login color for CTA button */
  border-color: #EA7C07;
}

.page-news__dark-section .page-news__btn-primary:hover {
  background-color: #c96806;
  border-color: #c96806;
}

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

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

.page-news__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-news__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 1.1em;
  color: #26A9E0;
  background-color: rgba(255, 255, 255, 0.05);
}

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

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

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

.page-news__faq-item[open] summary .page-news__faq-toggle {
  content: '−';
}

.page-news__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 0.95em;
  line-height: 1.5;
  color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__hero-image {
    max-height: 400px;
  }

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

  .page-news__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding-top: 10px !important;
    padding-bottom: 60px;
  }

  .page-news__main-title {
    font-size: clamp(1.6em, 6vw, 2.2em);
  }

  .page-news__intro-text {
    font-size: 1em;
  }

  .page-news__btn-primary,
  .page-news__btn-secondary {
    width: 100% !important;
    margin-left: 0 !important;
    margin-bottom: 10px; /* Add space between stacked buttons */
    padding-left: 15px;
    padding-right: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  .page-news__button-group {
    flex-direction: column;
    gap: 0; /* Reset gap for column layout */
  }

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

  .page-news__section-title {
    font-size: 1.8em;
  }

  /* 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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

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

@media (max-width: 480px) {
  .page-news__hero-image {
    max-height: 300px;
  }

  .page-news__section-title {
    font-size: 1.5em;
  }
}