/* Base Styles */
.page-news {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light body background */
  line-height: 1.6;
}

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

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

.page-news__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #017439;
  text-align: center;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-news__section-subtitle {
  font-size: 18px;
  color: #666666;
  text-align: center;
  margin-bottom: 40px;
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding as body handles main offset */
  background-color: #017439; /* Fallback background */
  overflow: hidden;
}

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

.page-news__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #FFFFFF;
  max-width: 900px;
  width: 90%;
  z-index: 10;
}

.page-news__main-title {
  font-size: 52px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.1;
  color: #FFFF00; /* Special color for H1 as per brand guide */
}

.page-news__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  line-height: 1.5;
}

/* Buttons */
.page-news__btn-primary, .page-news__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__btn-primary {
  background: #C30808;
  color: #FFFF00;
  border: 2px solid #C30808;
}

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

.page-news__btn-secondary {
  background: #FFFFFF;
  color: #C30808;
  border: 2px solid #C30808;
  margin-left: 20px;
}

.page-news__btn-secondary:hover {
  background: #f0f0f0;
  color: #a30606;
  border-color: #a30606;
  transform: translateY(-2px);
}

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

.page-news__news-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-news__card-content {
  padding: 20px;
}

.page-news__card-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news__card-title a {
  color: #017439;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__card-title a:hover {
  color: #005a2d;
}

.page-news__card-meta {
  font-size: 14px;
  color: #999999;
  margin-bottom: 15px;
}

.page-news__card-text {
  font-size: 16px;
  color: #555555;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-news__card-link {
  display: inline-block;
  color: #017439;
  font-weight: 600;
  text-decoration: none;
  position: relative;
}

.page-news__card-link::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #017439;
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

.page-news__card-link:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* News Archive Section */
.page-news__archive-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-news__archive-item {
  display: flex;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news__archive-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-news__archive-date {
  flex-shrink: 0;
  background: #017439;
  color: #FFFFFF;
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100px;
}

.page-news__archive-date span {
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}

.page-news__archive-content {
  flex-grow: 1;
  padding: 20px;
}

.page-news__archive-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.page-news__archive-title a {
  color: #017439;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__archive-title a:hover {
  color: #005a2d;
}

.page-news__archive-excerpt {
  font-size: 15px;
  color: #666666;
}

.page-news__pagination {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  gap: 10px;
}

.page-news__pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f0f0f0;
  color: #333333;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-news__pagination-link:hover:not(.page-news__pagination-link--disabled):not(.page-news__pagination-link--active) {
  background: #e0e0e0;
}

.page-news__pagination-link--active {
  background: #017439;
  color: #FFFFFF;
}

.page-news__pagination-link--disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* CTA Section */
.page-news__dark-bg {
  background: #017439;
  color: #FFFFFF;
}

.page-news__cta-title {
  font-size: 38px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 15px;
  color: #FFFFFF;
}

.page-news__cta-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

/* FAQ Section */
details.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
details.page-news__faq-item summary.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-news__faq-item summary.page-news__faq-question::-webkit-details-marker {
  display: none;
}
details.page-news__faq-item summary.page-news__faq-question:hover {
  background: #f5f5f5;
}
.page-news__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #017439;
}
.page-news__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
  line-height: 1;
}
details.page-news__faq-item .page-news__faq-answer {
  padding: 0 25px 20px;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
  color: #555555;
}

/* General Image Styles (for all images on the page) */
.page-news img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__main-title {
    font-size: 44px;
  }
  .page-news__hero-description {
    font-size: 18px;
  }
  .page-news__section-title {
    font-size: 32px;
  }
  .page-news__section-subtitle {
    font-size: 16px;
  }
  .page-news__news-card {
    margin-bottom: 20px;
  }
  .page-news__cta-title {
    font-size: 32px;
  }
}

@media (max-width: 849px) {
  /* Specific rule for banner image object-fit contain */
  .page-news__hero-image {
    object-fit: contain;
    height: 400px; /* Adjust height for better visibility on smaller screens */
  }
}

@media (max-width: 768px) {
  /* General mobile overrides for images and containers */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !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;
  }

  /* Hero Section */
  .page-news__hero-section {
    padding-top: 10px;
    height: auto;
  }
  .page-news__hero-content {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    padding: 30px 20px;
    width: 100%;
  }
  .page-news__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }
  .page-news__hero-description {
    font-size: 16px;
    margin-bottom: 25px;
  }

  /* Buttons */
  .page-news__btn-primary,
  .page-news__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 16px;
    margin-left: 0;
  }
  .page-news__btn-secondary {
    margin-top: 15px;
  }

  /* Button Containers */
  .page-news__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px;
  }

  /* Latest News Section */
  .page-news__section-padding {
    padding: 40px 0;
  }
  .page-news__section-title {
    font-size: 28px;
    margin-bottom: 10px;
  }
  .page-news__section-subtitle {
    font-size: 15px;
    margin-bottom: 30px;
  }
  .page-news__articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-news__card-image {
    height: 180px;
  }
  .page-news__card-title {
    font-size: 18px;
  }
  .page-news__card-text {
    font-size: 14px;
  }

  /* News Archive Section */
  .page-news__archive-item {
    flex-direction: column;
  }
  .page-news__archive-date {
    width: 100%;
    padding: 15px;
    border-radius: 8px 8px 0 0;
  }
  .page-news__archive-date span {
    font-size: 28px;
  }
  .page-news__archive-content {
    padding: 15px;
  }
  .page-news__archive-title {
    font-size: 18px;
  }
  .page-news__archive-excerpt {
    font-size: 14px;
  }
  .page-news__pagination {
    margin-top: 30px;
    gap: 8px;
  }
  .page-news__pagination-link {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  /* CTA Section */
  .page-news__cta-title {
    font-size: 28px;
  }
  .page-news__cta-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  /* FAQ Section */
  details.page-news__faq-item summary.page-news__faq-question {
    padding: 15px 20px;
  }
  .page-news__faq-qtext {
    font-size: 16px;
  }
  .page-news__faq-toggle {
    font-size: 24px;
    width: 24px;
  }
  details.page-news__faq-item .page-news__faq-answer {
    padding: 0 20px 15px;
  }

  /* Placeholder for three-link buttons - Not used on this page, but required by instructions */
  .page-news__access-links {
    flex-direction: column;
    gap: 10px;
  }
  .page-news__access-links a {
    max-width: 100%;
    width: 100%;
  }

  /* Placeholder for five-entry gameshow - Not used on this page, but required by instructions */
  .page-news__category-lobby__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .page-news__category-card-link img {
    aspect-ratio: 1/1;
    width: 100%;
    object-fit: contain;
    border: none;
    box-shadow: none;
  }

  /* Placeholder for blog slider - Not used on this page, but required by instructions */
  .page-news__blog-slider-track {
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .page-news__post-item {
    flex-shrink: 0;
    width: calc(100% - 30px); /* Show one full card with some spacing */
    scroll-snap-align: start;
  }
  .page-news__blog-slider-controls {
    display: flex; /* Ensure arrows are visible and clickable */
    justify-content: space-between;
    padding: 0 15px;
  }
}