/* Base styles for the promotions page */
.page-promotions {
  color: #FFF3E6; /* Text Main */
  background: #0D0E12; /* Background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: 10px; /* Small top padding, assuming body handles --header-offset */
}

.page-promotions__section {
  padding: 40px 20px;
  max-width: 1280px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-promotions__dark-section {
  background: #17191F; /* Card BG */
}

.page-promotions__section-title {
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #FFB04D; /* Glow */
}

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

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-bottom: 40px;
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px; /* Adjust as needed */
}

.page-promotions__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 20px;
  max-width: 900px;
  margin-top: -100px; /* Overlap slightly for visual effect, but not text on image */
}

.page-promotions__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #FFB04D; /* Glow */
  margin-bottom: 20px;
}

.page-promotions__intro-text {
  font-size: 18px;
  margin-bottom: 30px;
  color: #FFF3E6;
}

/* CTA Buttons */
.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff; /* Button text always white */
  border: none;
}

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

.page-promotions__btn-secondary {
  background: #17191F;
  color: #FF8C1A;
  border: 2px solid #FF8C1A;
}

.page-promotions__btn-secondary:hover {
  background: #FF8C1A;
  color: #ffffff;
}

/* Promotion Cards Grid */
.page-promotions__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.page-promotions__card {
  background: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #FFF3E6;
}

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

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

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

.page-promotions__card-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #FFB04D;
}

.page-promotions__card-text {
  font-size: 15px;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-promotions__card-button {
  align-self: flex-start;
}

/* Why Choose rm88 Promotions Section */
.page-promotions__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-promotions__benefit-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 30px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-promotions__benefit-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
  display: inline-block;
  object-fit: contain;
  min-width: 60px; /* Ensure min-size */
  min-height: 60px; /* Ensure min-size */
}

.page-promotions__benefit-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #FFB04D;
}

.page-promotions__benefit-text {
  font-size: 15px;
  color: #FFF3E6;
}

/* How to Claim Section */
.page-promotions__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  text-align: center;
}

.page-promotions__step-item {
  padding: 30px 20px;
}

.page-promotions__step-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FF8C1A;
}

.page-promotions__step-text {
  font-size: 16px;
  color: #FFF3E6;
}

/* FAQ Section */
details.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #A84F0C; /* Border */
  overflow: hidden;
  background: #17191F; /* Card BG */
  color: #FFF3E6;
}

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: rgba(255, 255, 255, 0.1);
}

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

.page-promotions__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FF8C1A;
  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: rgba(0, 0, 0, 0.2);
  border-radius: 0 0 8px 8px;
  font-size: 15px;
}

.page-promotions__faq-answer p {
    margin: 0;
}

/* Bottom CTA */
.page-promotions__cta-bottom {
  text-align: center;
  padding-top: 60px;
  padding-bottom: 60px;
}

/* Copyright */
.page-promotions__copyright {
  text-align: center;
  padding: 20px;
  font-size: 14px;
  color: #666;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-promotions__section,
.page-promotions__card,
.page-promotions__container,
.page-promotions__promo-grid,
.page-promotions__benefits-grid,
.page-promotions__steps-grid,
.page-promotions__faq-list {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* --- Start of Homepage Game Trial CSS (Required to be 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;
  }
  .page-promotions__promo-strip {
    margin-top: 16px;
  }
}
/* --- End of Homepage Game Trial CSS (Required to be present) --- */

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

  .page-promotions__hero-content {
    margin-top: -60px;
    padding: 15px;
  }

  .page-promotions__main-title {
    font-size: clamp(24px, 6vw, 30px); /* Use clamp for H1 on mobile */
    margin-bottom: 15px;
  }

  .page-promotions__intro-text {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .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;
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
  }

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

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

  .page-promotions__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .page-promotions__promo-grid {
    grid-template-columns: 1fr;
  }

  .page-promotions__card-image {
    height: 180px;
  }

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

  .page-promotions__card-title {
    font-size: 18px;
  }

  .page-promotions__card-text {
    font-size: 14px;
  }

  .page-promotions__benefits-grid {
    grid-template-columns: 1fr;
  }

  .page-promotions__benefit-item {
    padding: 20px 15px;
  }

  .page-promotions__benefit-icon {
    width: 50px;
    height: 50px;
  }

  .page-promotions__benefit-title {
    font-size: 18px;
  }

  .page-promotions__steps-grid {
    grid-template-columns: 1fr;
  }

  .page-promotions__step-item {
    padding: 20px 15px;
  }

  .page-promotions__step-title {
    font-size: 20px;
  }

  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;
    width: 24px;
    height: 24px;
  }

  details.page-promotions__faq-item .page-promotions__faq-answer {
    padding: 0 15px 15px;
  }

  .page-promotions__copyright {
    padding: 15px;
  }

  /* Mobile specific image adaptation */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}

/* Homepage specific styles (Required for full CSS output, even if this is an inner page) */
.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;}
.page-promotions__game-trial-frame{display:block;width:100%;height:100%;min-height:0;border:none;}.page-promotions__game-trial-viewport{position:relative;width:100%;aspect-ratio:1024/768;min-height:240px;max-height:none;flex:none;overflow:hidden;box-sizing:border-box;}
.page-promotions__game-trial-topbar, .page-promotions__game-trial-bottombar { display: flex; align-items: center; justify-content: space-between; padding: 8px 15px; background: #17191F; color: #FFF3E6; font-size: 14px; border-bottom: 1px solid #A84F0C; }
.page-promotions__game-trial-bottombar { border-top: 1px solid #A84F0C; border-bottom: none; }
.page-promotions__game-trial-topbar-left, .page-promotions__game-trial-topbar-right { display: flex; align-items: center; gap: 10px; }
.page-promotions__game-trial-topbar-icon { width: 24px; height: 24px; object-fit: contain; }
.page-promotions__game-trial-topbar-text { color: #FFB04D; font-weight: bold; }
.page-promotions__game-trial-topbar-button { background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); color: #FFF; padding: 5px 12px; border-radius: 5px; font-size: 13px; text-decoration: none; }
.page-promotions__reward-modal-content { background: #17191F; border: 1px solid #A84F0C; border-radius: 10px; padding: 30px; text-align: center; max-width: 400px; margin: 100px auto; position: relative; }
.page-promotions__reward-modal-close { position: absolute; top: 10px; right: 10px; background: none; border: none; font-size: 24px; color: #FFB04D; cursor: pointer; }
.page-promotions__reward-modal-title { font-size: 24px; color: #FFB04D; margin-bottom: 15px; }
.page-promotions__reward-modal-text { font-size: 16px; color: #FFF3E6; margin-bottom: 20px; }
.page-promotions__reward-modal-button { background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); color: #FFF; padding: 10px 20px; border-radius: 8px; text-decoration: none; font-weight: bold; }