/* 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__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

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

.page-news__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-news__dark-section {
  background-color: #017439;
  color: #ffffff;
  padding: 60px 0;
}

.page-news__hero-section {
  padding-top: var(--header-offset, 120px);
  padding-bottom: 60px;
  text-align: center;
  background-image: url('[GALLERY:hero:1920x1080:xoc_bau_cua,online_betting,mobile_gaming,vietnam,celebration]');
  background-size: cover;
  background-position: center;
  position: relative;
  z-index: 1;
}

.page-news__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

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

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

.page-news__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-news__light-bg .page-news__section-title {
  color: #017439;
}

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

.page-news__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: inherit;
}

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  margin: 10px;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-news__btn-primary:hover {
  background-color: #005f2c;
  border-color: #005f2c;
}

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

.page-news__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
}

.page-news__btn-register {
  background-color: #C30808;
  border-color: #C30808;
  color: #FFFF00;
}

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

.page-news__btn-login {
  background-color: #C30808;
  border-color: #C30808;
  color: #FFFF00;
}

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

.page-news__latest-updates {
  padding: 60px 0;
}

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

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

.page-news__article-card:hover {
  transform: translateY(-5px);
}

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

.page-news__article-content {
  padding: 25px;
}

.page-news__article-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news__article-title a {
  color: #017439;
  text-decoration: none;
}

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

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

.page-news__article-excerpt {
  font-size: 1em;
  color: #555;
  margin-bottom: 20px;
}

.page-news__read-more {
  display: inline-block;
  color: #017439;
  text-decoration: none;
  font-weight: bold;
}

.page-news__read-more:hover {
  text-decoration: underline;
}

.page-news__strategy-guides {
  padding: 60px 0;
}

.page-news__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.page-news__content-grid--reverse {
  grid-template-columns: 1fr 1fr;
}

.page-news__text-block {
  color: #ffffff;
}

.page-news__light-bg .page-news__text-block {
  color: #333333;
}

.page-news__sub-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-news__sub-title a {
  color: inherit;
  text-decoration: none;
}

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

.page-news__text-block p {
  margin-bottom: 20px;
  font-size: 1.05em;
}

.page-news__image-block img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: block;
}

.page-news__image-caption {
  text-align: center;
  margin-top: 15px;
  font-style: italic;
  color: #f0f0f0;
}

.page-news__light-bg .page-news__image-caption {
  color: #555;
}

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

.page-news__platform-news {
  padding: 60px 0;
}

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

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

.page-news__promo-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding-bottom: 25px;
}

.page-news__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-news__promo-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  padding: 0 20px;
  line-height: 1.3;
}

.page-news__promo-title a {
  color: #ffffff;
  text-decoration: none;
}

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

.page-news__promo-description {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 25px;
  padding: 0 20px;
}

.page-news__promo-card .page-news__btn-primary,
.page-news__promo-card .page-news__btn-secondary {
  margin-top: 0;
}

.page-news__faq-section {
  padding: 60px 0;
}

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

.page-news__faq-item {
  background-color: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

.page-news__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  list-style: none;
  color: #017439;
}

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

.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: 0 25px 20px 25px;
  font-size: 1em;
  color: #555;
}

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

.page-news__cta-section {
  padding: 80px 0;
  text-align: center;
}

@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: 3em;
  }
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__content-grid {
    grid-template-columns: 1fr;
  }
  .page-news__content-grid--reverse {
    grid-template-columns: 1fr;
  }
  .page-news__image-block {
    order: -1; /* Image comes first on mobile */
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
  }
  .page-news__hero-title {
    font-size: 2.2em;
  }
  .page-news__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
  }
  .page-news__section-title {
    font-size: 1.8em;
  }
  .page-news__section-intro {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-news__article-grid,
  .page-news__promo-grid {
    grid-template-columns: 1fr;
  }
  .page-news__article-image {
    height: 200px;
  }
  .page-news__promo-image {
    height: 150px;
  }
  .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: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 10px;
  }
  .page-news__cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .page-news__container,
  .page-news__section,
  .page-news__card,
  .page-news__content-grid,
  .page-news__article-grid,
  .page-news__promo-grid,
  .page-news__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-news__faq-item summary {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-news__faq-answer {
    padding: 0 20px 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-news__hero-title {
    font-size: 1.8em;
  }
  .page-news__hero-description {
    font-size: 0.95em;
  }
  .page-news__section-title {
    font-size: 1.5em;
  }
  .page-news__sub-title {
    font-size: 1.4em;
  }
}