/* style/promotions.css */
/* Base styles for the promotions page */
.page-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Default text color for dark body background */
  background-color: var(--secondary-color); /* Ensure consistency with shared body background */
  padding-top: var(--header-offset, 120px); /* Apply header offset to main content */
}

/* Container for consistent content width */
.page-promotions__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Section Titles */
.page-promotions__section-title {
  font-size: 2.5em;
  color: #FFD700; /* Gold color for titles */
  text-align: center;
  margin-bottom: 30px;
  margin-top: 60px;
  font-weight: bold;
}

.page-promotions__section-title--light {
  color: #ffffff; /* White color for titles on dark sections */
}

/* Section Descriptions */
.page-promotions__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 20px auto;
  color: #f0f0f0;
}

.page-promotions__section-description--light {
  color: #ffffff;
}

/* CTA Buttons */
.page-promotions__cta-button {
  display: inline-block;
  background-color: #FFD700;
  color: #1A1A1A;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure responsiveness */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-promotions__cta-button:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-promotions__cta-button--small {
  padding: 10px 20px;
  font-size: 1em;
}

.page-promotions__cta-button--large {
  padding: 18px 35px;
  font-size: 1.2em;
}

.page-promotions__cta-button--secondary {
  background-color: #1A1A1A;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-promotions__cta-button--secondary:hover {
  background-color: #FFD700;
  color: #1A1A1A;
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  margin-bottom: 40px;
}

.page-promotions__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-promotions__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
  z-index: 2;
}

.page-promotions__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
}

.page-promotions__hero-title {
  font-size: 3.5em;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
}

.page-promotions__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Overview Section */
.page-promotions__overview-section {
  padding: 60px 0;
  background-color: #1A1A1A; /* Dark background for this section */
  color: #f0f0f0;
}

.page-promotions__overview-section .page-promotions__section-title {
  color: #FFD700;
}

.page-promotions__overview-section .page-promotions__section-description {
  color: #f0f0f0;
}

/* Types of Promotions Section */
.page-promotions__types-section {
  padding: 60px 0;
  background-color: var(--secondary-color); /* Inherit body background */
}

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

.page-promotions__promotion-card {
  background-color: #2a2a2a; /* Slightly lighter dark background for cards */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
  transition: transform 0.3s ease;
  color: #f0f0f0;
}

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

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

.page-promotions__card-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-promotions__card-text {
  font-size: 1em;
  color: #ccc;
  margin-bottom: 20px;
  flex-grow: 1; /* Allow text to take up available space */
}

/* How to Claim Section */
.page-promotions__how-to-claim-section {
  padding: 60px 0;
  background-color: #1A1A1A;
}

