.page-promotions {
  font-family: 'Arial', sans-serif;
  color: #333333;
  background-color: #F5F7FA; /* Sử dụng màu nền từ tùy chỉnh */
  line-height: 1.6;
}

.page-promotions__hero-section {
  padding-top: 10px; /* Nhỏ hơn so với header-offset */
  padding-bottom: 40px;
  background: linear-gradient(135deg, #E53935 0%, #FF5A4F 100%);
  color: #ffffff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.page-promotions__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-promotions__main-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-promotions__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 800px;
  opacity: 0.9;
}

.page-promotions__link-inline {
  color: #ffffff;
  text-decoration: underline;
}

.page-promotions__link-inline:hover {
  color: #f0f0f0;
}

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

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

.page-promotions__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: none;
}

.page-promotions__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-promotions__btn-secondary {
  background: #ffffff;
  color: #E53935;
  border: 2px solid #E53935;
}

.page-promotions__btn-secondary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

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

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

.page-promotions__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  color: #333333;
  text-align: center;
  margin-bottom: 20px;
}

.page-promotions__section-description {
  font-size: 1.05rem;
  color: #555555;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-promotions__highlight-text {
  color: #E53935;
}

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

.page-promotions__card {
  background-color: #FFFFFF; /* Màu nền Card BG */
  border: 1px solid #E0E0E0; /* Màu viền */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

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

.page-promotions__card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-promotions__card-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #333333;
  margin-bottom: 15px;
}

.page-promotions__card-text {
  font-size: 0.95rem;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-promotions__btn-text {
  color: #E53935;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.3s ease;
}

.page-promotions__btn-text:hover {
  color: #FF5A4F;
}

.page-promotions__arrow {
  transition: transform 0.3s ease;
}

.page-promotions__btn-text:hover .page-promotions__arrow {
  transform: translateX(5px);
}

.page-promotions__terms-conditions {
  background-color: #ffffff;
  border-top: 1px solid #E0E0E0;
  border-bottom: 1px solid #E0E0E0;
}

.page-promotions__text-block {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
}

.page-promotions__sub-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333333;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-promotions__sub-title:first-of-type {
  margin-top: 0;
}

.page-promotions__text-block p {
  font-size: 1rem;
  color: #555555;
  margin-bottom: 20px;
}

.page-promotions__btn-full-width {
  width: 100%;
  display: block;
  text-align: center;
  margin-top: 40px;
  padding: 15px 30px;
}

.page-promotions__how-to-join {
  background: linear-gradient(135deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
}

.page-promotions__how-to-join .page-promotions__section-title,
.page-promotions__how-to-join .page-promotions__section-description {
  color: #ffffff;
}

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

.page-promotions__step-item {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-promotions__step-item:hover {
  transform: translateY(-5px);
}

.page-promotions__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #ffffff;
  color: #E53935;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-promotions__step-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-promotions__step-description {
  font-size: 1rem;
  color: #f0f0f0;
}

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

.page-promotions__why-choose {
  background-color: #F5F7FA;
}

.page-promotions__benefits-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-promotions__benefit-item {
  background-color: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.page-promotions__benefit-item:hover {
  transform: translateY(-5px);
}

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

.page-promotions__benefit-item p {
  font-size: 1rem;
  color: #555555;
}

.page-promotions__faq-section {
  background-color: #ffffff;
  padding-bottom: 80px;
  border-top: 1px solid #E0E0E0;
}

.page-promotions__faq-list {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

details.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}

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;
}

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: #f5f5f5;
}

.page-promotions__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}

.page-promotions__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  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: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}

