/* CSS Reset & Base */
.page-blog-vn188-latest-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #F5F7FA; /* Default background */
  padding-top: 10px; /* Small top padding, relying on body padding for header offset */
}

.page-blog-vn188-latest-promotions__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-blog-vn188-latest-promotions__section {
  padding: 40px 0;
  margin-bottom: 20px;
}

.page-blog-vn188-latest-promotions__section-title {
  font-size: 32px;
  color: #E53935;
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-blog-vn188-latest-promotions__paragraph {
  font-size: 16px;
  margin-bottom: 20px;
  text-align: justify;
}

/* Hero Section */
.page-blog-vn188-latest-promotions__hero-section {
  padding: 10px 0 40px 0;
  background-color: #F5F7FA;
  text-align: center;
}

.page-blog-vn188-latest-promotions__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-blog-vn188-latest-promotions__hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-blog-vn188-latest-promotions__main-title {
  font-size: clamp(28px, 4vw, 48px); /* Using clamp for responsive H1 */
  color: #E53935;
  margin-bottom: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.page-blog-vn188-latest-promotions__hero-description {
  font-size: 18px;
  color: #333333;
  margin-bottom: 30px;
}

/* Buttons */
.page-blog-vn188-latest-promotions__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog-vn188-latest-promotions__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(229, 57, 53, 0.4);
}

.page-blog-vn188-latest-promotions__btn-secondary {
  display: inline-block;
  padding: 10px 20px;
  background: #ffffff;
  color: #E53935;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  border: 2px solid #E53935;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog-vn188-latest-promotions__btn-secondary:hover {
  background: #E53935;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(229, 57, 53, 0.2);
}

/* Image content */
.page-blog-vn188-latest-promotions__image-content {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Promotions Grid */
.page-blog-vn188-latest-promotions__promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-blog-vn188-latest-promotions__card {
  background: #ffffff;
  color: #333333;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.page-blog-vn188-latest-promotions__card:hover {
  transform: translateY(-5px);
}

.page-blog-vn188-latest-promotions__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-blog-vn188-latest-promotions__card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-blog-vn188-latest-promotions__card-title {
  font-size: 22px;
  font-weight: bold;
  color: #E53935;
  margin-bottom: 10px;
}

.page-blog-vn188-latest-promotions__card-description {
  font-size: 15px;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Steps List */
.page-blog-vn188-latest-promotions__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-blog-vn188-latest-promotions__list-item {
  background: rgba(255, 255, 255, 0.1);
  border-left: 5px solid #FF5A4F;
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 5px;
  font-size: 17px;
  color: #ffffff; /* White text for dark background */
}

.page-blog-vn188-latest-promotions__list-item strong {
  color: #FF5A4F;
}

/* FAQ Section */
details.page-blog-vn188-latest-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-blog-vn188-latest-promotions__faq-item summary.page-blog-vn188-latest-promotions__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;
}
details.page-blog-vn188-latest-promotions__faq-item summary.page-blog-vn188-latest-promotions__faq-question::-webkit-details-marker {
  display: none;
}
details.page-blog-vn188-latest-promotions__faq-item summary.page-blog-vn188-latest-promotions__faq-question:hover {
  background: #f5f5f5;
}
.page-blog-vn188-latest-promotions__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-blog-vn188-latest-promotions__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-blog-vn188-latest-promotions__faq-item .page-blog-vn188-latest-promotions__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #333333;
}

.page-blog-vn188-latest-promotions__faq-image {
  margin-top: 40px;
}

/* Color Contrast */
.page-blog-vn188-latest-promotions__light-bg {
  background: #F5F7FA;
  color: #333333;
}

.page-blog-vn188-latest-promotions__dark-bg {
  background: #E53935;
  color: #ffffff;
}

/* Fixed Header & Body spacing (as per shared.css) - no extra padding-top here */

/* Homepage Trial Layout CSS (as requested, must be included even for inner page) */
@media (max-width: 1023px) {
  .page-blog-vn188-latest-promotions__home-hero {
    display: block !important;
    grid-template-columns: none !important;
    height: auto !important;
    max-height: none !important;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .page-blog-vn188-latest-promotions__hero-brand,
  .page-blog-vn188-latest-promotions__hero-jackpot {
    display: none !important;
  }
  .page-blog-vn188-latest-promotions__game-trial {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: hidden !important;
    margin: 0 auto;
    padding: 0 0 12px !important;
    box-sizing: border-box;
  }
  .page-blog-vn188-latest-promotions__game-trial-shell {
    height: auto !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-blog-vn188-latest-promotions__game-trial-topbar,
  .page-blog-vn188-latest-promotions__game-trial-bottombar {
    display: none !important;
  }
  .page-blog-vn188-latest-promotions__game-trial-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 1024 / 768;
    flex: none !important;
    min-height: 240px;
    max-height: none !important;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-blog-vn188-latest-promotions__game-trial-frame {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    max-width: 100%;
    border: none;
    z-index: 1;
    overflow: hidden;
  }
  .page-blog-vn188-latest-promotions__game-trial-overlay {
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .page-blog-vn188-latest-promotions__game-trial-start {
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }
}

@media (min-width: 1024px) {
  .page-blog-vn188-latest-promotions__home-hero {
    display: grid;
    grid-template-columns: 26% 48% 26%;
    gap: 16px;
    align-items: stretch;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 16px 24px;
    box-sizing: border-box;
  }
  .page-blog-vn188-latest-promotions__hero-brand,
  .page-blog-vn188-latest-promotions__hero-jackpot,
  .page-blog-vn188-latest-promotions__game-trial {
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-blog-vn188-latest-promotions__game-trial {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .page-blog-vn188-latest-promotions__game-trial-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-blog-vn188-latest-promotions__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-blog-vn188-latest-promotions__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  .page-blog-vn188-latest-promotions__hero-jackpot-claim {
    background: #c62828 !important;
    color: #fff !important;
  }
  /* Additional PC module styles if this were a homepage */
  .page-blog-vn188-latest-promotions__promo-strip { margin-top: 16px; }
  .page-blog-vn188-latest-promotions__promo-strip-track { grid-template-columns: repeat(4, 1fr); }
  .page-blog-vn188-latest-promotions__promo-card { display: flex; flex-direction: row; }
  .page-blog-vn188-latest-promotions__promo-card-image { width: 100px; height: auto; margin-right: 15px; }
  .page-blog-vn188-latest-promotions__hot-games-grid { grid-template-columns: repeat(6, 1fr); }
  .page-blog-vn188-latest-promotions__hot-games-item-content { text-align: center; }
  .page-blog-vn188-latest-promotions__hot-games-name, .page-blog-vn188-latest-promotions__hot-games-rtp, .page-blog-vn188-latest-promotions__hot-games-desc { display: block; }
}

/* Mobile Responsive (max-width: 768px) */
@media (max-width: 768px) {
  .page-blog-vn188-latest-promotions {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-blog-vn188-latest-promotions__container {
    padding: 0 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-blog-vn188-latest-promotions__section {
    padding: 20px 0;
  }

  .page-blog-vn188-latest-promotions__section-title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .page-blog-vn188-latest-promotions__hero-description {
    font-size: 16px;
  }

  /* Images */
  .page-blog-vn188-latest-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  .page-blog-vn188-latest-promotions__card-image {
    height: 180px; /* Adjust card image height for mobile */
  }

  /* Buttons */
  .page-blog-vn188-latest-promotions__btn-primary,
  .page-blog-vn188-latest-promotions__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 15px;
    margin-bottom: 10px; /* Spacing for stacked buttons */
  }

  .page-blog-vn188-latest-promotions__promotions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-blog-vn188-latest-promotions__card {
    flex-direction: column;
  }

  .page-blog-vn188-latest-promotions__card-content {
    padding: 15px;
  }

  .page-blog-vn188-latest-promotions__card-title {
    font-size: 20px;
  }

  .page-blog-vn188-latest-promotions__card-description {
    font-size: 14px;
  }

  .page-blog-vn188-latest-promotions__list-item {
    font-size: 15px;
    padding: 10px 15px;
  }

  details.page-blog-vn188-latest-promotions__faq-item summary.page-blog-vn188-latest-promotions__faq-question { padding: 15px; }
  .page-blog-vn188-latest-promotions__faq-qtext { font-size: 15px; }

  /* Homepage related sections for 768px (as per instructions) */
  .page-blog-vn188-latest-promotions__promo-strip-track { grid-template-columns: repeat(2, 1fr) !important; overflow-x: hidden !important; }
  .page-blog-vn188-latest-promotions__promo-card { flex-direction: column !important; text-align: center; }
  .page-blog-vn188-latest-promotions__promo-card-image { margin: 0 auto 10px auto !important; width: 80px; height: auto; }
  .page-blog-vn188-latest-promotions__hot-games-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 15px; }
  .page-blog-vn188-latest-promotions__hot-games-name, .page-blog-vn188-latest-promotions__hot-games-rtp, .page-blog-vn188-latest-promotions__hot-games-desc { display: none !important; /* Hide for mobile compactness */ }
  .page-blog-vn188-latest-promotions__brand-intro { display: block; padding: 20px 0; }
  .page-blog-vn188-latest-promotions__winner-ticker { position: fixed; bottom: 0; left: 0; right: 0; z-index: 100; background: rgba(0,0,0,0.8); color: #fff; padding: 10px 15px; font-size: 14px; overflow: hidden; white-space: nowrap; }
  body { padding-bottom: 40px; } /* Adjust body padding for fixed ticker */
  main.page-blog-vn188-latest-promotions { padding-bottom: 40px; } /* Ensure main content respects ticker */

  /* General content area overflow prevention */
  .page-blog-vn188-latest-promotions__content-area, .page-blog-vn188-latest-promotions__card, .page-blog-vn188-latest-promotions__promotions-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Ensure no horizontal scroll */
  }
}

/* Game Trial Overlay & Modal styles (as requested, must be included) */
.page-blog-vn188-latest-promotions__game-trial-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  pointer-events: auto;
  transition: opacity 0.3s ease;
}
.page-blog-vn188-latest-promotions__game-trial-overlay.is-hidden {
  opacity: 0;
  display: none !important;
  pointer-events: none !important;
}
.page-blog-vn188-latest-promotions__game-trial-start {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #fff;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  border: none;
  z-index: 6;
  pointer-events: auto;
  touch-action: manipulation;
  box-shadow: 0 4px 15px rgba(229, 57, 53, 0.5);
  transition: transform 0.2s ease;
}
.page-blog-vn188-latest-promotions__game-trial-start:hover {
  transform: translateY(-2px);
}

.page-blog-vn188-latest-promotions__reward-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.page-blog-vn188-latest-promotions__reward-modal[aria-hidden='false'] {
  opacity: 1;
  visibility: visible;
}
.page-blog-vn188-latest-promotions__reward-modal-content {
  background: #fff;
  color: #333;
  padding: 30px;
  border-radius: 10px;
  max-width: 500px;
  text-align: center;
  position: relative;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}
.page-blog-vn188-latest-promotions__reward-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  transition: color 0.2s ease;
}
.page-blog-vn188-latest-promotions__reward-modal-close:hover {
  color: #E53935;
}
.page-blog-vn188-latest-promotions__reward-modal h3 {
  font-size: 28px;
  color: #E53935;
  margin-bottom: 15px;
}
.page-blog-vn188-latest-promotions__reward-modal p {
  font-size: 16px;
  margin-bottom: 25px;
}
.page-blog-vn188-latest-promotions__reward-modal .page-blog-vn188-latest-promotions__btn-primary {
  width: auto;
  padding: 10px 20px;
}
body.page-blog-vn188-latest-promotions--reward-open {
  overflow: hidden;
}