/* style/promotions.css */

/* --- Base Styles & Layout --- */
.page-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #F2FFF6); /* Default text color for the page */
  background-color: var(--background, #08160F); /* Page background from custom colors */
}

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

.page-promotions__section-title {
  font-size: 2.5em;
  color: var(--text-main, #F2FFF6);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-promotions__section-description {
  font-size: 1.1em;
  color: var(--text-secondary, #A7D9B8);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* --- Hero Section --- */
.page-promotions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Ensure image is above text */
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--background, #08160F);
  overflow: hidden; /* Prevent image overflow */
  box-sizing: border-box;
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-width: 100%; /* Ensure image wrapper does not overflow */
  margin-bottom: 40px; /* Space between image and content */
  overflow: hidden;
  border-radius: 10px;
}

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

.page-promotions__hero-content {
  text-align: center;
  max-width: 900px;
  z-index: 1; /* Ensure content is above any background effects */
  padding: 0 20px;
}

.page-promotions__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive H1 size */
  color: var(--gold, #F2C14E);
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

.page-promotions__hero-description {
  font-size: 1.2em;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 40px;
}

/* --- Buttons --- */
.page-promotions__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%; /* Ensure button container is full width */
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-promotions__cta-buttons--center {
  margin-top: 40px;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-flex; /* Use inline-flex for better alignment */
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word;
  text-align: center;
}

.page-promotions__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-promotions__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
}

.page-promotions__btn-secondary {
  background-color: transparent;
  color: var(--text-main, #F2FFF6);
  border: 2px solid var(--border, #2E7A4E);
}

.page-promotions__btn-secondary:hover {
  background-color: rgba(46, 122, 78, 0.2);
  color: var(--gold, #F2C14E);
  border-color: var(--gold, #F2C14E);
}

.page-promotions__btn-small {
  padding: 10px 20px;
  font-size: 0.9em;
}

/* --- Promotion Cards Grid --- */
.page-promotions__current-promotions {
  background-color: var(--background, #08160F);
  padding-bottom: 80px;
}

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

.page-promotions__promotion-card,
.page-promotions__step-card,
.page-promotions__vip-benefit-card,
.page-promotions__game-card {
  background-color: var(--card-bg, #11271B); /* Card background from custom colors */
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--divider, #1E3A2A);
  color: var(--text-main, #F2FFF6);
}

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

.page-promotions__card-image {
  width: 100%;
  height: auto;
  min-height: 200px; /* Enforce minimum size */
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block; /* Ensure no extra space below image */
}

.page-promotions__card-icon {
  width: 100px; /* Specific size for icons in VIP section */
  height: 100px;
  object-fit: contain;
  margin: 0 auto 20px auto;
  display: block;
}

.page-promotions__card-title {
  font-size: 1.4em;
  color: var(--gold, #F2C14E);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-promotions__card-text {
  font-size: 1em;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 20px;
  flex-grow: 1; /* Allow text to take available space */
}

/* --- How to Claim Section --- */
.page-promotions__how-to-claim {
  background-color: var(--deep-green, #0A4B2C); /* Darker background for contrast */
  padding: 80px 20px;
}

.page-promotions__how-to-claim .page-promotions__section-title {
  color: var(--text-main, #F2FFF6);
}

.page-promotions__how-to-claim .page-promotions__section-description {
  color: var(--text-secondary, #A7D9B8);
}

.page-promotions__step-card {
  position: relative;
  padding-top: 50px; /* Space for step number */
}

.page-promotions__step-number {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--gold, #F2C14E);
  color: #08160F;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-promotions__step-card .page-promotions__card-title {
  color: var(--text-main, #F2FFF6);
  margin-top: 15px; /* Adjust for step number */
}

.page-promotions__step-card a {
  color: var(--gold, #F2C14E);
  text-decoration: underline;
}

.page-promotions__step-card a:hover {
  color: var(--glow, #57E38D);
}

/* --- VIP Program Section --- */
.page-promotions__vip-program {
  background-color: var(--background, #08160F);
  padding: 80px 20px;
}

.page-promotions__vip-benefit-card .page-promotions__card-title {
  color: var(--gold, #F2C14E);
}

/* --- Featured Games Section --- */
.page-promotions__featured-games {
  background-color: var(--deep-green, #0A4B2C);
  padding: 80px 20px;
}

.page-promotions__featured-games .page-promotions__section-title {
  color: var(--text-main, #F2FFF6);
}

.page-promotions__featured-games .page-promotions__section-description {
  color: var(--text-secondary, #A7D9B8);
}

.page-promotions__game-card .page-promotions__card-title {
  color: var(--text-main, #F2FFF6);
}

/* --- FAQ Section --- */
.page-promotions__faq-section {
  background-color: var(--background, #08160F);
  padding: 80px 20px;
}

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

.page-promotions__faq-item {
  background-color: var(--card-bg, #11271B);
  border: 1px solid var(--divider, #1E3A2A);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  color: var(--text-main, #F2FFF6);
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: bold;
  cursor: pointer;
  color: var(--text-main, #F2FFF6);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-promotions__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Chrome/Safari */
}

.page-promotions__faq-question:hover {
  background-color: rgba(46, 122, 78, 0.1);
}

.page-promotions__faq-qtext {
  flex-grow: 1;
}

.page-promotions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--gold, #F2C14E);
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
  content: "−"; /* Change to minus when open */
}

.page-promotions__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: var(--text-secondary, #A7D9B8);
  line-height: 1.7;
}

/* --- Final CTA Section --- */
.page-promotions__final-cta {
  background-color: var(--deep-green, #0A4B2C);
  padding: 80px 20px;
  text-align: center;
}

.page-promotions__final-cta .page-promotions__section-title {
  color: var(--text-main, #F2FFF6);
}

.page-promotions__final-cta .page-promotions__section-description {
  color: var(--text-secondary, #A7D9B8);
}

/* --- Global Image & Video Responsiveness (Desktop base) --- */
.page-promotions img {
  max-width: 100%;
  height: auto;
  display: block;
  filter: none; /* Ensure no CSS filters are applied */
}

.page-promotions video,
.page-promotions__video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

.page-promotions__video-section,
.page-promotions__video-container,
.page-promotions__video-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* --- Responsive Adjustments (Mobile) --- */
@media (max-width: 768px) {
  .page-promotions {
    font-size: 15px;
    line-height: 1.5;
  }

  .page-promotions__content-area {
    padding: 20px 15px; /* Add padding for mobile content areas */
  }

  .page-promotions__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* Small top padding, body handles header offset */
  }

  .page-promotions__main-title {
    font-size: 2em; /* Smaller H1 on mobile */
  }

  .page-promotions__hero-description {
    font-size: 1em;
  }

  .page-promotions__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
    padding: 0 15px; /* Padding for button container */
  }

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    width: 100% !important; /* Full width buttons on mobile */
    max-width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promotions__section-title {
    font-size: 2em;
  }

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

  .page-promotions__promotions-grid,
  .page-promotions__steps-grid,
  .page-promotions__vip-benefits-grid,
  .page-promotions__games-grid {
    grid-template-columns: 1fr; /* Single column layout for cards */
    gap: 20px;
  }

  .page-promotions__promotion-card,
  .page-promotions__step-card,
  .page-promotions__vip-benefit-card,
  .page-promotions__game-card {
    padding: 20px;
  }

  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__video-section,
  .page-promotions__video-container,
  .page-promotions__video-wrapper,
  .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;
    overflow: hidden !important; /* Ensure no overflow */
  }

  /* Specific padding for video section on mobile */
  .page-promotions__video-section {
    padding-top: 10px !important;
  }

  /* FAQ adjustments */
  .page-promotions__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }

  .page-promotions__faq-answer {
    padding: 0 20px 15px 20px;
  }
}

/* General link styling for text within content */
.page-promotions__card-text a,
.page-promotions__faq-answer a {
  color: var(--gold, #F2C14E);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-promotions__card-text a:hover,
.page-promotions__faq-answer a:hover {
  color: var(--glow, #57E38D);
}