/* style/news.css */

/* Body background color is #0a0a0a (dark), so text color should be light */
.page-news {
  color: #ffffff; /* Default text color for the page */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Body handles actual background, this ensures transparency */
}

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

.page-news__section-spacing {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px; /* Limit height for aesthetic */
  filter: brightness(0.7); /* Slightly dim image for text readability */
}

.page-news__hero-content {
  position: relative; /* Ensure content is above image if needed, but not overlaying */
  max-width: 900px;
  margin-top: -150px; /* Pull content up over the image a bit for visual integration, but not covering */
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.5)); /* Dark overlay for text readability */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.page-news__main-title {
  color: #FFFFFF;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
}

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

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

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

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

.page-news__section-title {
  color: #26A9E0;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.page-news__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #26A9E0;
  border-radius: 2px;
}

.page-news__section-description {
  color: #f0f0f0;
  font-size: 1.05rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-news__articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-news__article-card {
  background-color: rgba(255, 255, 255, 0.08); /* Light background for card 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;
  display: flex;
  flex-direction: column;
  color: #ffffff;
}

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

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

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

.page-news__article-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news__article-title a {
  color: #26A9E0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__article-title a:hover {
  color: #FFFFFF;
}

.page-news__article-meta {
  font-size: 0.9rem;
  color: #bbbbbb;
  margin-bottom: 15px;
}

.page-news__article-excerpt {
  font-size: 1rem;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__read-more {
  display: inline-block;
  color: #26A9E0;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-news__read-more:hover {
  color: #FFFFFF;
}

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

.page-news__view-all-button {
  background-color: #EA7C07; /* Login color for prominent button */
  color: #FFFFFF;
  padding: 15px 40px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__view-all-button:hover {
  background-color: #d16a06;
}

.page-news__sub-title {
  color: #26A9E0;
  font-size: 1.6rem;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 15px;
  text-align: left;
}

.page-news p {
  color: #f0f0f0;
  margin-bottom: 15px;
  font-size: 1rem;
}

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

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

.page-news__list li {
  margin-bottom: 8px;
  font-size: 1rem;
}

.page-news__list li strong {
  color: #FFFFFF;
}

.page-news__faq-section {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for FAQ */
}

.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;
}

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

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #26A9E0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

.page-news__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: #FFFFFF;
}

.page-news__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1rem;
  color: #f0f0f0;
  line-height: 1.7;
}

.page-news__cta-section {
  text-align: center;
  background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-news__cta-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-news__btn-large {
  padding: 18px 45px;
  font-size: 1.2rem;
  background-color: #EA7C07; /* Login color for prominent CTA */
  border-color: #EA7C07;
}

.page-news__btn-large:hover {
  background-color: #d16a06;
  border-color: #d16a06;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__hero-content {
    margin-top: -100px;
  }
  .page-news__article-image {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding-bottom: 40px;
  }

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

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

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

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

  .page-news__btn-primary,
  .page-news__btn-secondary,
  .page-news__view-all-button,
  .page-news__btn-large {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
  }

  .page-news__section-spacing {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .page-news__section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .page-news__article-card {
    margin-bottom: 20px;
  }

  .page-news__article-image {
    height: 180px;
  }

  .page-news__article-title {
    font-size: 1.15rem;
  }

  .page-news p,
  .page-news li,
  .page-news__article-excerpt,
  .page-news__faq-answer {
    font-size: 0.95rem;
  }

  .page-news__faq-question {
    font-size: 1.05rem;
    padding: 15px;
  }

  /* Ensure all images are responsive */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Ensure all containers are responsive */
  .page-news__section, 
  .page-news__card, 
  .page-news__container, 
  .page-news__hero-section, 
  .page-news__articles-section, 
  .page-news__content-area, 
  .page-news__faq-section, 
  .page-news__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  /* Override specific hero-content padding/margin for mobile */
  .page-news__hero-content {
    margin-left: 15px !important;
    margin-right: 15px !important;
    width: calc(100% - 30px) !important;
  }

  .page-news__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
}