/* style/promotions.css */

/* Body background from shared.css is #0a0a0a (dark), so use light text */
.page-promotions {
  color: #ffffff; /* Default text color for dark background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Rely on body background from shared.css */
}

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

.page-promotions__section-title {
  font-size: clamp(28px, 3.5vw, 42px);
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.2;
}

.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding, body handles header offset */
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  overflow: hidden;
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-promotions__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
  z-index: 1;
}

.page-promotions__main-title {
  font-size: clamp(36px, 4.5vw, 58px); /* H1 font size clamp */
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.1;
}

.page-promotions__description {
  font-size: clamp(16px, 2vw, 20px);
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

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

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

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

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

.page-promotions__dark-bg {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  color: #ffffff;
  padding: 60px 0;
}

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

.page-promotions__light-bg .page-promotions__section-title {
  color: #000000;
}

.page-promotions__light-bg .page-promotions__text-content p {
  color: #333333;
}

.page-promotions__light-bg .page-promotions__text-content a {
  color: #26A9E0;
  text-decoration: underline;
}

.page-promotions__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}

.page-promotions__content-wrapper--reverse {
  flex-direction: row-reverse;
}

.page-promotions__text-content {
  flex: 1;
}

.page-promotions__text-content p {
  margin-bottom: 15px;
  font-size: 17px;
}

.page-promotions__text-content a {
  font-weight: 600;
}

.page-promotions__image-card {
  flex: 1;
  min-width: 300px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-promotions__image-full {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-promotions__terms-list {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-promotions__terms-list li {
  margin-bottom: 10px;
  font-size: 17px;
}

.page-promotions__text-intro,
.page-promotions__text-outro {
  font-size: 18px;
  text-align: center;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-promotions__faq-item {
  background: rgba(0, 0, 0, 0.05); /* Light background for FAQ items on dark sections */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-promotions__light-bg .page-promotions__faq-item {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
  color: #ffffff;
}

.page-promotions__light-bg .page-promotions__faq-question {
  color: #333333;
}

.page-promotions__faq-item[open] .page-promotions__faq-question {
  background-color: rgba(0, 0, 0, 0.1);
}

.page-promotions__light-bg .page-promotions__faq-item[open] .page-promotions__faq-question {
  background-color: #f0f0f0;
}

.page-promotions__faq-toggle {
  font-size: 24px;
  line-height: 1;
  font-weight: 400;
}

.page-promotions__faq-answer {
  padding: 0 25px 18px 25px;
  font-size: 16px;
  color: #f0f0f0;
}

.page-promotions__light-bg .page-promotions__faq-answer {
  color: #555555;
}

.page-promotions__faq-answer p {
  margin-bottom: 10px;
}

.page-promotions__faq-answer a {
  color: #26A9E0;
  text-decoration: underline;
  font-weight: normal;
}

.page-promotions__cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-promotions__cta-content {
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-promotions__cta-title {
  font-size: clamp(32px, 4vw, 48px);
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-promotions__cta-description {
  font-size: 18px;
  color: #f0f0f0;
  margin-bottom: 40px;
}

.page-promotions__cta-image-wrapper {
  max-width: 800px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}


/* Details element specific styles for summary marker */
.page-promotions__faq-item summary {
  list-style: none;
}

.page-promotions__faq-item summary::-webkit-details-marker {
  display: none;
}


/* Responsive adjustments */
@media (max-width: 992px) {
  .page-promotions__content-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .page-promotions__content-wrapper--reverse {
    flex-direction: column;
  }

  .page-promotions__image-card {
    order: -1; /* Image appears above text on mobile for reversed sections */
  }
}

@media (max-width: 768px) {
  .page-promotions {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-promotions__hero-section {
    padding-top: 10px !important; /* body handles --header-offset, small decorative top padding */
    padding-bottom: 40px;
  }

  .page-promotions__hero-image-wrapper {
    max-height: 300px;
  }

  .page-promotions__main-title {
    font-size: 32px;
  }

  .page-promotions__description {
    font-size: 17px;
  }

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

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-promotions__section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }

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

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

  .page-promotions__content-wrapper {
    gap: 20px;
    margin-bottom: 30px;
  }

  .page-promotions__image-card {
    box-shadow: none;
  }

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

  .page-promotions__cta-title {
    font-size: 28px;
  }

  .page-promotions__cta-description {
    font-size: 16px;
  }

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

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

  .page-promotions__terms-list {
    margin-left: 20px;
  }

  .page-promotions__terms-list li {
    font-size: 16px;
  }

  .page-promotions__text-intro,
  .page-promotions__text-outro {
    font-size: 16px;
  }

  /* Ensure all image and button containers are responsive */
  .page-promotions__hero-section,
  .page-promotions__welcome-bonus,
  .page-promotions__daily-weekly-bonus,
  .page-promotions__cashback-rebate,
  .page-promotions__vip-program,
  .page-promotions__special-events,
  .page-promotions__terms-conditions,
  .page-promotions__faq-section,
  .page-promotions__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 480px) {
  .page-promotions__hero-image-wrapper {
    max-height: 200px;
  }
  .page-promotions__main-title {
    font-size: 28px;
  }
  .page-promotions__description {
    font-size: 15px;
  }
  .page-promotions__section-title {
    font-size: 24px;
  }
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    padding: 10px 15px;
    font-size: 15px;
  }
}