/* style/promotions-welcome-bonus.css */

/* Base styles for the page content, ensuring light text on dark body background */
.page-promotions-welcome-bonus {
  color: #ffffff; /* Light text for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Rely on shared.css for body background #121212 */
}

/* Section padding and max-width for content */
.page-promotions-welcome-bonus__section {
  padding: 60px 20px;
  text-align: center;
}

.page-promotions-welcome-bonus__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
  text-align: left; /* Align text left within content area */
}

/* Background colors for sections based on contrast rules */
.page-promotions-welcome-bonus__light-bg {
  background-color: #ffffff;
  color: #333333; /* Dark text for light background */
}

.page-promotions-welcome-bonus__dark-bg {
  background-color: #1a1a1a; /* Slightly lighter than body background for distinction, but still dark */
  color: #ffffff; /* Light text for dark background */
}

/* Hero Section */
.page-promotions-welcome-bonus__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px; /* More padding at bottom to separate from next section */
  box-sizing: border-box;
}

.page-promotions-welcome-bonus__hero-image-wrapper {
  width: 100%;
  max-width: 1920px; /* Max width for the image wrapper */
  margin-bottom: 30px; /* Space between image and content */
}

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

.page-promotions-welcome-bonus__hero-content {
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
  text-align: center;
}

.page-promotions-welcome-bonus__main-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem); /* H1 font size constraint */
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for main title */
}

.page-promotions-welcome-bonus__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #f0f0f0; /* Light color for description on dark background */
}

/* Headings */
.page-promotions-welcome-bonus__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: bold;
  margin-bottom: 40px;
  color: #26A9E0; /* Brand color for section titles */
}

.page-promotions-welcome-bonus__sub-title {
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 15px;
  color: inherit; /* Inherit color from parent section */
}

/* Paragraphs */
.page-promotions-welcome-bonus p {
  margin-bottom: 15px;
  font-size: 1rem;
  color: inherit; /* Inherit color from parent section */
}

/* Lists */
.page-promotions-welcome-bonus__list {
  list-style-type: disc;
  padding-left: 20px;
  margin-bottom: 20px;
}

.page-promotions-welcome-bonus__list-item {
  margin-bottom: 10px;
  color: inherit; /* Inherit color from parent section */
}

/* Images within content */
.page-promotions-welcome-bonus__image-content {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

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

.page-promotions-welcome-bonus__btn-primary,
.page-promotions-welcome-bonus__btn-secondary,
.page-promotions-welcome-bonus__btn-small {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow long words to break */
}

.page-promotions-welcome-bonus__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

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

.page-promotions-welcome-bonus__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-promotions-welcome-bonus__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-promotions-welcome-bonus__btn-small {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* FAQ Section */
.page-promotions-welcome-bonus__faq-list {
  max-width: 900px;
  margin: 0 auto 40px auto;
  text-align: left;
}

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

.page-promotions-welcome-bonus__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

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

.page-promotions-welcome-bonus__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-promotions-welcome-bonus__faq-item[open] .page-promotions-welcome-bonus__faq-toggle {
  transform: rotate(45deg); /* Change + to X or similar */
}

/* For details tag, hide default marker */
.page-promotions-welcome-bonus__faq-item summary {
  list-style: none;
}
.page-promotions-welcome-bonus__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-promotions-welcome-bonus__faq-answer {
  padding: 15px 25px 20px 25px;
  background-color: rgba(255, 255, 255, 0.03);
  color: #f0f0f0;
  font-size: 0.95rem;
}

/* CTA Section */
.page-promotions-welcome-bonus__cta-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-promotions-welcome-bonus__cta-section .page-promotions-welcome-bonus__description {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
  color: #333333; /* Dark text on light background */
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-promotions-welcome-bonus__hero-section {
    padding-bottom: 40px;
  }

  .page-promotions-welcome-bonus__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem); /* Adjust H1 for mobile */
  }

  .page-promotions-welcome-bonus__description {
    font-size: 1rem;
  }

  .page-promotions-welcome-bonus__section {
    padding: 40px 15px;
  }

  .page-promotions-welcome-bonus__content-area {
    padding: 20px 15px;
  }

  .page-promotions-welcome-bonus__section-title {
    font-size: clamp(1.5rem, 7vw, 2rem);
    margin-bottom: 30px;
  }

  .page-promotions-welcome-bonus__sub-title {
    font-size: clamp(1.2rem, 5vw, 1.5rem);
    margin-top: 25px;
    margin-bottom: 10px;
  }

  /* Images */
  .page-promotions-welcome-bonus img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 20px auto !important;
  }
  
  /* All containers with images */
  .page-promotions-welcome-bonus__hero-image-wrapper,
  .page-promotions-welcome-bonus__text-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Buttons */
  .page-promotions-welcome-bonus__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
    padding: 0 15px;
  }

  .page-promotions-welcome-bonus__btn-primary,
  .page-promotions-welcome-bonus__btn-secondary,
  .page-promotions-welcome-bonus__btn-small {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1rem !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* FAQ */
  .page-promotions-welcome-bonus__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }

  .page-promotions-welcome-bonus__faq-answer {
    padding: 10px 20px 15px 20px;
  }

  .page-promotions-welcome-bonus__cta-section {
    padding: 60px 15px;
  }
}