/* Base Styles */
.page-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #FFFFFF; /* Default body background */
}

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

.page-promotions__section {
  padding: 40px 0;
}

.page-promotions__dark-section {
  background-color: #017439; /* Brand primary color */
  color: #FFFFFF; /* White text for dark background */
}

.page-promotions__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

.page-promotions__section-title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: inherit; /* Inherit color from section */
}

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

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-link,
.page-promotions__btn-terms {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-promotions__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFFFF; /* White text for contrast */
  border: 2px solid transparent;
}

.page-promotions__btn-primary:hover {
  background-color: #e00;
  transform: translateY(-2px);
}

.page-promotions__btn-secondary {
  background-color: transparent;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
}

.page-promotions__btn-secondary:hover {
  background-color: #FFFFFF;
  color: #017439;
}

.page-promotions__btn-link {
  background-color: #017439;
  color: #FFFFFF;
  border: 2px solid transparent;
  font-size: 14px;
  padding: 10px 20px;
}

.page-promotions__btn-link:hover {
  background-color: #005a2e;
}

.page-promotions__btn-terms {
  background-color: #017439;
  color: #FFFFFF;
  border: 2px solid transparent;
  margin-top: 30px;
}

.page-promotions__btn-terms:hover {
  background-color: #005a2e;
}

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

.page-promotions__hero-image-container {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  margin-bottom: 20px;
}

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

.page-promotions__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 16px;
}

.page-promotions__main-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #FFFFFF;
}

.page-promotions__hero-description {
  font-size: 18px;
  margin-bottom: 30px;
  color: #FFFFFF;
}

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

/* Game Trial Section */
.page-promotions__game-trial-section {
  padding: 40px 0;
  background-color: #f5f5f5;
}

.page-promotions__game-trial-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 16px;
}

.page-promotions__game-trial-shell {
  border: 1px solid rgba(212,175,55,.45);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background-color: #FFFFFF;
}

.page-promotions__game-trial-topbar,
.page-promotions__game-trial-bottombar {
  padding: 15px 20px;
  background-color: #017439;
  color: #FFFFFF;
  text-align: center;
}

.page-promotions__game-trial-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.page-promotions__game-trial-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 1024 / 768; /* Fixed aspect ratio */
  overflow: hidden;
  background-color: #000;
}

.page-promotions__game-trial-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 1;
}

.page-promotions__game-trial-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  pointer-events: auto;
}

.page-promotions__game-trial-start {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 15px 30px;
  background-color: #C30808;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  z-index: 6;
  pointer-events: auto;
  touch-action: manipulation;
  transition: background-color 0.3s ease;
}

.page-promotions__game-trial-start:hover {
  background-color: #e00;
}

.page-promotions__game-trial-overlay.is-hidden {
  display: none !important;
  pointer-events: none !important;
}

/* Promotion Strip Section */
.page-promotions__promo-strip-section {
  padding: 60px 0;
}

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

.page-promotions__promo-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.page-promotions__promo-card:hover {
  transform: translateY(-5px);
}

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

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

.page-promotions__promo-card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #017439;
}

.page-promotions__promo-card-text {
  font-size: 15px;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Why Choose Section */
.page-promotions__why-choose-section {
  padding: 60px 0;
}

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

.page-promotions__advantage-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #FFFFFF;
}

.page-promotions__advantage-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-promotions__advantage-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #FFFFFF;
}

.page-promotions__advantage-text {
  font-size: 15px;
  color: #f0f0f0;
}

/* Terms & Conditions Section */
.page-promotions__terms-conditions-section {
  padding: 60px 0;
}

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

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

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

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

details.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}

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: #f5f5f5;
}

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

.page-promotions__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  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: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}

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

/* Reward Modal */
.page-promotions__reward-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.page-promotions__reward-modal[hidden] {
  opacity: 0;
  pointer-events: none;
}

.page-promotions__reward-modal-content {
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 450px;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-promotions__reward-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #888;
}

.page-promotions__reward-modal-title {
  font-size: 24px;
  color: #017439;
  margin-bottom: 15px;
}

.page-promotions__reward-modal-text {
  font-size: 16px;
  color: #555;
  margin-bottom: 25px;
}

/* 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;
  }
  .page-promotions__promo-strip {
    margin-top: 16px;
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-image-container {
    max-height: 300px;
  }
  .page-promotions__main-title {
    font-size: 28px;
  }
  .page-promotions__hero-description {
    font-size: 16px;
  }
  .page-promotions__cta-group {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .page-promotions__btn-link,
  .page-promotions__btn-terms {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-promotions__promo-strip-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-promotions__promo-card-image {
    height: 180px;
  }
  .page-promotions__promo-card-title {
    font-size: 18px;
  }
  .page-promotions__promo-card-text {
    font-size: 14px;
  }
  .page-promotions__advantages-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-promotions__advantage-title {
    font-size: 20px;
  }
  .page-promotions__terms-list {
    font-size: 14px;
  }
  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; text-align: center; }
  details.page-promotions__faq-item .page-promotions__faq-answer { padding: 0 15px 15px; }
  .page-promotions__section-title {
    font-size: 26px;
  }
  .page-promotions__section-description {
    font-size: 16px;
    margin-bottom: 25px;
  }
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-promotions__container,
  .page-promotions__promo-card,
  .page-promotions__advantage-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-promotions__reward-modal-content {
    margin: 0 15px;
    padding: 20px;
  }
  .page-promotions__reward-modal-title {
    font-size: 20px;
  }
  .page-promotions__reward-modal-text {
    font-size: 15px;
  }
}