/* 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: transparent; /* Body background is handled by shared.css */
}

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

.page-news__hero-section {
  position: relative;
  padding: 80px 20px;
  text-align: center;
  background-color: #017439; /* Brand main color for hero */
  color: #ffffff;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

.page-news__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
}

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

.page-news__btn-primary {
  display: inline-block;
  background-color: #C30808; /* Specific color for register/login */
  color: #FFFF00; /* Specific font color for register/login */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-news__btn-primary:hover {
  background-color: #a00606;
}

.page-news__btn-secondary {
  display: inline-block;
  background-color: #ffffff;
  color: #017439;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid #017439;
  cursor: pointer;
}

.page-news__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005f2e;
}

.page-news__section-title {
  font-size: 2em;
  margin-bottom: 25px;
  text-align: center;
  color: #FFFF00; /* Use a contrasting color for titles on dark background */
  font-weight: bold;
}

.page-news__introduction-section,
.page-news__verification-section,
.page-news__promotions-section,
.page-news__payment-section,
.page-news__contact-section {
  padding: 60px 0;
  background-color: #1a1a2e; /* Matches body background for consistency */
  color: #ffffff; /* Light text for dark background */
}

.page-news__guide-section,
.page-news__games-section,
.page-news__conclusion-section {
  padding: 60px 0;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter dark background for contrast */
  color: #ffffff;
}

.page-news__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

.page-news__light-bg {
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.page-news__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-news__text-block a {
  color: #FFFF00; /* Highlight links in text */
  text-decoration: underline;
}

.page-news__text-block a:hover {
  color: #a00606;
}

.page-news__image-fullwidth {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px 0;
  border-radius: 8px;
  object-fit: cover;
}

.page-news__image-block {
  width: 80%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  object-fit: cover;
}

.page-news__ordered-list,
.page-news__unordered-list {
  list-style-position: inside;
  margin-bottom: 20px;
  padding-left: 20px;
}

.page-news__list-item {
  margin-bottom: 15px;
}

.page-news__list-title {
  font-size: 1.3em;
  color: #FFFF00; /* Highlight sub-titles in lists */
  margin-bottom: 10px;
}

.page-news__list-item p {
  margin-left: 10px;
}

/* FAQ Section */
.page-news__faq-section {
  padding: 60px 0;
  background-color: #017439; /* Brand main color for FAQ */
  color: #ffffff;
}

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

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

.page-news__faq-item details {
  border: none;
}

.page-news__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.15);
  list-style: none; /* Hide default marker */
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

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

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

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

.page-news__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
}

.page-news__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  color: #f0f0f0;
}

.page-news__faq-answer p {
  margin-bottom: 0;
}

.page-news__game-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
  margin-bottom: 40px;
}

.page-news__game-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-news__game-title {
  font-size: 1.4em;
  margin-bottom: 10px;
}

.page-news__game-title a {
  color: #FFFF00; /* Highlight game titles */
  text-decoration: none;
}

.page-news__game-title a:hover {
  text-decoration: underline;
}

.page-news__app-section {
  background-color: #017439; /* Brand main color */
  color: #ffffff;
  padding: 60px 0;
  text-align: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: 2.2em;
  }
  .page-news__section-title {
    font-size: 1.8em;
  }
}

@media (max-width: 768px) {
  .page-news {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-news__container {
    padding: 0 15px; /* Adjust padding for mobile */
  }

  .page-news__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

  .page-news__hero-title {
    font-size: 2em;
  }

  .page-news__hero-description {
    font-size: 1em;
  }

  .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;
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 15px; /* Add space between stacked buttons */
  }

  .page-news__game-categories {
    grid-template-columns: 1fr;
  }

  .page-news__image-fullwidth,
  .page-news__image-block {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-news__introduction-section,
  .page-news__verification-section,
  .page-news__promotions-section,
  .page-news__payment-section,
  .page-news__contact-section,
  .page-news__conclusion-section,
  .page-news__guide-section,
  .page-news__games-section,
  .page-news__faq-section,
  .page-news__app-section {
    padding: 40px 0;
  }
  
  .page-news__section-title {
    font-size: 1.5em;
  }

  /* Ensure all containers for images/videos/buttons are responsive */
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__game-card,
  .page-news__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Video specific mobile styles, if video is added */
  .page-news video,
  .page-news__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-news__video-section,
  .page-news__video-container,
  .page-news__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-news__hero-title {
    font-size: 1.8em;
  }
  .page-news__btn-primary,
  .page-news__btn-secondary {
    font-size: 0.9em;
    padding: 12px 20px;
  }
}