:root {
  --primary-color: #113B7A;
  --secondary-color: #1D5FD1;
  --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  --card-bg: #10233F;
  --text-main: #F3F8FF;
  --text-secondary: #AFC4E8;
  --border: #244D84;
  --glow: #4FA8FF;
  --gold: #F2C14E;
  --divider: #1B3357;
  --deep-navy: #08162B;
}

/* Base styles for page-promotions */
.page-promotions {
  font-family: Arial, sans-serif;
  color: var(--text-main); /* Assuming body background is dark from shared.css */
  background: var(--deep-navy); /* From custom colors */
  line-height: 1.6;
  padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-promotions__container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

/* Hero Section */
.page-promotions__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 0;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 30px;
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Adjust as needed */
  overflow: hidden;
  margin-bottom: 20px;
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-promotions__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.page-promotions__main-title {
  font-size: 48px;
  font-weight: bold;
  color: var(--gold); /* Changed to gold for contrast with deep-navy */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-promotions__hero-description {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

/* General Section Styles */
.page-promotions__section {
  padding: 40px 0;
  margin-bottom: 30px;
  background: var(--card-bg); /* Use custom color */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--gold); /* Use custom color */
  text-align: center;
  margin-bottom: 30px;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}

.page-promotions__content-block {
  margin-bottom: 20px;
}

.page-promotions__content-subtitle {
  font-size: 24px;
  font-weight: 600;
  color: var(--glow); /* Use custom color */
  margin-bottom: 10px;
}

.page-promotions__text-block {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 15px;
}

.page-promotions__text-block a {
  color: var(--glow);
  text-decoration: underline;
}

/* Button Styles */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  max-width: 100%; /* For responsiveness */
  box-sizing: border-box; /* For responsiveness */
  white-space: normal; /* For responsiveness */
  word-wrap: break-word; /* For responsiveness */
}

.page-promotions__btn-primary {
  background: var(--button-gradient); /* Custom button color */
  color: #ffffff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-promotions__btn-primary:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-promotions__btn-secondary {
  background: transparent;
  color: var(--glow); /* Use custom color */
  border: 2px solid var(--border); /* Use custom color */
  box-shadow: none;
}

.page-promotions__btn-secondary:hover {
  background: var(--border); /* Use custom color */
  color: #ffffff;
  transform: translateY(-2px);
}

.page-promotions__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Promo Cards Grid */
.page-promotions__promo-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.page-promotions__promo-card {
  background: var(--deep-navy);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
  border: 1px solid var(--divider); /* Custom color */
}

.page-promotions__promo-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 15px;
}

.page-promotions__promo-card-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--gold); /* Custom color */
  margin-bottom: 10px;
}

.page-promotions__promo-card-description {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Content Grid (for specific promos) */
.page-promotions__content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

/* How to Claim Section */
.page-promotions__how-to-claim .page-promotions__section-title {
  margin-bottom: 40px;
}

.page-promotions__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.page-promotions__step-card {
  background: var(--deep-navy);
  border-radius: 8px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--divider);
  position: relative;
}

.page-promotions__step-number {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--glow);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  border: 3px solid var(--deep-navy);
}

.page-promotions__step-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
  margin-top: 15px;
  margin-bottom: 10px;
}

.page-promotions__guide-image-wrapper {
  margin-top: 30px;
  text-align: center;
}

.page-promotions__guide-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Terms & Conditions */
.page-promotions__terms-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  color: var(--text-secondary);
}

.page-promotions__terms-item {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  font-size: 16px;
}

.page-promotions__terms-item::before {
  content: "•";
  color: var(--glow);
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 20px;
  line-height: 1;
}

/* Why Choose Section */
.page-promotions__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.page-promotions__benefit-item {
  background: var(--deep-navy);
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--divider);
}

.page-promotions__benefit-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--glow);
  margin-bottom: 10px;
}

/* FAQ Section */
details.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border); /* Custom color */
  overflow: hidden;
  background: var(--deep-navy); /* Custom color */
}
details.page-promotions__faq-item summary.page-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;
  color: var(--text-main);
}
details.page-promotions__faq-item summary.page-promotions__faq-question::-webkit-details-marker {
  display: none;
}
details.page-promotions__faq-item summary.page-promotions__faq-question:hover {
  background: var(--divider); /* Custom color */
}
.page-promotions__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}
.page-promotions__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--glow); /* Custom color */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-promotions__faq-item .page-promotions__faq-answer {
  padding: 0 20px 20px;
  background: var(--card-bg); /* Custom color */
  border-radius: 0 0 5px 5px;
  color: var(--text-secondary);
}

