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

.page-news__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, header offset handled by body */
  margin-bottom: 40px;
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

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

.page-news__hero-content {
  position: relative;
  width: 100%;
  max-width: 1200px;
  padding: 40px 20px;
  text-align: center;
  background: #26A9E0; /* Brand color as background */
  color: #ffffff;
  box-sizing: border-box;
  margin-top: -5px; /* Slightly overlap with image for visual flow */
}

.page-news__main-title {
  font-size: clamp(2rem, 5vw, 3.5rem); /* Responsive font size */
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-news__intro-text {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-news__section-title--light {
  color: #ffffff;
}

.page-news__section-description {
  font-size: 1.1rem;
  color: #f0f0f0; /* Slightly off-white for contrast on dark body */
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.page-news__section-description--light {
  color: #ffffff;
}

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

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

.page-news__news-card {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark body */
  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;
  color: #ffffff;
}

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

.page-news__news-card-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-news__news-card-content {
  padding: 20px;
}

.page-news__news-card-title {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news__news-card-title a {
  color: #26A9E0; /* Brand color for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__news-card-title a:hover {
  color: #ffffff;
}

.page-news__news-card-meta {
  font-size: 0.9rem;
  color: #a0a0a0;
  margin-bottom: 15px;
}

.page-news__news-card-excerpt {
  font-size: 1rem;
  color: #e0e0e0;
  margin-bottom: 20px;
}

.page-news__news-card-link {
  display: inline-block;
  background: #EA7C07; /* Login button color for emphasis */
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.page-news__news-card-link:hover {
  background: #c76a06;
}

.page-news__view-all-button-wrapper {
  text-align: center;
  margin-top: 40px;
}

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

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

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

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

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

.page-news__cta-section {
  background: #1a1a2e; /* Dark background from body */
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
}

.page-news__cta-content {
  max-width: 900px;
}

.page-news__faq-section {
  background: rgba(255, 255, 255, 0.05);
  padding: 60px 20px;
}

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

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

.page-news__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1rem;
  color: #26A9E0;
  transition: background 0.3s ease;
}

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

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

.page-news__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #ffffff;
}

.page-news__faq-answer {
  padding: 0 20px 20px;
  font-size: 1rem;
  color: #e0e0e0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__main-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }
  .page-news__section-title {
    font-size: 2rem;
  }
  .page-news__hero-content,
  .page-news__container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 768px) {
  .page-news__hero-content {
    padding: 30px 15px;
  }
  .page-news__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }
  .page-news__intro-text {
    font-size: 1rem;
  }
  .page-news__section-title {
    font-size: 1.8rem;
  }
  .page-news__section-description {
    font-size: 1rem;
  }
  .page-news__grid {
    grid-template-columns: 1fr;
  }
  .page-news__news-card-image {
    height: 180px;
  }
  .page-news__news-card-title {
    font-size: 1.2rem;
  }
  .page-news__btn-primary,
  .page-news__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    margin-bottom: 10px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-news__view-all-button-wrapper,
  .page-news__cta-content {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Mobile image and container 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,
  .page-news__hero-image-wrapper,
  .page-news__news-card-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-news__hero-section {
    padding-top: 10px !important;
  }

  /* Button container mobile adaptation */
  .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-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .page-news__main-title {
    font-size: clamp(1.5rem, 9vw, 2.2rem);
  }
  .page-news__section-title {
    font-size: 1.6rem;
  }
  .page-news__news-card-image {
    height: 150px;
  }
  .page-news__news-card-title {
    font-size: 1.1rem;
  }
  .page-news__faq-item summary {
    font-size: 1rem;
    padding: 15px;
  }
  .page-news__faq-answer {
    padding: 0 15px 15px;
  }
}