/* style/promotions-welcome-bonus.css */
.page-promotions-welcome-bonus {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background handled by shared.css */
}

/* Header offset for main content */
.page-promotions-welcome-bonus__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

/* Sections */
.page-promotions-welcome-bonus__hero-section {
  position: relative;
  background-size: cover;
  background-position: center;
  color: #ffffff;
  text-align: center;
  padding: 80px 20px;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-promotions-welcome-bonus__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
  z-index: 1;
}

.page-promotions-welcome-bonus__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.page-promotions-welcome-bonus__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFFF00; /* Use custom font color for title for impact */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-promotions-welcome-bonus__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-promotions-welcome-bonus__content-section,
.page-promotions-welcome-bonus__how-to-claim-section,
.page-promotions-welcome-bonus__cta-final-section {
  background-color: #ffffff; /* Light background for contrast */
  color: #333333; /* Dark text for light background */
  padding: 60px 20px;
}

.page-promotions-welcome-bonus__terms-section,
.page-promotions-welcome-bonus__benefits-section,
.page-promotions-welcome-bonus__faq-section,
.page-promotions-welcome-bonus__video-section {
  background-color: #017439; /* Brand color background */
  color: #ffffff; /* White text for brand color background */
  padding: 60px 20px;
}

.page-promotions-welcome-bonus__container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-promotions-welcome-bonus__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: inherit; /* Inherit color from parent section */
}

.page-promotions-welcome-bonus__text-block {
  font-size: 1.1em;
  margin-bottom: 30px;
  text-align: justify;
}

.page-promotions-welcome-bonus__text-block p {
  margin-bottom: 15px;
}

.page-promotions-welcome-bonus__list,
.page-promotions-welcome-bonus__numbered-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 30px;
}

.page-promotions-welcome-bonus__list li,
.page-promotions-welcome-bonus__numbered-list li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
}

.page-promotions-welcome-bonus__list li::before {
  content: '✓';
  color: #FFFF00; /* Highlight checkmark */
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-promotions-welcome-bonus__numbered-list li::before {
  content: counter(list-item) ".";
  counter-increment: list-item;
  color: #FFFF00;
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Buttons */
.page-promotions-welcome-bonus__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  margin-top: 30px;
}

.page-promotions-welcome-bonus__btn-primary,
.page-promotions-welcome-bonus__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box; /* Crucial for responsive buttons */
  max-width: 100%; /* Ensure buttons don't exceed container */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
}

.page-promotions-welcome-bonus__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-promotions-welcome-bonus__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-promotions-welcome-bonus__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  border: 2px solid #017439;
}

.page-promotions-welcome-bonus__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005a2e;
  border-color: #005a2e;
}

.page-promotions-welcome-bonus__btn-center {
  margin-top: 20px;
  margin-left: auto;
  margin-right: auto;
}

/* Image styling */
.page-promotions-welcome-bonus__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Card Grid */
.page-promotions-welcome-bonus__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
  margin-bottom: 30px;
}

.page-promotions-welcome-bonus__card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for dark background */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  height: 100%; /* Ensure cards have consistent height in grid */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
}

.page-promotions-welcome-bonus__card:hover {
  transform: translateY(-5px);
}

.page-promotions-welcome-bonus__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions-welcome-bonus__card-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #FFFF00; /* Highlight card titles */
}

.page-promotions-welcome-bonus__card-description {
  font-size: 1em;
  color: #f0f0f0;
}

/* Video Section */
.page-promotions-welcome-bonus__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
}

.page-promotions-welcome-bonus__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block; /* Important for responsive images/videos */
  cursor: pointer;
}

.page-promotions-welcome-bonus__video-caption {
  text-align: center;
  font-style: italic;
  margin-top: 10px;
  color: #f0f0f0;
}

/* FAQ Section */
.page-promotions-welcome-bonus__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.page-promotions-welcome-bonus__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for dark background */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-promotions-welcome-bonus__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: #ffffff;
  transition: background-color 0.3s ease;
}

.page-promotions-welcome-bonus__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-promotions-welcome-bonus__faq-title {
  margin: 0;
  color: inherit;
}

.page-promotions-welcome-bonus__faq-toggle {
  font-size: 1.5em;
  font-weight: normal;
  transition: transform 0.3s ease;
  color: #FFFF00; /* Highlight toggle icon */
}

