/* style/news.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-dark: #0a0a0a; /* body background from shared.css */
  --login-color: #EA7C07;
}

/* Base styles for the news page */
.page-news {
  background-color: var(--background-dark);
  color: var(--text-light); /* Light text for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-news__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  overflow: hidden;
  box-sizing: border-box;
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  margin-bottom: 20px;
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.page-news__hero-content {
  text-align: center;
  max-width: 900px;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

.page-news__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-news__hero-description {
  font-size: 1.1em;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
}

.page-news__cta-button {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.page-news__btn-primary {
  background-color: var(--primary-color);
  color: var(--text-light);
  border: 2px solid transparent;
}

.page-news__btn-primary:hover {
  background-color: darken(var(--primary-color), 10%);
  transform: translateY(-2px);
}

.page-news__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 30px;
}

.page-news__sub-title {
  font-size: clamp(1.4em, 2.5vw, 2em);
  font-weight: 600;
  color: var(--secondary-color);
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-news__text-block {
  font-size: 1em;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 15px;
}

.page-news__inline-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.page-news__inline-link:hover {
  text-decoration: underline;
}

.page-news__content-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin: 30px auto;
  max-width: 1000px;
  object-fit: cover;
}

.page-news__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.85);
}

.page-news__list-item {
  margin-bottom: 10px;
}

.page-news__cta-section {
  background-color: rgba(38, 169, 224, 0.15); /* Semi-transparent primary color */
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  margin-top: 50px;
  border: 1px solid var(--primary-color);
}

.page-news__cta-title {
  font-size: clamp(1.6em, 2.8vw, 2.5em);
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-news__cta-description {
  font-size: 1.1em;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
}

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

.page-news__faq-list {
  margin-top: 30px;
}

.page-news__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  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;
  padding: 20px;
  font-size: 1.1em;
  font-weight: 600;
  color: var(--secondary-color);
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-news__faq-item[open] .page-news__faq-question {
  border-bottom: 1px solid var(--primary-color);
}

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

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

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

.page-news__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1em;
  color: rgba(255, 255, 255, 0.7);
}

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

.page-news__faq-item summary {
  list-style: none;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-news__hero-section {
    padding: 40px 15px;
  }

  .page-news__hero-content {
    padding: 15px;
  }

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

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

  .page-news__section {
    padding: 30px 15px;
  }

  .page-news__section-title {
    font-size: clamp(1.6em, 4vw, 2.5em);
  }

  .page-news__sub-title {
    font-size: clamp(1.3em, 3vw, 1.8em);
  }

  .page-news__cta-section {
    padding: 30px;
  }

  .page-news__cta-title {
    font-size: clamp(1.5em, 3.5vw, 2.2em);
  }
}

@media (max-width: 768px) {
  .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__hero-section,
  .page-news__cta-section,
  .page-news__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }

  .page-news__hero-section {
    padding-top: 10px !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;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-news__cta-buttons,
  .page-news__button-group,
  .page-news__btn-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__main-title {
    font-size: clamp(1.5em, 6vw, 2.5em);
  }

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

  .page-news__text-block {
    font-size: 0.9em;
  }

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

  .page-news__faq-answer {
    padding: 0 15px 15px 15px;
  }
}