.page-promotions { font-family: 'Arial', sans-serif; background-color: var(--background-color); color: #FFF5E1; }
.page-promotions__container { max-width: 1280px; margin: 0 auto; padding: 0 16px; box-sizing: border-box; }
.page-promotions__section { padding: 40px 0; }
.page-promotions__section-title { font-size: 32px; font-weight: 700; text-align: center; margin-bottom: 30px; color: #FFF5E1; }

/* Hero Section */
.page-promotions__hero-section { padding-top: 10px; padding-bottom: 24px; background: linear-gradient(180deg, #B71C1C 0%, #7A0E0E 100%); }
.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 { background-color: #D32F2F; border-radius: 10px; padding: 20px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; height: 300px; max-height: 300px; overflow: hidden; box-sizing: border-box; }
.page-promotions__main-title { font-size: 2.2em; font-weight: 800; line-height: 1.2; margin-bottom: 15px; color: #FFCC66; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); max-width: 90%; }
.page-promotions__hero-description { font-size: 16px; line-height: 1.6; margin-bottom: 25px; color: #FFF5E1; max-width: 90%; }
.page-promotions__cta-group { display: flex; gap: 15px; flex-wrap: wrap; justify-content: center; width: 100%; max-width: 100%; }

.page-promotions__btn-primary, .page-promotions__btn-secondary { display: inline-block; padding: 12px 25px; border-radius: 8px; text-decoration: none; font-weight: 700; transition: all 0.3s ease; text-align: center; box-sizing: border-box; max-width: 100%; white-space: normal; word-wrap: break-word; }
.page-promotions__btn-primary { background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); color: #7A0E0E; border: none; }
.page-promotions__btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.page-promotions__btn-secondary { background: #E53935; color: #FFF5E1; border: 2px solid #F4D34D; }
.page-promotions__btn-secondary:hover { background: #C91F17; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.page-promotions__btn-large { padding: 15px 30px; font-size: 18px; }
.page-promotions__btn-small { padding: 8px 15px; font-size: 14px; border-radius: 5px; }

.page-promotions__game-trial { background-color: #D32F2F; border-radius: 10px; overflow: hidden; height: 300px; max-height: 300px; box-sizing: border-box; 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; border: 1px solid rgba(212,175,55,.45); border-radius: 10px; overflow: hidden; box-sizing: border-box; }
.page-promotions__game-trial-topbar, .page-promotions__game-trial-bottombar { background-color: #7A0E0E; padding: 8px 15px; display: flex; justify-content: space-between; align-items: center; color: #FFF5E1; font-size: 14px; }
.page-promotions__game-refresh { background: none; border: 1px solid #F4D34D; color: #F4D34D; padding: 5px 10px; border-radius: 5px; cursor: pointer; font-size: 13px; }
.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__game-trial-overlay { position: absolute; inset: 0; background-color: rgba(0,0,0,0.7); display: flex; flex-direction: column; justify-content: center; align-items: center; color: #FFF5E1; text-align: center; z-index: 5; pointer-events: auto; }
.page-promotions__game-trial-overlay.is-hidden { display: none !important; pointer-events: none !important; }
.page-promotions__game-trial-overlay p { margin-bottom: 15px; font-size: 1.1em; }
.page-promotions__game-trial-start { background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); color: #7A0E0E; padding: 10px 25px; border-radius: 8px; border: none; font-weight: 700; cursor: pointer; font-size: 16px; z-index: 6; pointer-events: auto; touch-action: manipulation; }
.page-promotions__btn-full { width: 100%; }

.page-promotions__hero-jackpot { background-color: #D32F2F; border-radius: 10px; padding: 20px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; height: 300px; max-height: 300px; overflow: hidden; box-sizing: border-box; }
.page-promotions__jackpot-display { margin-bottom: 20px; }
.page-promotions__jackpot-label { display: block; font-size: 16px; color: #FFF5E1; margin-bottom: 5px; }
.page-promotions__jackpot-amount { display: block; font-size: 2.5em; font-weight: 800; color: #F4D34D; text-shadow: 0 0 10px rgba(255,204,102,0.7); }
.page-promotions__hero-jackpot-claim { background: #c62828 !important; color: #fff !important; padding: 12px 25px; border-radius: 8px; text-decoration: none; font-weight: 700; transition: background-color 0.3s ease; }
.page-promotions__hero-jackpot-claim:hover { background: #e53935 !important; }

/* Promo Strip Section */
.page-promotions__promo-strip { background-color: #B71C1C; padding: 50px 0; }
.page-promotions__promo-strip-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }
.page-promotions__promo-card { background-color: #D32F2F; border-radius: 10px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.2); display: flex; flex-direction: column; }
.page-promotions__promo-image { width: 100%; height: 200px; object-fit: cover; display: block; }
.page-promotions__promo-content { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.page-promotions__promo-title { font-size: 20px; font-weight: 700; margin-bottom: 10px; line-height: 1.3; }
.page-promotions__promo-title a { color: #FFCC66; text-decoration: none; transition: color 0.3s ease; }
.page-promotions__promo-title a:hover { color: #F4D344; }
.page-promotions__promo-description { font-size: 15px; color: #FFF5E1; line-height: 1.6; margin-bottom: 20px; flex-grow: 1; }

/* Benefits Section */
.page-promotions__benefits-section { background-color: #B71C1C; padding: 50px 0; }
.page-promotions__benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.page-promotions__benefit-item { background-color: #D32F2F; border-radius: 10px; padding: 30px; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.page-promotions__benefit-icon { width: 100%; height: 150px; object-fit: contain; margin-bottom: 20px; max-width: 100%; height: auto; display: block; margin-left: auto; margin-right: auto; }
.page-promotions__benefit-item h3 { font-size: 22px; color: #FFCC66; margin-bottom: 15px; }
.page-promotions__benefit-item p { font-size: 15px; color: #FFF5E1; line-height: 1.6; }

/* FAQ Section */
.page-promotions__faq-section { background-color: #7A0E0E; padding: 50px 0; }
.page-promotions__faq-list { max-width: 900px; margin: 0 auto; }

details.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #F4D34D;
  overflow: hidden;
  background: #D32F2F;
}
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: #C91F17;
}
.page-promotions__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF5E1;
}
.page-promotions__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #FFCC66;
  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: #B71C1C;
  border-radius: 0 0 10px 10px;
  color: #FFF5E1;
  font-size: 15px;
  line-height: 1.6;
}

/* CTA Section */
.page-promotions__cta-section { background: linear-gradient(180deg, #E53935 0%, #C91F17 100%); padding: 60px 0; text-align: center; }
.page-promotions__cta-content { max-width: 800px; }
.page-promotions__cta-description { font-size: 18px; color: #FFF5E1; margin-bottom: 30px; line-height: 1.6; }
.page-promotions__text-main { color: #FFF5E1; }

/* Responsive Styles */
@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;
    padding: 10px 16px 12px !important; /* Adjusted padding */
  }
  .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; }
}

@media (max-width: 768px) {
  .page-promotions__main-title { font-size: 1.8em; }
  .page-promotions__hero-description { font-size: 15px; }
  .page-promotions__cta-group { flex-direction: column; gap: 10px; }
  .page-promotions__btn-primary, .page-promotions__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-promotions__section-title { font-size: 26px; margin-bottom: 20px; }

  /* Promo Strip */
  .page-promotions__promo-strip-track {
    grid-template-columns: repeat(2, 1fr) !important; /* Two columns for mobile */
    gap: 15px;
    overflow-x: hidden !important;
  }
  .page-promotions__promo-card {
    flex-direction: column; /* Stack image and content vertically */
  }
  .page-promotions__promo-image {
    height: 150px; /* Smaller image height for mobile */
    width: 100% !important; /* Ensure image takes full width */
    max-width: 100% !important;
    height: auto !important;
  }
  .page-promotions__promo-content {
    padding: 15px;
  }
  .page-promotions__promo-title { font-size: 18px; }
  .page-promotions__promo-description { font-size: 14px; margin-bottom: 15px; }
  .page-promotions__btn-small {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Benefits Section */
  .page-promotions__benefits-grid {
    grid-template-columns: repeat(1, 1fr) !important; /* Single column for mobile */
    gap: 20px;
  }
  .page-promotions__benefit-item { padding: 20px; }
  .page-promotions__benefit-item h3 { font-size: 20px; }
  .page-promotions__benefit-item p { font-size: 14px; }
  .page-promotions__benefit-icon {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    height: 120px; /* Adjusted icon height for mobile */
  }

  /* FAQ Section */
  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: 24px; }
  details.page-promotions__faq-item .page-promotions__faq-answer { padding: 0 15px 15px; }

  /* CTA Section */
  .page-promotions__cta-description { font-size: 16px; }
  .page-promotions__btn-large {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* General Image and Container Mobile Adaptations */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .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-buttons { flex-wrap: wrap !important; gap: 10px; flex-direction: column; }
}

/* Default styles for all images to prevent overflow */
.page-promotions img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Default styles for containers to prevent overflow */
.page-promotions__section,
.page-promotions__card,
.page-promotions__container,
.page-promotions__cta-buttons,
.page-promotions__button-group,
.page-promotions__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Ensure text contrast for dark backgrounds */
.page-promotions__dark-section { background: linear-gradient(180deg, #B71C1C 0%, #7A0E0E 100%); color: #FFF5E1; }
.page-promotions__card { background-color: #D32F2F; color: #FFF5E1; }
.page-promotions__light-bg { background-color: #B71C1C; color: #FFF5E1; }