.page-promotions {
  font-family: Arial, sans-serif;
  background-color: var(--color-background, #0A0A0A);
  color: var(--color-text-main, #FFF6D6);
}

.page-promotions__hero-section {
  padding-top: 10px;
  padding-bottom: 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 15px 15px;
  margin-bottom: 30px;
}

.page-promotions__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-promotions__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Giảm độ sáng để chữ dễ đọc */
}

.page-promotions__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 20px;
  color: #ffffff; /* Luôn dùng màu trắng trên nền tối */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-promotions__main-title {
  font-size: 3.2em;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFD36B; /* Màu vàng sáng từ bảng màu */
  text-transform: uppercase;
}

.page-promotions__hero-description {
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-promotions__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 216, 106, 0.4);
}

.page-promotions__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 216, 106, 0.6);
}

.page-promotions__btn-secondary {
  background: transparent;
  color: #FFD36B;
  border: 2px solid #FFD36B;
  box-shadow: 0 4px 15px rgba(255, 211, 107, 0.2);
}

.page-promotions__btn-secondary:hover {
  background: #FFD36B;
  color: #111111;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 211, 107, 0.4);
}

.page-promotions__section {
  max-width: 1200px;
  margin: 0 auto 50px auto;
  padding: 0 20px;
}

.page-promotions__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #F2C14E;
  text-transform: uppercase;
}

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

.page-promotions__benefit-item {
  padding: 30px;
  background: var(--color-card-bg, #111111);
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--color-border, #3A2A12);
}

.page-promotions__benefit-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #FFD36B;
}