.page-promotions__claim-steps {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-promotions__step-item {
  background-color: #2a2a2a;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  color: #f0f0f0;
}

.page-promotions__step-title {
  font-size: 1.6em;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-promotions__step-description {
  font-size: 1em;
  color: #ccc;
}

.page-promotions__step-description a {
  color: #FFD700;
  text-decoration: none;
}

.page-promotions__step-description a:hover {
  text-decoration: underline;
}

/* Terms Section */
.page-promotions__terms-section {
  padding: 60px 0;
  background-color: #FFD700; /* Gold background for high contrast */
  color: #1A1A1A; /* Dark text on gold */
  text-align: center;
}

.page-promotions__terms-section .page-promotions__section-title {
  color: #1A1A1A;
}

.page-promotions__terms-section .page-promotions__section-description {
  color: #1A1A1A;
}

/* Responsible Gaming Section */
.page-promotions__responsible-gaming-section {
  padding: 60px 0;
  background-color: var(--secondary-color);
}

.page-promotions__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-promotions__text-content {
  flex: 1;
  min-width: 300px;
  color: #f0f0f0;
}

.page-promotions__text-content .page-promotions__section-description {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.page-promotions__image {
  flex: 1;
  min-width: 300px;
  max-width: 600px; /* Limit image size */
  height: auto;
  border-radius: 10px;
  display: block;
  object-fit: cover;
}

/* FAQ Section */
.page-promotions__faq-section {
  padding: 60px 0;
  background-color: #1A1A1A;
}

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

.page-promotions__faq-item {
  background-color: #2a2a2a;
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFD700;
  background-color: #333; /* Slightly darker for question background */
  transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
  background-color: #444;
}

.page-promotions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #FFD700;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
  transform: rotate(45deg); /* Plus to X/Minus */
}

.page-promotions__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #ccc;
  background-color: #2a2a2a;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px;
}

.page-promotions__faq-answer p {
  margin: 0;
  padding: 0;
}

/* Final CTA Section */
.page-promotions__final-cta-section {
  padding: 60px 0;
  background-color: #FFD700; /* Gold background */
  color: #1A1A1A; /* Dark text on gold */
  text-align: center;
}

.page-promotions__final-cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.page-promotions__final-cta-section .page-promotions__section-title {
  color: #1A1A1A;
}

.page-promotions__final-cta-section .page-promotions__section-description {
  color: #1A1A1A;
  max-width: 800px;
  margin-bottom: 0;
}

.page-promotions__final-cta-section .page-promotions__section-description a {
  color: #1A1A1A;
  font-weight: bold;
  text-decoration: underline;
}

.page-promotions__final-cta-section .page-promotions__section-description a:hover {
  color: #333;
}

/* --- Responsive Design --- */
/* Mobile-specific styles */
@media (max-width: 768px) {
  .page-promotions {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-promotions__container {
    padding: 0 15px !important; /* Ensure padding on mobile */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-promotions__hero-section {
    height: 400px;
  }

  .page-promotions__hero-title {
    font-size: 2.2em;
  }

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

  .page-promotions__section-title {
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 20px;
  }

  .page-promotions__section-description {
    font-size: 0.95em;
  }

  .page-promotions__promotions-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
  }

  .page-promotions__promotion-card,
  .page-promotions__step-item {
    padding: 20px;
  }

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

  .page-promotions__card-title {
    font-size: 1.3em;
  }

  .page-promotions__cta-button,
  .page-promotions__cta-button--small,
  .page-promotions__cta-button--large,
  .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-left: 15px;
    padding-right: 15px;
    font-size: 1em !important; /* Adjust font size for mobile */
  }

  .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;
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
  }

  .page-promotions__content-wrapper {
    flex-direction: column; /* Stack content and image vertically */
    gap: 20px;
  }

  .page-promotions__text-content {
    min-width: unset; /* Remove min-width on mobile */
  }

  .page-promotions__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  /* General image responsiveness for all images within .page-promotions */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .page-promotions__video-section,
  .page-promotions__video-container,
  .page-promotions__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

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

  .page-promotions__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Apply header offset for mobile video section */
  }

  .page-promotions__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

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

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

/* Contrast Fixes (as per prompt) */
.page-promotions__dark-section {
  background: #FFD700; /* Brand gold as background */
  color: #1A1A1A; /* Dark text for contrast */
}

/* Ensure general text contrast on default dark background */
.page-promotions p, .page-promotions li, .page-promotions span {
  color: #f0f0f0;
}

/* Specific overrides for sections with different backgrounds */
.page-promotions__overview-section, .page-promotions__how-to-claim-section, .page-promotions__faq-section, .page-promotions__responsible-gaming-section {
  background-color: #1A1A1A;
  color: #f0f0f0;
}

.page-promotions__overview-section .page-promotions__section-title,
.page-promotions__how-to-claim-section .page-promotions__section-title,
.page-promotions__faq-section .page-promotions__section-title,
.page-promotions__responsible-gaming-section .page-promotions__section-title {
  color: #FFD700;
}

.page-promotions__overview-section .page-promotions__section-description,
.page-promotions__how-to-claim-section .page-promotions__step-description,
.page-promotions__faq-answer p,
.page-promotions__responsible-gaming-section .page-promotions__section-description {
  color: #ccc;
}

.page-promotions__dark-section .page-promotions__section-title,
.page-promotions__final-cta-section .page-promotions__section-title {
  color: #1A1A1A;
}

.page-promotions__dark-section .page-promotions__section-description,
.page-promotions__final-cta-section .page-promotions__section-description {
  color: #1A1A1A;
}

/* Ensure link color contrast */
.page-promotions a {
  color: #FFD700;
}

.page-promotions a:hover {
  color: #e6c200;
}