/* style/promotions.css */

:root {
  --hbet-primary-color: #26A9E0;
  --hbet-secondary-color: #FFFFFF;
  --hbet-login-color: #EA7C07;
  --hbet-background-color: #0a0a0a;
  --hbet-text-color-light: #ffffff;
  --hbet-text-color-dark: #333333;
  --hbet-card-bg-dark: rgba(255, 255, 255, 0.1);
  --hbet-card-bg-light: #ffffff;
  --hbet-border-color: #e0e0e0;
}

.page-promotions {
  color: var(--hbet-text-color-light); /* Body background is dark, so text is light */
  background-color: var(--hbet-background-color);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-promotions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 20px 60px 20px;
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  max-height: 700px; /* Limit height for aesthetic */
}

.page-promotions__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 0;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for readability */
  border-radius: 10px;
  padding: 30px;
  box-sizing: border-box;
}

.page-promotions__main-title {
  color: var(--hbet-secondary-color);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-promotions__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: var(--hbet-secondary-color);
}

.page-promotions__description--white {
  color: var(--hbet-secondary-color);
}

.page-promotions__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-tertiary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__btn-primary {
  background-color: var(--hbet-primary-color);
  color: var(--hbet-secondary-color);
  border: 2px solid var(--hbet-primary-color);
}

.page-promotions__btn-primary:hover {
  background-color: darken(var(--hbet-primary-color), 10%);
  border-color: darken(var(--hbet-primary-color), 10%);
}

.page-promotions__btn-secondary {
  background-color: transparent;
  color: var(--hbet-primary-color);
  border: 2px solid var(--hbet-primary-color);
}

.page-promotions__btn-secondary:hover {
  background-color: var(--hbet-primary-color);
  color: var(--hbet-secondary-color);
}

.page-promotions__btn-tertiary {
  background-color: var(--hbet-login-color);
  color: var(--hbet-secondary-color);
  border: 2px solid var(--hbet-login-color);
}

.page-promotions__btn-tertiary:hover {
  background-color: darken(var(--hbet-login-color), 10%);
  border-color: darken(var(--hbet-login-color), 10%);
}

.page-promotions__section {
  padding: 60px 20px;
  text-align: center;
  box-sizing: border-box;
}

.page-promotions__dark-bg {
  background-color: var(--hbet-background-color);
  color: var(--hbet-text-color-light);
}

.page-promotions__light-bg {
  background-color: var(--hbet-secondary-color);
  color: var(--hbet-text-color-dark);
}

.page-promotions__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--hbet-primary-color);
}

.page-promotions__section-title--white {
  color: var(--hbet-secondary-color);
}

.page-promotions__section-description {
  max-width: 800px;
  margin: 0 auto 40px auto;
  font-size: 1.1rem;
  color: inherit;
}

.page-promotions__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-promotions__promo-card {
  background-color: var(--hbet-card-bg-light);
  color: var(--hbet-text-color-dark);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: left;
  transition: transform 0.3s ease;
}

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

.page-promotions__promo-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

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

.page-promotions__card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--hbet-primary-color);
}

.page-promotions__card-text {
  font-size: 1rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-promotions__how-to-claim .page-promotions__section-description {
  color: var(--hbet-text-color-light);
}

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

.page-promotions__step-item {
  background-color: var(--hbet-card-bg-dark);
  border-radius: 10px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--hbet-text-color-light);
}

.page-promotions__step-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--hbet-primary-color);
  margin-bottom: 15px;
  background-color: var(--hbet-secondary-color);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-promotions__step-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--hbet-secondary-color);
}

.page-promotions__step-text {
  font-size: 1rem;
}

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

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

.page-promotions__faq-item {
  background-color: var(--hbet-card-bg-light);
  border: 1px solid var(--hbet-border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--hbet-text-color-dark);
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  background-color: #f8f8f8;
  color: var(--hbet-primary-color);
  list-style: none; /* For details/summary */
}

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

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

.page-promotions__faq-toggle {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--hbet-primary-color);
  margin-left: 15px;
  user-select: none;
}

.page-promotions__faq-answer {
  padding: 0 25px 18px 25px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--hbet-text-color-dark);
}

.page-promotions__faq-item[open] .page-promotions__faq-answer {
  padding-top: 10px;
}

.page-promotions__final-cta {
  padding: 80px 20px;
}

/* Utility for darken color in SASS-like way */
/* Function to darken a hex color */
@function darken($color, $percentage) {
  @return mix(black, $color, $percentage);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-promotions__hero-content {
    padding: 20px;
  }
  .page-promotions__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-promotions__section-title {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
  }
  .page-promotions__promo-grid,
  .page-promotions__steps-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }
  .page-promotions__promo-image {
    height: 220px;
  }
}

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

  .page-promotions__hero-section {
    padding: 10px 15px 40px 15px;
  }

  .page-promotions__hero-content {
    padding: 20px 15px;
  }

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

  .page-promotions__description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
  }

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

  .page-promotions__section {
    padding: 40px 15px;
  }

  .page-promotions__promo-grid,
  .page-promotions__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .page-promotions__promo-card,
  .page-promotions__step-item {
    max-width: 100%;
    width: 100%;
  }

  .page-promotions__promo-image {
    height: 200px;
  }

  .page-promotions__card-title {
    font-size: 1.2rem;
  }

  .page-promotions__card-text {
    font-size: 0.95rem;
  }

  .page-promotions__faq-list {
    padding: 0 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

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

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

  /* Image responsiveness for all img tags */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__hero-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-promotions__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  /* Video responsiveness (if any, though not explicitly in current HTML) */
  .page-promotions video,
  .page-promotions__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-promotions__video-section,
  .page-promotions__video-container,
  .page-promotions__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}

/* Fallback for darken function (if SASS-like function not supported) */
/* This is a placeholder, actual implementation would require JS or a preprocessor */
/* For CSS, we'd typically use explicit colors or CSS variables */
/* Example for primary button hover: */
.page-promotions__btn-primary:hover {
  background-color: #1f8ec4; /* A slightly darker shade of #26A9E0 */
  border-color: #1f8ec4;
}
.page-promotions__btn-tertiary:hover {
  background-color: #c46806; /* A slightly darker shade of #EA7C07 */
  border-color: #c46806;
}