.page-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #1F2D3D);
  background-color: var(--bg-color, #F4F7FB);
}

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

.page-promotions__section {
  padding: 40px 0;
}

.page-promotions__section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-main, #1F2D3D);
  text-align: center;
  margin-bottom: 25px;
  line-height: 1.3;
}

.page-promotions__section-text {
  font-size: 16px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px;
  color: var(--text-main, #1F2D3D);
}

.page-promotions__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
}

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

.page-promotions__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
}

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

.page-promotions__btn-secondary:hover {
  background: #e0e0e0;
}

.page-promotions__btn-white {
  background: #ffffff;
  color: #2F6BFF;
  border: none;
}

.page-promotions__btn-white:hover {
  background: #f0f0f0;
}

.page-promotions__btn-link {
  color: #2F6BFF;
  text-decoration: underline;
  background: none;
  border: none;
  padding: 0;
  font-weight: 500;
}

.page-promotions__btn-link:hover {
  color: #1a4dcc;
}

.page-promotions__btn-small {
  padding: 8px 18px;
  font-size: 14px;
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 50px;
  background-color: var(--bg-color, #F4F7FB);
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
}

.page-promotions__hero-content {
  max-width: 900px;
  text-align: center;
  padding: 0 15px;
}

.page-promotions__main-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  color: var(--custom-color_1776249996415, #000000);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-promotions__hero-description {
  font-size: 18px;
  margin-bottom: 30px;
  color: var(--text-main, #1F2D3D);
}

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

.page-promotions__promo-card {
  background-color: var(--card-bg, #FFFFFF);
  border: 1px solid var(--border-color, #D6E2FF);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

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

.page-promotions__card-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main, #1F2D3D);
  margin-bottom: 15px;
}

.page-promotions__card-description {
  font-size: 15px;
  color: var(--text-main, #1F2D3D);
  margin-bottom: 20px;
}

.page-promotions__card-features {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 20px;
  color: var(--text-main, #1F2D3D);
  font-size: 14px;
}

.page-promotions__card-features li {
  margin-bottom: 8px;
}

.page-promotions__card-content .page-promotions__btn {
  margin-top: auto; /* Push button to the bottom */
  width: 100%;
}

/* Terms and Conditions */
.page-promotions__terms-list {
  list-style: decimal;
  padding-left: 25px;
  max-width: 900px;
  margin: 0 auto 30px;
  text-align: left;
  font-size: 16px;
  color: var(--text-main, #1F2D3D);
}

.page-promotions__terms-list li {
  margin-bottom: 12px;
}

.page-promotions__terms-list strong {
  color: var(--custom-color_1776249996415, #000000);
}

/* How To Claim Steps */
.page-promotions__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-promotions__step-card {
  background-color: var(--card-bg, #FFFFFF);
  border: 1px solid var(--border-color, #D6E2FF);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  padding-bottom: 25px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-promotions__step-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main, #1F2D3D);
  margin-bottom: 15px;
  padding: 0 20px;
}

.page-promotions__step-description {
  font-size: 15px;
  color: var(--text-main, #1F2D3D);
  padding: 0 20px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-promotions__step-card .page-promotions__btn {
  margin-top: auto;
  align-self: center;
}

/* Why Choose Section (Dark) */
.page-promotions__dark-section {
  background: #2F6BFF;
  color: #ffffff;
}

.page-promotions__dark-section .page-promotions__section-title,
.page-promotions__dark-section .page-promotions__section-text,
.page-promotions__dark-section .page-promotions__benefits-list {
  color: #ffffff;
}

.page-promotions__benefits-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 0 auto 30px;
  text-align: left;
  font-size: 16px;
}

.page-promotions__benefits-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
}

.page-promotions__benefits-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #A5C4FF; /* Glow color */
  font-weight: bold;
  font-size: 20px;
  line-height: 1;
}

.page-promotions__benefits-list strong {
  color: #A5C4FF;
}

/* FAQ Section */
details.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color, #D6E2FF);
  overflow: hidden;
  background: var(--card-bg, #FFFFFF);
}
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, #1F2D3D);
}
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: var(--text-main, #1F2D3D);
}
.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: var(--text-main, #1F2D3D);
}
details.page-promotions__faq-item .page-promotions__faq-answer p {
  margin: 0;
}


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

.page-promotions__section,
.page-promotions__container,
.page-promotions__promo-card,
.page-promotions__step-card {
  width: 100%;
  box-sizing: border-box;
}

/* --- Boilerplate Game Trial CSS for Homepage (as per instruction, included for completeness) --- */
@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; /* Adjusted padding-top to avoid double offset */
    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;
  }
  /* PC specific styles for promo grid */
  .page-promotions__promo-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .page-promotions__promo-card {
    flex-direction: row;
    align-items: flex-start;
    height: auto;
  }
  .page-promotions__card-image {
    width: 150px;
    height: 150px;
    flex-shrink: 0;
  }
  .page-promotions__card-content {
    padding: 15px;
  }
  .page-promotions__card-title {
    font-size: 18px;
  }
  .page-promotions__card-description,
  .page-promotions__card-features {
    font-size: 13px;
  }
  .page-promotions__card-content .page-promotions__btn {
    width: auto;
    align-self: flex-start;
  }

  /* PC specific styles for steps grid */
  .page-promotions__steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

  .page-promotions__section {
    padding: 30px 0;
  }

  .page-promotions__section-title {
    font-size: 26px;
    margin-bottom: 20px;
  }

  .page-promotions__section-text {
    font-size: 15px;
    margin-bottom: 25px;
    padding: 0 10px;
  }

  .page-promotions__hero-section {
    padding-top: 10px;
    padding-bottom: 30px;
  }

  .page-promotions__main-title {
    font-size: 26px;
    margin-bottom: 15px;
  }

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

  /* 1. 首屏试玩: Handled by 1023px block above */

  /* 2. 优惠 __promo-strip (here promo-grid) */
  .page-promotions__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }
  .page-promotions__promo-card {
    flex-direction: column;
    text-align: center;
  }
  .page-promotions__card-image {
    height: 180px;
  }
  .page-promotions__card-content {
    padding: 20px;
  }
  .page-promotions__card-title {
    font-size: 20px;
  }
  .page-promotions__card-description,
  .page-promotions__card-features {
    font-size: 14px;
  }
  .page-promotions__card-features {
    text-align: left;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }
  .page-promotions__card-content .page-promotions__btn {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* 3. 热门 __hot-games (not explicitly on this page, but if present) */
  .page-promotions__hot-games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 15px;
  }
  .page-promotions__hot-games-item-name,
  .page-promotions__hot-games-item-rtp,
  .page-promotions__hot-games-item-desc {
    display: none !important;
  }
  .page-promotions__hot-games-item-image {
    width: 100% !important;
    height: auto !important;
  }

  /* 4. 品牌 __brand-intro (not explicitly on this page) */
  .page-promotions__brand-intro {
    padding: 30px 15px;
  }

  /* 5. 中奖条 __winner-ticker (not explicitly on this page) */
  /* Assumed to be handled by shared.css if fixed bottom */

  /* 6. 通用图片与容器 */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-promotions__section,
  .page-promotions__container,
  .page-promotions__promo-card,
  .page-promotions__step-card,
  .page-promotions__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-promotions__hero-image-wrapper { padding: 0; }

  /* 7. 按钮与按钮容器 */
  .page-promotions__btn,
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .page-promotions__btn-white,
  .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 !important;
    padding-right: 15px !important;
  }
  .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;
    display: flex;
    flex-direction: column; /* Stack buttons vertically on mobile */
  }

  /* 8. Other modules (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; }

  .page-promotions__terms-list,
  .page-promotions__benefits-list {
    padding-left: 20px;
    font-size: 15px;
  }
  .page-promotions__benefits-list li {
    padding-left: 25px;
  }
  .page-promotions__benefits-list li::before {
    font-size: 18px;
  }

  .page-promotions__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }
  .page-promotions__step-title {
    font-size: 18px;
  }
  .page-promotions__step-description {
    font-size: 14px;
  }
}

/* --- Boilerplate Game Trial Overlay/Modal (as per instruction, included for completeness) --- */
.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: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}
.page-promotions__reward-modal[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}
.page-promotions__reward-modal-content {
  background: var(--card-bg, #FFFFFF);
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: 0 5px 25px rgba(0,0,0,0.2);
}
.page-promotions__reward-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #888;
  line-height: 1;
  padding: 5px;
}
.page-promotions__reward-modal-close:hover { color: #333; }
.page-promotions__reward-modal-title {
  font-size: 28px;
  color: var(--custom-color_1776249996415, #000000);
  margin-bottom: 20px;
}
.page-promotions__reward-modal-text {
  font-size: 16px;
  color: var(--text-main, #1F2D3D);
  margin-bottom: 30px;
}
.page-promotions__reward-modal-btn {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  border: none;
  padding: 12px 30px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: background 0.3s ease;
}
.page-promotions__reward-modal-btn:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
}