.page-promotions-welcome-bonus__faq-item.active .page-promotions-welcome-bonus__faq-toggle {
  transform: rotate(45deg);
}

.page-promotions-welcome-bonus__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions-welcome-bonus__hero-title {
    font-size: 2.8em;
  }
  .page-promotions-welcome-bonus__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-promotions-welcome-bonus__hero-section {
    padding: 60px 15px;
    min-height: 400px;
  }
  .page-promotions-welcome-bonus__hero-title {
    font-size: 2.2em;
  }
  .page-promotions-welcome-bonus__hero-description {
    font-size: 1em;
  }
  .page-promotions-welcome-bonus__section-title {
    font-size: 1.8em;
  }
  .page-promotions-welcome-bonus__content-section,
  .page-promotions-welcome-bonus__terms-section,
  .page-promotions-welcome-bonus__how-to-claim-section,
  .page-promotions-welcome-bonus__benefits-section,
  .page-promotions-welcome-bonus__video-section,
  .page-promotions-welcome-bonus__faq-section,
  .page-promotions-welcome-bonus__cta-final-section {
    padding: 40px 15px;
  }
  .page-promotions-welcome-bonus__container {
    padding: 0 10px;
  }

  /* Images responsive */
  .page-promotions-welcome-bonus img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Videos responsive */
  .page-promotions-welcome-bonus video,
  .page-promotions-welcome-bonus__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Video container responsive */
  .page-promotions-welcome-bonus__video-section,
  .page-promotions-welcome-bonus__video-container,
  .page-promotions-welcome-bonus__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-welcome-bonus__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure video section respects header offset on mobile */
  }

  /* Buttons responsive */
  .page-promotions-welcome-bonus__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
  }
  .page-promotions-welcome-bonus__btn-primary,
  .page-promotions-welcome-bonus__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: auto;
    margin-right: auto;
  }

  /* Ensure content containers also handle overflow */
  .page-promotions-welcome-bonus__section,
  .page-promotions-welcome-bonus__card,
  .page-promotions-welcome-bonus__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 480px) {
  .page-promotions-welcome-bonus__hero-title {
    font-size: 1.8em;
  }
  .page-promotions-welcome-bonus__section-title {
    font-size: 1.5em;
  }
  .page-promotions-welcome-bonus__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-promotions-welcome-bonus__faq-answer {
    padding: 10px 20px;
  }
  .page-promotions-welcome-bonus__card-grid {
    grid-template-columns: 1fr;
  }
}

/* Color contrast fixes as per instructions */
/* Default text color for the main content area with light background */
.page-promotions-welcome-bonus__content-section,
.page-promotions-welcome-bonus__how-to-claim-section,
.page-promotions-welcome-bonus__cta-final-section {
  color: #333333; /* Dark text on light background */
  background-color: #ffffff;
}

/* Text elements within light sections */
.page-promotions-welcome-bonus__content-section p,
.page-promotions-welcome-bonus__content-section li,
.page-promotions-welcome-bonus__how-to-claim-section p,
.page-promotions-welcome-bonus__how-to-claim-section li,
.page-promotions-welcome-bonus__cta-final-section p,
.page-promotions-welcome-bonus__cta-final-section li {
  color: #333333;
}

/* Text elements within dark sections */
.page-promotions-welcome-bonus__hero-section,
.page-promotions-welcome-bonus__terms-section,
.page-promotions-welcome-bonus__benefits-section,
.page-promotions-welcome-bonus__video-section,
.page-promotions-welcome-bonus__faq-section {
  color: #ffffff; /* Light text on dark background */
}

/* Card titles and descriptions in dark sections */
.page-promotions-welcome-bonus__card-title {
  color: #FFFF00; /* Specific color for card titles */
}
.page-promotions-welcome-bonus__card-description {
  color: #f0f0f0; /* Slightly off-white for body text */
}

/* FAQ question titles in dark sections */
.page-promotions-welcome-bonus__faq-title {
  color: #ffffff;
}
.page-promotions-welcome-bonus__faq-toggle {
  color: #FFFF00;
}
.page-promotions-welcome-bonus__faq-answer {
  color: #f0f0f0;
}