/* Footer (within main for BEM) */
.page-promotions__footer {
  padding: 30px 0;
  text-align: center;
  margin-top: 50px;
  background: var(--card-bg);
  border-top: 1px solid var(--divider);
  border-radius: 10px 10px 0 0;
}

.page-promotions__copyright {
  font-size: 14px;
  color: var(--text-secondary);
}

/* --- Responsive Design --- */

/* Mobile general styles */
@media (max-width: 768px) {
  .page-promotions {
    font-size: 16px;
    line-height: 1.6;
    padding-top: 8px; /* Slightly less padding for mobile */
  }

  .page-promotions__container {
    padding: 0 15px;
  }

  .page-promotions__hero-section {
    padding: 20px 0;
  }

  .page-promotions__main-title {
    font-size: 32px;
  }

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

  .page-promotions__section {
    padding: 25px 0;
    margin-bottom: 20px;
  }

  .page-promotions__section-title {
    font-size: 28px;
    margin-bottom: 25px;
  }

  .page-promotions__content-subtitle {
    font-size: 20px;
  }

  /* Images */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  /* Containers for images and other content */
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__promo-card,
  .page-promotions__step-card,
  .page-promotions__benefit-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Buttons */
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .page-promotions a[class*="button"],
  .page-promotions 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;
  }
  
  /* Button containers */
  .page-promotions__cta-buttons,
  .page-promotions__button-group,
  .page-promotions__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;
    flex-direction: column; /* Stack buttons vertically on mobile */
  }

  /* FAQ */
  details.page-promotions__faq-item summary.page-promotions__faq-question { padding: 15px; }
  .page-promotions__faq-qtext { font-size: 15px; }
  details.page-promotions__faq-item .page-promotions__faq-answer { padding: 0 15px 15px; }

  /* Homepage specific elements for 768px (as per instruction) */
  /* 2. Ưu đãi `__promo-strip` */
  .page-promotions__promo-strip {
    overflow-x: hidden; /* Ensure no horizontal scroll */
  }
  .page-promotions__promo-strip-track { /* Assuming this is a grid inside promo-strip */
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two columns on mobile */
    gap: 15px;
    padding: 0 15px;
  }
  .page-promotions__promo-card {
    flex-direction: column; /* Stack image and text */
    text-align: center;
  }
  .page-promotions__promo-card-image {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
  }

  /* 3. H热门 `__hot-games` */
  .page-promotions__hot-games-grid {
    grid-template-columns: repeat(2, 1fr); /* Two columns on mobile */
    gap: 15px;
    padding: 0 15px;
  }
  .page-promotions__hot-games-name,
  .page-promotions__hot-games-rtp,
  .page-promotions__hot-games-desc {
    display: none !important; /* Hide details on mobile */
  }
  .page-promotions__hot-games-item img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
  }
  .page-promotions__hot-games-item {
    text-align: center;
  }

  /* 4. 品牌 `__brand-intro` (if present, show on mobile) */
  .page-promotions__brand-intro {
    padding: 20px 15px;
    text-align: center;
  }
  .page-promotions__brand-intro-content {
    display: block; /* Stack content */
  }
  .page-promotions__brand-intro-text {
    margin-bottom: 20px;
  }

  /* 5. 中奖条 `__winner-ticker` */
  .page-promotions__winner-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 10px 15px;
    font-size: 14px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    box-sizing: border-box;
  }
  body {
    padding-bottom: 50px; /* To prevent ticker from covering content */
  }
}

/* CSS for homepage specific elements (as per instruction, even if not in HTML) */
/* A. @media (max-width: 1023px) must be output as is */
@media (max-width: 1023px) {
  .page-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-promotions__hero-brand,
  .page-promotions__hero-jackpot {
    display: none !important;
  }
  .page-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-promotions__game-trial-shell {
    height: auto !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-promotions__game-trial-topbar,
  .page-promotions__game-trial-bottombar {
    display: none !important;
  }
  .page-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-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-promotions__game-trial-overlay {
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .page-promotions__game-trial-start {
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }
}

/* B. @media (min-width: 1024px) must be output as is */
@media (min-width: 1024px) {
  .page-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-promotions__hero-brand,
  .page-promotions__hero-jackpot,
  .page-promotions__game-trial {
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-promotions__game-trial {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .page-promotions__game-trial-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-promotions__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-promotions__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  .page-promotions__hero-jackpot-claim {
    background: #c62828 !important;
    color: #fff !important;
  }
  .page-promotions__promo-strip {
    margin-top: 16px;
  }
}

/* Specific styles for is-hidden as per JS requirement */
.page-promotions__game-trial-overlay.is-hidden {
  display: none !important;
  pointer-events: none !important;
}