/* Base styles for the news page */
.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF5E1; /* Text Main */
  background-color: #B71C1C; /* Background */
}

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

.page-news__section-title {
  font-size: 32px;
  font-weight: bold;
  color: #FFD86A; /* Gold-like for titles */
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-news__section-title--light {
  color: #FFF5E1; /* Text Main for titles on dark backgrounds */
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  text-align: center;
  overflow: hidden;
}

.page-news__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-news__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-news__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 15px 40px;
}

.page-news__main-title {
  font-size: clamp(28px, 4vw, 48px);
  color: #FFCC66; /* Glow */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
}

.page-news__hero-description {
  font-size: 18px;
  color: #FFF5E1; /* Text Main */
  margin-bottom: 30px;
}

/* Buttons */
.page-news__btn-primary {
  display: inline-block;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button gradient */
  color: #7A0E0E; /* Deep Red for text on gold button */
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-news__btn-large {
  padding: 18px 40px;
  font-size: 20px;
}

/* Articles Section */
.page-news__articles-section {
  padding: 60px 0;
  background-color: #7A0E0E; /* Deep Red */
}

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

.page-news__article-card {
  display: flex;
  flex-direction: column;
  background-color: #D32F2F; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: #FFF5E1; /* Text Main */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.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: 220px;
  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: 20px;
  font-weight: bold;
  color: #FFCC66; /* Glow */
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news__article-date {
  font-size: 14px;
  color: rgba(255, 245, 225, 0.7); /* Lighter Text Main */
  margin-bottom: 15px;
}

.page-news__article-excerpt {
  font-size: 15px;
  color: #FFF5E1; /* Text Main */
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__read-more {
  display: inline-block;
  color: #FFD86A; /* Gold for link */
  font-weight: bold;
  text-decoration: none;
  border-bottom: 2px solid #FFD86A;
  padding-bottom: 2px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

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

/* Pagination */
.page-news__pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  gap: 10px;
}

.page-news__pagination-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color: #D32F2F; /* Card BG */
  color: #FFF5E1; /* Text Main */
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-weight: bold;
}

.page-news__pagination-link:hover:not(.page-news__pagination-active) {
  background-color: #E53935; /* Auxiliary color */
  color: #FFD86A; /* Gold */
}

.page-news__pagination-active {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button gradient */
  color: #7A0E0E; /* Deep Red */
  pointer-events: none;
}

/* FAQ Section */
.page-news__faq-section {
  padding: 60px 0;
  background-color: #C91F17; /* Primary Color */
}

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

details.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #F2B544; /* Border color */
  overflow: hidden;
  background: #D32F2F; /* Card BG */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

details.page-news__faq-item summary.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #FFCC66; /* Glow */
  font-weight: bold;
}

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: #E53935; /* Auxiliary color */
}

.page-news__faq-qtext {
  flex: 1;
  font-size: 18px;
  line-height: 1.5;
  text-align: left;
}

.page-news__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #F4D34D; /* Gold */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-news__faq-item .page-news__faq-answer {
  padding: 0 20px 20px;
  background: #7A0E0E; /* Deep Red */
  border-radius: 0 0 8px 8px;
  color: #FFF5E1; /* Text Main */
  font-size: 16px;
}

/* CTA Section */
.page-news__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #B71C1C; /* Background */
}

.page-news__cta-description {
  font-size: 20px;
  color: #FFF5E1; /* Text Main */
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Styles */
@media (max-width: 1023px) {
  /* No specific home-hero, promo, hot-games, winner-ticker rules as this is a news page */
}

@media (min-width: 1024px) {
  /* No specific home-hero, promo, hot-games, winner-ticker rules as this is a news page */
}

@media (max-width: 768px) {
  .page-news__hero-content {
    padding: 60px 15px 30px;
  }

  .page-news__main-title {
    font-size: 28px;
  }

  .page-news__hero-description,
  .page-news__cta-description {
    font-size: 16px;
  }

  .page-news__btn-primary {
    padding: 12px 25px;
    font-size: 16px;
    width: 100% !important;
  }

  .page-news__btn-large {
    padding: 15px 30px;
    font-size: 18px;
  }

  .page-news__articles-section,
  .page-news__faq-section,
  .page-news__cta-section {
    padding: 40px 0;
  }

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

  .page-news__articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-news__article-card {
    margin: 0 15px;
  }

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

  .page-news__article-title {
    font-size: 18px;
  }

  .page-news__article-excerpt {
    font-size: 14px;
  }

  details.page-news__faq-item summary.page-news__faq-question {
    padding: 15px;
  }

  .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 15px 15px;
    font-size: 15px;
  }

  /* Mobile image adaptation */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__article-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Mobile button adaptation */
  .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: auto;
    margin-right: auto;
  }

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