/* General Image and Container Responsive Styles */
.page-promotions img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-promotions__section,
.page-promotions__card,
.page-promotions__container,
.page-promotions__text-block,
.page-promotions__cta-buttons,
.page-promotions__button-group,
.page-promotions__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Mobile Responsive Styles */
@media (max-width: 1023px) {
  .page-promotions__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
    padding-bottom: 30px;
  }
  .page-promotions__hero-image {
    max-width: 90%;
  }
  .page-promotions__grid-cards,
  .page-promotions__steps-grid,
  .page-promotions__benefits-list {
    grid-template-columns: 1fr;
  }
  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-promotions {
    font-size: 15px;
  }
  .page-promotions__hero-section {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-promotions__main-title {
    font-size: 2rem;
  }
  .page-promotions__description {
    font-size: 1rem;
  }
  .page-promotions__section {
    padding: 40px 15px;
  }
  .page-promotions__section-title {
    font-size: 1.8rem;
  }
  .page-promotions__section-description {
    font-size: 0.95rem;
  }
  .page-promotions__card-title {
    font-size: 1.2rem;
  }
  .page-promotions__card-text {
    font-size: 0.9rem;
  }
  .page-promotions__sub-title {
    font-size: 1.3rem;
  }
  .page-promotions__text-block {
    padding: 20px;
  }
  .page-promotions__step-title {
    font-size: 1.4rem;
  }
  .page-promotions__step-description {
    font-size: 0.95rem;
  }
  .page-promotions__benefit-title {
    font-size: 1.3rem;
  }
  details.page-promotions__faq-item summary.page-promotions__faq-question { padding: 15px; }
  .page-promotions__faq-qtext { font-size: 15px; }
  .page-promotions__faq-toggle { font-size: 20px; }
  details.page-promotions__faq-item .page-promotions__faq-answer { padding: 0 15px 15px; }

  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__text-block,
  .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;
  }
  .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 {
    flex-wrap: wrap !important;
    gap: 10px;
  }
}

/* Specific styles required by prompt, even if for homepage. Ensure they are present */
@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) {
  .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 elements/styles for 768px as per prompt checklist */
@media (max-width: 768px) {
  /* 2. 优惠 __promo-strip: grid repeat(4,1fr) 无横滑; overflow-x:hidden; 卡内 上图下文 紧凑字号; 按钮 width:100% */
  .page-promotions__grid-cards {
    grid-template-columns: 1fr;
    overflow-x: hidden;
  }
  .page-promotions__card {
    flex-direction: column;
  }
  .page-promotions__card-content {
    padding: 15px;
  }
  .page-promotions__card-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }
  .page-promotions__card-text {
    font-size: 0.85rem;
  }
  .page-promotions__btn-text {
    font-size: 0.9rem;
  }

  /* 3. 热门 __hot-games: (Not applicable to promotions page, but if it were, would be 2 cols) */
  /* If this page had hot games, it would be styled here */

  /* 4. 品牌 __brand-intro (≤768px 显示) */
  /* Not applicable to this promotions page, as it's not the homepage */

  /* 5. 中奖条 __winner-ticker: fixed 底栏; body/main 底 padding */
  /* Not applicable to this promotions page, as it's not the homepage */

  /* 6. 通用图片与容器: .page-promotions img 及内容区 max-width: 100% (Already covered above) */

  /* 7. 按钮与按钮容器: max-width: 100%、flex 换行等 (Already covered above) */
}

/* .page-promotions__reward-modal-close for the modal */
.page-promotions__reward-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #fff;
  color: #E53935;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
}
.page-promotions__reward-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.3s ease;
}
.page-promotions__reward-modal.is-hidden {
  opacity: 0;
  pointer-events: none;
  display: none; /* Ensure it's hidden from layout */
}

/* Hide reward modal when body has class */
body.page-promotions--reward-open .page-promotions__reward-modal {
  opacity: 1;
  pointer-events: auto;
  display: flex;
}

.page-promotions__reward-modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  max-width: 400px;
  text-align: center;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-promotions__reward-modal-title {
  color: #E53935;
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.page-promotions__reward-modal-text {
  color: #333;
  margin-bottom: 25px;
}