/* style/news.css */

/* Base styles for the page-news scope */
.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  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;
}

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

.page-news__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__highlight {
  color: #26A9E0;
  font-weight: 600;
}

/* Hero Section */
.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 */
  background-color: #1a1a1a; /* Dark background for hero */
  overflow: hidden;
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 30px; /* Space between image and content */
}

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

.page-news__hero-content {
  text-align: center;
  color: #ffffff;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

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

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

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

.page-news__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

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

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

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

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

/* Latest Articles Section */
.page-news__latest-articles {
  background-color: rgba(255, 255, 255, 0.03);
}

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

.page-news__news-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-news__news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.page-news__news-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

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

.page-news__news-card-title {
  margin-bottom: 10px;
}

.page-news__news-card-title a {
  color: #26A9E0;
  text-decoration: none;
  font-size: 1.4em;
  font-weight: 600;
  line-height: 1.3;
  display: block;
}

.page-news__news-card-title a:hover {
  text-decoration: underline;
}

.page-news__news-card-date {
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 15px;
}

.page-news__news-card-description {
  font-size: 1em;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__read-more {
  color: #EA7C07;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  margin-top: auto; /* Pushes to bottom */
}

.page-news__read-more:hover {
  text-decoration: underline;
}

.page-news__button-container {
  text-align: center;
  margin-top: 50px;
}

.page-news__inline-link {
  color: #26A9E0;
  text-decoration: underline;
}

.page-news__inline-link:hover {
  color: #EA7C07;
}

/* FAQ Section */
.page-news__faq-section {
  background-color: rgba(255, 255, 255, 0.02);
  padding-bottom: 80px;
}

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

.page-news__faq-item {
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.page-news__faq-question {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  color: #ffffff;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

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

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

.page-news__faq-toggle {
  font-size: 1.5em;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

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

.page-news__faq-answer {
  padding: 15px 25px 20px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  background-color: rgba(255, 255, 255, 0.02);
}

/* Call to Action Section */
.page-news__call-to-action {
  background: linear-gradient(135deg, #26A9E0, #1e87b8);
  text-align: center;
  color: #ffffff;
  padding: 80px 0;
}

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

.page-news__call-to-action .page-news__text-block {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__section-title {
    font-size: 2.2em;
  }
  .page-news__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-news__news-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-news__container {
    padding: 0 15px;
  }

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

  .page-news__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

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

  .page-news__description {
    font-size: 1em;
  }

  .page-news__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body handles --header-offset, this is for visual spacing */
  }

  .page-news__hero-image-wrapper,
  .page-news__hero-image,
  .page-news__news-card-image,
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__hero-image-wrapper,
  .page-news__news-card,
  .page-news__cta-group,
  .page-news__button-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-news__cta-group {
    flex-direction: column;
    gap: 15px;
  }

  .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__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-news__faq-question {
    padding: 15px 20px;
  }

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

@media (max-width: 480px) {
  .page-news__section-title {
    font-size: 1.5em;
  }
  .page-news__main-title {
    font-size: clamp(1.5em, 7vw, 2em);
  }
  .page-news__text-block {
    font-size: 0.95em;
  }
  .page-news__cta-button {
    font-size: 1em;
    padding: 12px 20px;
  }
  .page-news__news-card-title a {
    font-size: 1.2em;
  }
}