/* Global CSS for the page-promotions */
.page-promotions {
  background: #0D0E12;
  color: #FFF3E6;
  font-family: Arial, sans-serif;
}

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

.page-promotions__section-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #FFB04D;
  line-height: 1.2;
}

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

.page-promotions__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  transition: background 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
}

.page-promotions__btn-primary:hover {
  background: linear-gradient(180deg, #D96800 0%, #FFA53A 100%);
}

/* Hero Section */
.page-promotions__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  background: #0D0E12;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-promotions__hero-section .page-promotions__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.page-promotions__hero-content {
  max-width: 900px;
}

.page-promotions__hero-title {
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 800;
  margin-bottom: 20px;
  color: #FFB04D;
  line-height: 1.2;
}

.page-promotions__hero-description {
  font-size: 19px;
  margin-bottom: 30px;
  color: #FFF3E6;
  line-height: 1.6;
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-width: 1000px; /* Adjust max-width as needed */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  border: 2px solid #A84F0C;
}

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

/* Overview Section */
.page-promotions__overview-section {
  padding: 60px 0;
  background: #17191F;
  color: #FFF3E6;
}

.page-promotions__overview-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 700px;
  text-align: left;
}

.page-promotions__overview-list li {
  background: #0D0E12;
  border: 1px solid #A84F0C;
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  font-size: 17px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__overview-list li::before {
  content: '✅';
  display: inline-block;
  margin-right: 10px;
  font-size: 18px;
}

/* Featured Promotions */
.page-promotions__featured-promos {
  padding: 60px 0;
  background: #0D0E12;
}

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

.page-promotions__promo-card {
  background: #17191F;
  border: 1px solid #A84F0C;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  color: #FFF3E6;
}

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

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

.page-promotions__promo-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #FFB04D;
  line-height: 1.3;
}

.page-promotions__promo-text {
  font-size: 16px;
  margin-bottom: 25px;
  line-height: 1.6;
  flex-grow: 1;
}

.page-promotions__promo-card .page-promotions__cta-button {
  margin-top: auto; /* Push button to bottom */
  width: 100%;
}

/* VIP Program */
.page-promotions__vip-program {
  padding: 60px 0;
  background: #FF8C1A;
  color: #ffffff;
  text-align: center;
}

.page-promotions__vip-program .page-promotions__section-title {
  color: #FFF3E6;
}

.page-promotions__vip-program .page-promotions__section-description {
  color: #ffffff;
}

.page-promotions__vip-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 30px;
  max-width: 800px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 15px;
  text-align: left;
}

.page-promotions__vip-list li {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 15px 20px;
  border-radius: 8px;
  font-size: 17px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-promotions__vip-list li::before {
  content: '⭐';
  display: inline-block;
  margin-right: 10px;
  font-size: 18px;
}

.page-promotions__vip-program .page-promotions__cta-button {
  background: #D96800;
  color: #FFF3E6;
  border: 2px solid #FFF3E6;
}

.page-promotions__vip-program .page-promotions__cta-button:hover {
  background: #A84F0C;
  border-color: #FFA53A;
}

/* How to Claim Section */
.page-promotions__how-to-claim {
  padding: 60px 0;
  background: #0D0E12;
  color: #FFF3E6;
}

.page-promotions__guide-list {
  list-style: none;
  counter-reset: guide-counter;
  padding: 0;
  margin: 0 auto 40px;
  max-width: 900px;
}

.page-promotions__guide-list li {
  counter-increment: guide-counter;
  background: #17191F;
  border: 1px solid #A84F0C;
  padding: 20px 25px;
  margin-bottom: 15px;
  border-radius: 10px;
  font-size: 17px;
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
}

.page-promotions__guide-list li::before {
  content: counter(guide-counter);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #FFA53A;
  color: #0D0E12;
  font-weight: bold;
  font-size: 18px;
  flex-shrink: 0;
}

.page-promotions__how-to-claim .page-promotions__cta-button {
  display: block;
  margin: 0 auto;
  max-width: 300px;
}

/* FAQ Section */
.page-promotions__faq-section {
  padding: 60px 0;
  background: #17191F;
  color: #FFF3E6;
}

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

details.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #A84F0C;
  overflow: hidden;
  background: #0D0E12;
}
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: #FFB04D;
}
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, 176, 77, 0.1);
}
.page-promotions__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}
.page-promotions__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFA53A;
  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: #17191F;
  border-radius: 0 0 5px 5px;
  color: #FFF3E6;
}

/* Fixed CSS blocks as per prompt requirements */
@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;
  }
}

/* Mobile adaptations for 768px and below */
@media (max-width: 768px) {
  .page-promotions__container {
    padding: 0 15px;
  }

  .page-promotions__hero-section .page-promotions__container {
    gap: 20px;
  }

  .page-promotions__hero-title {
    font-size: 30px;
    margin-bottom: 15px;
  }

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

  .page-promotions__cta-button {
    padding: 10px 20px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

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

  .page-promotions__overview-list li {
    font-size: 16px;
    padding: 12px 15px;
  }

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

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

  .page-promotions__promo-content {
    padding: 20px;
  }

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

  .page-promotions__promo-text {
    font-size: 15px;
  }

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

  .page-promotions__vip-list li {
    font-size: 16px;
    padding: 12px 15px;
  }

  .page-promotions__guide-list li {
    font-size: 16px;
    padding: 15px 20px;
  }

  details.page-promotions__faq-item summary.page-promotions__faq-question {
    padding: 15px;
  }
  .page-promotions__faq-qtext {
    font-size: 16px;
  }
  .page-promotions__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
  details.page-promotions__faq-item .page-promotions__faq-answer {
    padding: 0 15px 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,
  .page-promotions__hero-section,
  .page-promotions__overview-section,
  .page-promotions__featured-promos,
  .page-promotions__vip-program,
  .page-promotions__how-to-claim,
  .page-promotions__faq-section,
  .page-promotions__promo-card,
  .page-promotions__hero-image-wrapper
  {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Button container mobile adaptation */
  .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; /* Ensure vertical stacking for multiple buttons */
  }
}

/* Required fixed elements for homepage (even if not used on this 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__reward-modal-close{position:absolute;top:15px;right:15px;font-size:30px;color:#fff;cursor:pointer;background:none;border:none;}
.page-promotions--reward-open{overflow:hidden;}