/* Base styles for the promotions page */
.page-promotions {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for default light body background */
  background-color: #f9f9f9; /* Light background for the main content area */
}

.page-promotions__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Hero Section */
.page-promotions__hero-section {
  display: flex;
  flex-direction: column; /* Ensure image is above content */
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, #26A9E0, #36C0F0); /* Brand colors */
  padding-bottom: 50px;
  padding-top: 10px; /* Small top padding as body handles header offset */
  position: relative;
  overflow: hidden;
  border-radius: 0 0 15px 15px;
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px;
}

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

.page-promotions__hero-content {
  max-width: 900px;
  padding: 0 20px;
  color: #FFFFFF;
  z-index: 1;
}

.page-promotions__main-title {
  font-size: clamp(2.2em, 5vw, 3.2em);
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #FFFFFF;
}

.page-promotions__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  opacity: 0.9;
}

.page-promotions__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-tertiary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box; /* Ensure padding is included in width */
  max-width: 100%;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-promotions__btn-primary {
  background-color: #EA7C07; /* Login color */
  color: #FFFFFF;
  border: 2px solid transparent;
}

.page-promotions__btn-primary:hover {
  background-color: #d16e00;
}

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

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

.page-promotions__btn-tertiary {
  background-color: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-promotions__btn-tertiary:hover {
  background-color: #1e87bb;
  border-color: #1e87bb;
}

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

.page-promotions__btn-secondary--white:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* General Section Styles */
.page-promotions__overview-section,
.page-promotions__why-choose-section,
.page-promotions__terms-section,
.page-promotions__faq-section {
  padding: 60px 0;
}

.page-promotions__featured-promotions,
.page-promotions__how-to-claim-section,
.page-promotions__responsible-gaming-section,
.page-promotions__cta-final-section {
  padding: 60px 0;
  background-color: #26A9E0; /* Brand color as background */
  color: #FFFFFF;
}

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

.page-promotions__dark-section {
  background-color: #26A9E0;
  color: #FFFFFF;
}

.page-promotions__section-title {
  font-size: 2.2em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #333333;
}

.page-promotions__section-title--white {
  color: #FFFFFF;
}

.page-promotions__text-block {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px auto;
  line-height: 1.7;
}

.page-promotions__text-block--white {
  color: #FFFFFF;
  opacity: 0.9;
}

/* Promotions Grid */
.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: #FFFFFF;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  color: #333333;
}

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

.page-promotions__promotion-card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

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

.page-promotions__promotion-card-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-promotions__promotion-card-description {
  font-size: 1em;
  margin-bottom: 20px;
  line-height: 1.6;
  flex-grow: 1;
}

/* Feature List */
.page-promotions__feature-list,
.page-promotions__step-list,
.page-promotions__terms-list,
.page-promotions__responsible-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 900px;
}

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

.page-promotions__feature-item {
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  text-align: left;
}

.page-promotions__feature-title {
  font-size: 1.3em;
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-promotions__feature-description {
  font-size: 1em;
  line-height: 1.6;
}

/* Step List */
.page-promotions__step-list {
  counter-reset: step-counter;
  margin-top: 40px;
}

.page-promotions__step-item {
  position: relative;
  padding-left: 70px;
  margin-bottom: 30px;
  text-align: left;
  color: #FFFFFF;
}

.page-promotions__step-item::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  top: 0;
  width: 50px;
  height: 50px;
  background-color: #EA7C07; /* Login color */
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8em;
  font-weight: 700;
  color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__step-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 5px;
  color: #FFFFFF;
}

.page-promotions__step-description {
  font-size: 1em;
  opacity: 0.9;
}

/* Terms List */
.page-promotions__terms-list,
.page-promotions__responsible-list {
  text-align: left;
  margin-top: 40px;
  padding-left: 20px; /* For bullet points */
}

.page-promotions__terms-item,
.page-promotions__responsible-item {
  margin-bottom: 10px;
  font-size: 1em;
  line-height: 1.6;
}

/* CTA Final Section */
.page-promotions__cta-final-section {
  text-align: center;
  padding-top: 60px;
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
  background-color: #26A9E0;
  border-radius: 15px 15px 0 0;
}

.page-promotions__cta-final-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.page-promotions__cta-final-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2; /* Subtle background image */
  z-index: 0;
}

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

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

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;
}
.page-promotions__faq-answer p {
  margin: 0;
}


/* General image and container rules for mobile responsiveness */
.page-promotions img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-promotions__section,
.page-promotions__card,
.page-promotions__container {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* --- Mobile Responsive Styles --- */
@media (max-width: 849px) { /* Tablet size for hero image object-fit */
  .page-promotions__hero-image {
    object-fit: contain !important; /* Prevent cropping on smaller screens */
    aspect-ratio: unset !important;
  }
}

@media (max-width: 768px) {
  .page-promotions {
    font-size: 15px;
  }

  .page-promotions__container {
    padding: 15px;
  }

  /* Hero Section Mobile */
  .page-promotions__hero-section {
    padding-top: 10px;
    padding-bottom: 30px;
    border-radius: 0 0 10px 10px;
  }

  .page-promotions__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin-bottom: 10px;
  }

  .page-promotions__description {
    font-size: 0.95em;
    margin-bottom: 20px;
  }

  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .page-promotions__btn-tertiary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  /* General Section Titles Mobile */
  .page-promotions__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-promotions__text-block {
    font-size: 1em;
    margin-bottom: 20px;
    text-align: left; /* Align text left for better readability on mobile */
  }

  /* Promotions Grid Mobile */
  .page-promotions__promotions-grid {
    grid-template-columns: 1fr; /* Stack cards vertically */
    gap: 20px;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }

  .page-promotions__promotion-card-image {
    height: 200px; /* Adjust card image height */
  }

  .page-promotions__promotion-card-content {
    padding: 20px;
  }

  .page-promotions__promotion-card-title {
    font-size: 1.2em;
  }

  /* Feature List Mobile */
  .page-promotions__feature-list {
    grid-template-columns: 1fr; /* Stack features vertically */
    gap: 20px;
  }

  .page-promotions__feature-item {
    padding: 20px;
  }

  /* Step List Mobile */
  .page-promotions__step-item {
    padding-left: 60px;
  }

  .page-promotions__step-item::before {
    width: 40px;
    height: 40px;
    font-size: 1.5em;
  }

  .page-promotions__step-title {
    font-size: 1.2em;
  }

  /* Terms and Responsible Gaming Lists Mobile */
  .page-promotions__terms-list,
  .page-promotions__responsible-list {
    padding-left: 15px;
  }

  /* CTA Final Section Mobile */
  .page-promotions__cta-final-section {
    padding-top: 40px;
    padding-bottom: 40px;
    border-radius: 10px 10px 0 0;
  }

  .page-promotions__cta-final-image {
    opacity: 0.1; /* More subtle on mobile */
  }

  /* FAQ Section Mobile */
  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;
    margin-left: 10px;
  }
  details.page-promotions__faq-item .page-promotions__faq-answer {
    padding: 0 15px 15px;
  }

  /* General image and container rules for mobile responsiveness */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}