/* Custom Colors */
:root {
  --page-promotions-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-promotions-card-bg: #11271B;
  --page-promotions-background: #08160F;
  --page-promotions-text-main: #F2FFF6;
  --page-promotions-text-secondary: #A7D9B8;
  --page-promotions-border: #2E7A4E;
  --page-promotions-glow: #57E38D;
  --page-promotions-gold: #F2C14E;
  --page-promotions-divider: #1E3A2A;
  --page-promotions-deep-green: #0A4B2C;
}

/* Global styles for the page content, assuming dark body background */
.page-promotions {
  background-color: var(--page-promotions-background);
  color: var(--page-promotions-text-main);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-promotions__section-title {
  font-size: 36px;
  color: var(--page-promotions-text-main);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-promotions__section-description {
  font-size: 18px;
  color: var(--page-promotions-text-secondary);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-promotions__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, assuming body handles --header-offset */
  margin-bottom: 40px;
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-height: 675px;
  overflow: hidden;
  position: relative;
}

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

.page-promotions__hero-content {
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  background: var(--page-promotions-card-bg);
  border-radius: 0 0 15px 15px;
  margin-top: -15px; /* Slightly overlap with image for visual flow */
  position: relative;
  z-index: 2;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions__main-title {
  font-size: 48px;
  color: var(--page-promotions-gold);
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
}

.page-promotions__subtitle {
  font-size: 20px;
  color: var(--page-promotions-text-secondary);
  margin-bottom: 30px;
}

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

.page-promotions__btn-primary {
  background: var(--page-promotions-button-gradient);
  color: var(--page-promotions-text-main);
  border: none;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-promotions__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-promotions__btn-secondary {
  background: transparent;
  color: var(--page-promotions-gold);
  border: 2px solid var(--page-promotions-gold);
  margin-left: 20px;
}

.page-promotions__btn-secondary:hover {
  background: var(--page-promotions-gold);
  color: var(--page-promotions-background);
  transform: translateY(-2px);
}

/* Overview Section */
.page-promotions__overview-section {
  padding: 60px 0;
  margin-bottom: 40px;
}

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

.page-promotions__promo-card {
  background: var(--page-promotions-card-bg);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--page-promotions-border);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-promotions__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-promotions__card-title {
  font-size: 24px;
  color: var(--page-promotions-gold);
  margin-bottom: 15px;
}

.page-promotions__card-text {
  font-size: 16px;
  color: var(--page-promotions-text-secondary);
  margin-bottom: 25px;
  flex-grow: 1;
}

/* Detail Section */
.page-promotions__detail-section {
  padding: 60px 0;
  margin-bottom: 40px;
  background-color: var(--page-promotions-deep-green);
}

.page-promotions__promo-category {
  background: var(--page-promotions-card-bg);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  border: 1px solid var(--page-promotions-border);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__category-title {
  font-size: 28px;
  color: var(--page-promotions-gold);
  margin-bottom: 15px;
  border-bottom: 2px solid var(--page-promotions-divider);
  padding-bottom: 10px;
}

.page-promotions__promo-category p {
  color: var(--page-promotions-text-secondary);
  margin-bottom: 15px;
}

.page-promotions__promo-category ul {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: var(--page-promotions-text-secondary);
}

.page-promotions__promo-category ul li {
  margin-bottom: 8px;
}

.page-promotions__promo-category ul li strong {
  color: var(--page-promotions-text-main);
}

/* How to Claim Section */
.page-promotions__how-to-claim {
  padding: 60px 0;
  margin-bottom: 40px;
}

.page-promotions__claim-steps {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.page-promotions__step-item {
  display: flex;
  align-items: flex-start;
  background: var(--page-promotions-card-bg);
  border-radius: 10px;
  padding: 25px;
  border: 1px solid var(--page-promotions-border);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__step-number {
  font-size: 36px;
  font-weight: bold;
  color: var(--page-promotions-gold);
  margin-right: 20px;
  flex-shrink: 0;
  line-height: 1;
}

.page-promotions__step-content {
  flex-grow: 1;
}

.page-promotions__step-title {
  font-size: 24px;
  color: var(--page-promotions-text-main);
  margin-bottom: 10px;
}

.page-promotions__step-content p {
  color: var(--page-promotions-text-secondary);
}

.page-promotions__step-content p a {
  color: var(--page-promotions-gold);
  text-decoration: underline;
}

.page-promotions__step-content p a:hover {
  color: var(--page-promotions-glow);
}

/* FAQ Section */
.page-promotions__faq-section {
  padding: 60px 0;
  margin-bottom: 40px;
}

details.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--page-promotions-border);
  overflow: hidden;
  background: var(--page-promotions-card-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

details.page-promotions__faq-item summary.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  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(var(--page-promotions-border), 0.2);
}

.page-promotions__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--page-promotions-text-main);
}

.page-promotions__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--page-promotions-gold);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-promotions__faq-item .page-promotions__faq-answer {
  padding: 0 25px 25px;
  background: rgba(var(--page-promotions-background), 0.5);
  border-radius: 0 0 10px 10px;
  color: var(--page-promotions-text-secondary);
}

.page-promotions__faq-answer p {
  margin: 0;
  color: var(--page-promotions-text-secondary);
}

/* CTA Section */
.page-promotions__cta-section {
  padding: 60px 0;
  text-align: center;
  background-color: var(--page-promotions-deep-green);
}

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

/* 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;
  }
  .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;
  }
}

@media (max-width: 768px) {
  /* General mobile adaptations */
  .page-promotions {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .page-promotions__container {
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-promotions__main-title {
    font-size: 32px;
  }

  .page-promotions__subtitle {
    font-size: 16px;
  }

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

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

  /* Buttons */
  .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: 12px 20px;
    font-size: 16px;
    margin-left: 0 !important;
    margin-top: 10px;
  }

  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Images */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

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

  /* Detail Section Categories */
  .page-promotions__promo-category {
    padding: 20px;
  }

  .page-promotions__category-title {
    font-size: 22px;
  }

  /* How to Claim Steps */
  .page-promotions__step-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
  }

  .page-promotions__step-number {
    font-size: 32px;
    margin-right: 0;
    margin-bottom: 10px;
  }

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

  /* FAQ */
  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;
    width: 24px;
  }
  details.page-promotions__faq-item .page-promotions__faq-answer {
    padding: 0 15px 15px;
  }
  /* Homepage specific elements - required boilerplate for output, not for this page's HTML */
  .page-promotions__promo-strip-track { grid-template-columns: repeat(4,1fr); overflow-x:hidden; }
  .page-promotions__hot-games-grid { grid-template-columns: repeat(2,1fr); }
}

/* Common styles for game trial overlay/start (boilerplate from homepage) */
.page-promotions__game-trial-overlay {
  z-index: 5;
  pointer-events: auto;
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease;
}
.page-promotions__game-trial-overlay.is-hidden {
  opacity: 0;
  display: none !important;
  pointer-events: none !important;
}
.page-promotions__game-trial-start {
  z-index: 6;
  pointer-events: auto;
  touch-action: manipulation;
  background: var(--page-promotions-button-gradient);
  color: var(--page-promotions-text-main);
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}
.page-promotions__game-trial-start:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-promotions__reward-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.page-promotions__reward-modal[aria-hidden="false"] {
  visibility: visible;
  opacity: 1;
}

.page-promotions__reward-modal-content {
  background: var(--page-promotions-card-bg);
  padding: 40px;
  border-radius: 15px;
  text-align: center;
  position: relative;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 2px solid var(--page-promotions-gold);
}

.page-promotions__reward-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 30px;
  color: var(--page-promotions-text-secondary);
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s ease;
}

.page-promotions__reward-modal-close:hover {
  color: var(--page-promotions-gold);
}

.page-promotions__reward-modal h3 {
  font-size: 32px;
  color: var(--page-promotions-gold);
  margin-bottom: 20px;
}

.page-promotions__reward-modal p {
  font-size: 18px;
  color: var(--page-promotions-text-main);
  margin-bottom: 30px;
}

.page-promotions__reward-modal .page-promotions__btn-primary {
  margin-top: 20px;
}

body.page-promotions--reward-open {
  overflow: hidden;
}

/* Specific styling for boilerplate homepage elements (not used in promotions.html HTML) */
.page-promotions__game-trial-shell{border:1px solid rgba(212,175,55,.45);border-radius:10px;overflow:hidden;}
.page-promotions__promo-strip{margin-top:16px;}
.page-promotions__promo-strip-track{grid-template-columns:repeat(4,1fr);}
.page-promotions__hot-games-grid{grid-template-columns:repeat(6,1fr);}
.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-viewport { position: relative; width: 100%; aspect-ratio: 1024 / 768; flex: 1; min-height: 0; max-height: none; overflow: hidden; box-sizing: border-box; }
.page-promotions__game-trial-frame { display: block; width: 100%; height: 100%; min-height: 0; border: none; }