/* style/news.css */
.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Ensure consistency with body background */
}

.page-news__hero-section {
  position: relative;
  width: 100%;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  text-align: center;
  background: linear-gradient(135deg, #26A9E0 0%, #1a7bb5 100%); /* Brand color gradient */
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 450px;
}

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

.page-news__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-news__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.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: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
  text-align: center;
}

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

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

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

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

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

.page-news__section.page-news__dark-bg {
  background-color: #1a1a1a; /* Slightly lighter dark background for sections */
  color: #ffffff;
}

.page-news__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for titles */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

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

.page-news__section-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #cccccc;
}

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

.page-news__card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark background */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
}

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

.page-news__article-image,
.page-news__promo-image,
.page-news__category-image,
.page-news__guide-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-news__article-content,
.page-news__promo-content,
.page-news__category-content,
.page-news__guide-content {
  padding: 25px;
}

.page-news__article-title,
.page-news__promo-title,
.page-news__category-title,
.page-news__guide-title {
  font-size: 1.5em;
  margin-bottom: 15px;
}

.page-news__article-title a,
.page-news__promo-title a,
.page-news__category-title a,
.page-news__guide-title a {
  color: #26A9E0; /* Brand color for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__card.page-news__dark-bg .page-news__article-title a,
.page-news__card.page-news__dark-bg .page-news__promo-title a,
.page-news__card.page-news__dark-bg .page-news__category-title a,
.page-news__card.page-news__dark-bg .page-news__guide-title a {
  color: #ffffff;
}

.page-news__article-title a:hover,
.page-news__promo-title a:hover,
.page-news__category-title a:hover,
.page-news__guide-title a:hover {
  color: #EA7C07; /* Login color on hover */
}

.page-news__article-excerpt,
.page-news__promo-excerpt,
.page-news__category-description,
.page-news__guide-excerpt {
  font-size: 0.95em;
  color: #cccccc;
  margin-bottom: 20px;
}

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

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

.page-news__cta-center {
  margin-top: 40px;
  text-align: center;
}

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

/* Video Section */
.page-news__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 12px;
  margin-top: 40px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-news__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

/* FAQ Section */
.page-news__faq-list {
  margin-top: 40px;
  text-align: left;
}

.page-news__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark background */
  border-radius: 12px;
  margin-bottom: 15px;
  padding: 20px 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

.page-news__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.2em;
  color: #26A9E0; /* Brand color for question */
  list-style: none; /* Remove default marker */
  transition: color 0.3s ease;
}

.page-news__faq-item summary::-webkit-details-marker {
  display: none; /* Remove default marker for Webkit browsers */
}

.page-news__faq-item summary:hover {
  color: #EA7C07; /* Login color on hover */
}

.page-news__faq-qtext {
  flex-grow: 1;
  color: #ffffff;
}

.page-news__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #ffffff;
}

.page-news__faq-answer {
  padding-top: 15px;
  font-size: 1.0em;
  line-height: 1.8;
  color: #cccccc;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 15px;
  padding-left: 0;
  padding-right: 0;
}

/* Ensure the FAQ answer text is light on dark background */
.page-news__dark-bg .page-news__faq-item .page-news__faq-qtext,
.page-news__dark-bg .page-news__faq-item .page-news__faq-toggle {
  color: #ffffff;
}

/* CTA Bottom Section */
.page-news__cta-bottom {
  background-color: #26A9E0; /* Brand color */
  color: #ffffff;
  padding: 80px 20px;
}

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

.page-news__cta-bottom .page-news__section-description {
  color: #f0f0f0;
  margin-bottom: 50px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: 2.8em;
  }
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__article-image, .page-news__promo-image, .page-news__category-image, .page-news__guide-image {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding: 60px 15px;
    min-height: 350px;
  }
  .page-news__hero-title {
    font-size: 2.2em;
  }
  .page-news__hero-description {
    font-size: 1em;
  }
  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-news__btn-primary, .page-news__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-news__section {
    padding: 40px 0;
  }
  .page-news__section-title {
    font-size: 1.8em;
  }
  .page-news__section-description {
    font-size: 0.95em;
  }
  .page-news__articles-grid,
  .page-news__promos-grid,
  .page-news__game-categories,
  .page-news__guides-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-news__article-image,
  .page-news__promo-image,
  .page-news__category-image,
  .page-news__guide-image {
    height: 220px;
  }
  .page-news__article-content,
  .page-news__promo-content,
  .page-news__category-content,
  .page-news__guide-content {
    padding: 20px;
  }
  .page-news__article-title,
  .page-news__promo-title,
  .page-news__category-title,
  .page-news__guide-title {
    font-size: 1.3em;
  }
  .page-news__read-more-link {
    font-size: 0.9em;
  }
  .page-news__video-wrapper {
    margin-top: 20px;
  }
  .page-news__faq-item {
    padding: 15px 20px;
  }
  .page-news__faq-item summary {
    font-size: 1.1em;
  }
  .page-news__faq-answer {
    font-size: 0.9em;
  }
  .page-news__cta-bottom {
    padding: 60px 15px;
  }
  .page-news__btn-large {
    font-size: 1.1em;
    padding: 15px 30px;
  }

  /* Mobile image responsiveness */
  .page-news img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__video-section,
  .page-news__video-container,
  .page-news__video-wrapper,
  .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;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
  .page-news__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure proper spacing for video section */
  }
  .page-news__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-news__hero-title {
    font-size: 1.8em;
  }
  .page-news__section-title {
    font-size: 1.6em;
  }
  .page-news__article-image, .page-news__promo-image, .page-news__category-image, .page-news__guide-image {
    height: 180px;
  }
}