/* General Styling for page-promotions */
.page-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Text Main */
  background: #0A0A0A; /* Background */
  padding-top: 10px; /* Small top padding, relying on body padding-top from shared.css */
}

.page-promotions__container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-promotions__section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #F2C14E; /* Main color for titles */
}

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

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

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 300px;
  max-height: 500px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.page-promotions__hero-content {
  position: relative;
  z-index: 2;
  padding: 20px;
  max-width: 900px;
  margin-top: -100px; /* Adjust to overlap slightly with the image for visual flow */
  background: rgba(17, 17, 17, 0.8); /* Card BG with transparency */
  border-radius: 10px;
  border: 1px solid #3A2A12; /* Border */
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.page-promotions__main-title {
  font-size: clamp(28px, 4vw, 48px); /* Responsive font size */
  font-weight: 800;
  color: #FFD36B; /* Auxiliary color for main title */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-promotions__description {
  font-size: 18px;
  color: #FFF6D6;
  margin-bottom: 30px;
}

.page-promotions__cta-button {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  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, #FFD86A 0%, #DDA11D 100%); /* Button color */
  color: #111111; /* Dark text for bright button */
  border: none;
}

.page-promotions__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 216, 106, 0.4);
}

.page-promotions__btn-secondary {
  background: #111111; /* Card BG */
  color: #FFD36B; /* Glow */
  border: 1px solid #FFD36B; /* Glow */
  margin-left: 15px;
}

.page-promotions__btn-secondary:hover {
  background: #FFD36B; /* Glow */
  color: #111111; /* Card BG */
  box-shadow: 0 5px 15px rgba(255, 211, 107, 0.4);
}

/* Offers Section */
.page-promotions__offers-section {
  padding: 60px 0;
}

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

.page-promotions__offer-card {
  background: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.page-promotions__offer-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}

.page-promotions__offer-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block; /* Ensure image takes full width */
}

.page-promotions__offer-title {
  font-size: 24px;
  font-weight: 700;
  color: #F2C14E; /* Main color */
  margin-bottom: 15px;
}

.page-promotions__offer-text {
  font-size: 16px;
  color: #FFF6D6;
  margin-bottom: 25px;
  flex-grow: 1; /* Allow text to grow */
}

.page-promotions__card-button {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__button-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}


/* Terms Section */
.page-promotions__terms-section {
  padding: 60px 0;
  background: rgba(17, 17, 17, 0.5); /* Slightly lighter background */
  border-top: 1px solid #3A2A12;
  border-bottom: 1px solid #3A2A12;
}

.page-promotions__terms-list {
  list-style: disc;
  padding-left: 25px;
  max-width: 800px;
  margin: 0 auto 30px;
  color: #FFF6D6;
  font-size: 16px;
}

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

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

.page-promotions__faq-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 0 auto 40px;
  border-radius: 10px;
  border: 1px solid #3A2A12;
}

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

details.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #3A2A12; /* Border */
  overflow: hidden;
  background: #111111; /* Card BG */
}
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: #F2C14E; /* Main color */
}
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(242, 193, 78, 0.1); /* Light hover effect */
}
.page-promotions__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F2C14E;
}
.page-promotions__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFD36B; /* Glow */
  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(255, 255, 255, 0.05); /* Very subtle light background for answer */
  border-radius: 0 0 5px 5px;
  color: #FFF6D6;
}
.page-promotions__faq-answer p {
  margin-bottom: 10px;
}
.page-promotions__faq-answer p:last-child {
  margin-bottom: 0;
}


/* CTA Section */
.page-promotions__cta-section {
  padding: 60px 0;
  text-align: center;
  background: linear-gradient(90deg, #0A0A0A 0%, rgba(242, 193, 78, 0.1) 50%, #0A0A0A 100%);
  border-top: 1px solid #3A2A12;
}

/* --- Specific CSS blocks for homepage (as per instructions) --- */
/* A. @media (max-width: 1023px) must be output as is */
@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;
  }
}

/* B. @media (min-width: 1024px) must be output as is */
@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;
  }
}

/* Additional elements mentioned in the prompt, but not directly in the copied blocks */
/* Placeholder for __promo-strip and __hot-games if they were to exist on this page */
.page-promotions__promo-strip {
  margin-top: 16px; /* Example, only if this section were present */
}
.page-promotions__promo-strip-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  overflow-x: hidden; /* Ensure no horizontal scroll */
}
.page-promotions__hot-games-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.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.8);
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-promotions__reward-modal[hidden] {
  display: none;
}
.page-promotions__reward-modal-content {
  background: #111111;
  padding: 30px;
  border-radius: 10px;
  border: 1px solid #3A2A12;
  text-align: center;
  max-width: 500px;
  position: relative;
}
.page-promotions__reward-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: #FFD36B;
  font-size: 24px;
  cursor: pointer;
}
.page-promotions__reward-modal-close:hover {
  opacity: 0.8;
}
.page-promotions__reward-modal h3 {
  color: #F2C14E;
  font-size: 28px;
  margin-bottom: 15px;
}
.page-promotions__reward-modal p {
  color: #FFF6D6;
  margin-bottom: 20px;
}


/* --- Mobile Responsive (max-width: 768px) --- */
@media (max-width: 768px) {
  .page-promotions {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-promotions__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-promotions__hero-section {
    margin-bottom: 20px;
  }
  .page-promotions__hero-image {
    min-height: 200px;
    max-height: 300px;
  }
  .page-promotions__hero-content {
    margin-top: -60px; /* Adjust overlap for mobile */
    padding: 15px;
  }
  .page-promotions__main-title {
    font-size: 24px;
    margin-bottom: 10px;
  }
  .page-promotions__description {
    font-size: 15px;
    margin-bottom: 20px;
  }
  .page-promotions__cta-button {
    padding: 10px 20px;
    font-size: 16px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-promotions__btn-secondary {
    margin-left: 0;
    margin-top: 10px; /* Stack buttons */
  }

  /* Offers Section */
  .page-promotions__offers-section {
    padding: 30px 0;
  }
  .page-promotions__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }
  .page-promotions__section-description {
    font-size: 16px;
    margin-bottom: 25px;
  }
  .page-promotions__offer-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
  }
  .page-promotions__offer-card {
    padding: 20px;
  }
  .page-promotions__offer-image {
    height: 180px;
  }
  .page-promotions__offer-title {
    font-size: 20px;
  }
  .page-promotions__offer-text {
    font-size: 15px;
  }
  .page-promotions__card-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-promotions__button-group {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Terms Section */
  .page-promotions__terms-section {
    padding: 30px 0;
  }
  .page-promotions__terms-list {
    font-size: 15px;
    padding-left: 20px;
  }

  /* FAQ Section */
  .page-promotions__faq-section {
    padding: 30px 0;
  }
  .page-promotions__faq-image {
    margin-bottom: 20px;
  }
  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;
  }

  /* CTA Section */
  .page-promotions__cta-section {
    padding: 30px 0;
  }

  /* General image and container responsive rules */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__offer-card,
  .page-promotions__faq-item,
  .page-promotions__hero-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Specific elements for homepage CSS, if they were present */
  .page-promotions__promo-strip-track {
    grid-template-columns: repeat(2, 1fr) !important; /* Example: 2 columns for promo strip */
    overflow-x: hidden !important;
  }
  .page-promotions__hot-games-grid {
    grid-template-columns: repeat(2, 1fr) !important; /* 2 columns for hot games */
  }
}