.page-promotions__benefit-item p {
  font-size: 1em;
  line-height: 1.6;
  color: var(--color-text-main, #FFF6D6);
}

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

.page-promotions__promo-card {
  background: var(--color-card-bg, #111111);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--color-border, #3A2A12);
  display: flex;
  flex-direction: column;
}

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

.page-promotions__promo-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-promotions__promo-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #F2C14E;
}

.page-promotions__promo-description {
  font-size: 0.95em;
  line-height: 1.6;
  color: var(--color-text-main, #FFF6D6);
  margin-bottom: 20px;
}

.page-promotions__btn-small {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9em;
  transition: background-color 0.3s ease;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-promotions__btn-small:hover {
  opacity: 0.9;
}

.page-promotions__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-promotions__step-item {
  padding: 30px;
  background: var(--color-card-bg, #111111);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--color-border, #3A2A12);
  position: relative;
}

.page-promotions__step-number {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  background: #F2C14E;
  color: #111111;
  border-radius: 50%;
  font-size: 1.8em;
  font-weight: 700;
  margin: 0 auto 20px auto;
  box-shadow: 0 0 0 5px rgba(242, 193, 78, 0.3);
}

.page-promotions__step-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #FFD36B;
}

.page-promotions__step-item p {
  font-size: 0.95em;
  line-height: 1.6;
  color: var(--color-text-main, #FFF6D6);
  margin-bottom: 20px;
}

.page-promotions__btn-link {
  color: #F2C14E;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-promotions__btn-link:hover {
  text-decoration: underline;
  color: #FFD36B;
}

.page-promotions__terms-conditions .page-promotions__content-block {
  background: var(--color-card-bg, #111111);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--color-border, #3A2A12);
}

.page-promotions__terms-conditions p {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 20px;
  color: var(--color-text-main, #FFF6D6);
}

.page-promotions__terms-list {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 20px;
  color: var(--color-text-main, #FFF6D6);
}

.page-promotions__terms-list li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.page-promotions__terms-list strong {
  color: #F2C14E;
}

.page-promotions__faq-section {
  margin-bottom: 80px;
}

details.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--color-border, #3A2A12);
  overflow: hidden;
  background: var(--color-card-bg, #111111);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
details.page-promotions__faq-item summary.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #FFD36B;
  font-size: 1.1em;
}
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: rgba(242, 193, 78, 0.1);
}
.page-promotions__faq-qtext {
  flex: 1;
  font-size: 1em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}
.page-promotions__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #F2C14E;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-promotions__faq-item .page-promotions__faq-answer {
  padding: 0 25px 20px;
  background: rgba(17, 17, 17, 0.8);
  border-radius: 0 0 10px 10px;
  color: var(--color-text-main, #FFF6D6);
  line-height: 1.6;
}

.page-promotions__join-cta {
  text-align: center;
  margin-bottom: 80px;
}

.page-promotions__join-content {
  background: var(--color-card-bg, #111111);
  padding: 50px;
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  border: 2px solid #F2C14E;
}

.page-promotions__join-content .page-promotions__section-title {
  margin-top: 0;
  margin-bottom: 25px;
  color: #F2C14E;
}

.page-promotions__join-content p {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 40px;
  color: var(--color-text-main, #FFF6D6);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__footer {
  text-align: center;
  padding: 30px 20px;
  margin-top: 50px;
  background-color: var(--color-background, #0A0A0A);
  border-top: 1px solid var(--color-border, #3A2A12);
}

.page-promotions__copyright {
  font-size: 0.9em;
  color: var(--color-text-main, #FFF6D6);
}

/* Base responsive styles for images and containers */
.page-promotions img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-promotions__section,
.page-promotions__card,
.page-promotions__container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Media Queries for Responsive Design */
@media (max-width: 1023px) {
  .page-promotions__hero-section {
    padding-top: 0;
    padding-bottom: 0;
    height: auto;
  }
  .page-promotions__hero-image-wrapper {
    height: 300px;
  }
  .page-promotions__hero-content {
    padding: 40px 15px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .page-promotions__main-title {
    font-size: 2.2em;
  }
  .page-promotions__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }
  .page-promotions__cta-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    width: 100%;
    padding: 12px 20px;
    font-size: 1em;
  }
}

@media (min-width: 1024px) {
  /* This section is included as per strict instruction for the "首页试玩布局 CSS" */
  /* However, its content is not directly applied to this promotions page layout */
  .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;
  }
}

@media (max-width: 768px) {
  .page-promotions__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-promotions__section {
    padding: 0 15px;
  }

  /* General image and container adaptation */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Button adaptation */
  .page-promotions__cta-button,
  .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;
  }
  .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;
  }
  .page-promotions__cta-group {
    flex-direction: column;
  }

  .page-promotions__promo-card {
    flex-direction: column;
  }
  .page-promotions__promo-image {
    height: auto;
  }
  .page-promotions__promo-content {
    padding: 20px;
  }
  .page-promotions__promo-title {
    font-size: 1.2em;
  }
  .page-promotions__promo-description {
    font-size: 0.9em;
  }

  details.page-promotions__faq-item summary.page-promotions__faq-question {
    padding: 15px;
    font-size: 1em;
  }
  .page-promotions__faq-qtext {
    font-size: 0.95em;
  }
  .page-promotions__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
  details.page-promotions__faq-item .page-promotions__faq-answer {
    padding: 0 15px 15px;
  }

  .page-promotions__join-content {
    padding: 30px 20px;
  }
  .page-promotions__join-content .page-promotions__section-title {
    font-size: 1.5em;
  }
  .page-promotions__join-content p {
    font-size: 0.95em;
  }
}

/* The following are strict inclusions as per template instructions, even if not directly used by this page's content structure */
/* @media (max-width: 1023px) section - copied exactly from template */
@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;
  }
}

/* @media (min-width: 1024px) section - copied exactly from template */
@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;
  }
}

/* Additional required CSS from template, if any */
.page-promotions__game-trial-overlay {
  z-index: 5;
  pointer-events: auto;
}
.page-promotions__game-trial-overlay.is-hidden {
  display: none !important;
  pointer-events: none !important;
}
.page-promotions__game-trial-start {
  z-index: 6;
  pointer-events: auto;
  touch-action: manipulation;
}
.page-promotions__game-trial-shell {
  border: 1px solid rgba(212, 175, 55, .45);
  border-radius: 10px;
  overflow: hidden;
}
.page-promotions__reward-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.page-promotions__reward-modal.page-promotions--reward-open {
  opacity: 1;
  visibility: visible;
}
.page-promotions__reward-modal-content {
  background: var(--color-card-bg, #111111);
  padding: 40px;
  border-radius: 10px;
  max-width: 500px;
  text-align: center;
  position: relative;
  color: var(--color-text-main, #FFF6D6);
  border: 1px solid var(--color-border, #3A2A12);
}
.page-promotions__reward-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: #FFF6D6;
  font-size: 1.5em;
  cursor: pointer;
}
.page-promotions__reward-modal h3 {
  color: #F2C14E;
  font-size: 1.8em;
  margin-bottom: 20px;
}
.page-promotions__reward-modal p {
  margin-bottom: 30px;
}