/* style/promotions.css */

/* Base styles for the promotions page */
.page-promotions {
  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 */
}

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

.page-promotions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
  background-color: #0a0a0a; /* Ensure hero section has a background */
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px; /* Limit height for hero image */
}

.page-promotions__hero-content {
  text-align: center;
  padding: 40px 20px;
  max-width: 800px;
  margin-top: -100px; /* Pull content up slightly over the image for visual flow */
  position: relative; /* Ensure content is above other elements */
  z-index: 10;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent background for text readability */
  border-radius: 10px;
}

.page-promotions__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-promotions__hero-description {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-promotions__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  color: #26A9E0;
  padding-top: 40px;
}

.page-promotions__section-description {
  font-size: 1.05em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

.page-promotions__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Dark background sections */
.page-promotions__dark-bg {
  background-color: #1a1a1a; /* Slightly lighter dark background for sections */
  padding: 60px 0;
  color: #ffffff;
}

.page-promotions__light-bg {
  background-color: #ffffff;
  color: #333333;
  padding: 40px 0;
}

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__btn-primary {
  background: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
  margin: 10px;
}

.page-promotions__btn-primary:hover {
  background: #1e87b7;
  border-color: #1e87b7;
}

.page-promotions__btn-secondary {
  background: #EA7C07; /* Using login color for secondary button for contrast */
  color: #ffffff;
  border: 2px solid #EA7C07;
  margin: 10px;
}

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

.page-promotions__cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* Why Choose Section */
.page-promotions__why-choose-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.page-promotions__feature-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-promotions__feature-text {
  font-size: 0.95em;
  color: #f0f0f0;
}

/* Promotion Types Section */
.page-promotions__types-section {
  padding-top: 60px;
  padding-bottom: 60px;
  background-color: #0a0a0a;
}

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

.page-promotions__card {
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  height: 100%;
}

.page-promotions__card-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-promotions__card-text {
  font-size: 0.95em;
  color: #333333; /* For light-bg cards */
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-promotions__card .page-promotions__btn-secondary {
  align-self: flex-start;
  margin: 0;
  padding: 10px 20px;
  font-size: 0.9em;
}

/* How to Claim Section */
.page-promotions__how-to-claim-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.page-promotions__step-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-promotions__step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #26A9E0;
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8em;
  font-weight: 700;
  margin-bottom: 20px;
}

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

.page-promotions__step-text {
  font-size: 0.95em;
  color: #f0f0f0;
  flex-grow: 1;
}

.page-promotions__step-item .page-promotions__btn-secondary {
  margin-top: 20px;
  align-self: center;
}

/* Terms and Conditions Section */
.page-promotions__terms-section {
  padding-top: 60px;
  padding-bottom: 60px;
  background-color: #0a0a0a;
}

.page-promotions__terms-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__terms-item {
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  font-size: 1em;
  color: #f0f0f0;
}

.page-promotions__terms-item strong {
  color: #26A9E0;
}

.page-promotions__terms-disclaimer {
  text-align: center;
  margin-top: 30px;
  font-size: 0.95em;
  color: #f0f0f0;
}

.page-promotions__terms-section .page-promotions__btn-primary {
  display: block;
  margin: 40px auto 0 auto;
  max-width: 300px;
}

/* Responsible Gaming Section */
.page-promotions__responsible-gaming-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-promotions__responsible-gaming-section .page-promotions__btn-secondary {
  display: block;
  margin: 40px auto 0 auto;
  max-width: 400px;
}

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

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

.page-promotions__faq-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: 600;
  color: #26A9E0;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  list-style: none; /* For <details> summary */
}

.page-promotions__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for <details> summary */
}

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

.page-promotions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #ffffff;
}

.page-promotions__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 0.95em;
  color: #f0f0f0;
}

.page-promotions__faq-cta {
  display: block;
  margin: 40px auto 0 auto;
  max-width: 250px;
}

/* Final CTA Section */
.page-promotions__final-cta-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-promotions__hero-content {
    margin-top: -80px;
    padding: 30px 15px;
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-section {
    padding-bottom: 40px;
  }
  
  .page-promotions__hero-image {
    max-height: 400px;
  }

  .page-promotions__hero-content {
    margin-top: -60px;
    padding: 25px 15px;
  }

  .page-promotions__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }

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

  .page-promotions__section-title {
    font-size: clamp(1.6em, 5vw, 2.2em);
    padding-top: 30px;
  }

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

  .page-promotions__dark-bg,
  .page-promotions__light-bg {
    padding: 40px 0;
  }

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

  /* Images responsive */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Buttons responsive */
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .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;
    margin: 10px 0 !important; /* Stack buttons vertically */
  }

  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-promotions__promotion-cards-grid,
  .page-promotions__features-grid,
  .page-promotions__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

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

@media (max-width: 480px) {
  .page-promotions__hero-content {
    margin-top: -40px;
    padding: 20px 10px;
  }

  .page-promotions__main-title {
    font-size: clamp(1.5em, 8vw, 2em);
  }

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

  .page-promotions__section-title {
    font-size: clamp(1.4em, 7vw, 1.8em);
  }

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    padding: 12px 20px;
    font-size: 1em;
  }
}