/* style/promotions.css */
:root {
  --page-promotions-bg-color: #08160F;
  --page-promotions-card-bg: #11271B;
  --page-promotions-text-main: #F2FFF6;
  --page-promotions-text-secondary: #A7D9B8;
  --page-promotions-border-color: #2E7A4E;
  --page-promotions-glow-color: #57E38D;
  --page-promotions-gold-color: #F2C14E;
  --page-promotions-divider-color: #1E3A2A;
  --page-promotions-deep-green: #0A4B2C;
  --page-promotions-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-promotions {
  background-color: var(--page-promotions-bg-color); /* Dark background */
  color: var(--page-promotions-text-main); /* Light text for contrast */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-promotions__section {
  padding: 60px 0;
  text-align: center;
}

.page-promotions__section-title {
  font-size: 2.8em;
  font-weight: 700;
  color: var(--page-promotions-text-main);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-promotions__section-description {
  font-size: 1.1em;
  color: var(--page-promotions-text-secondary);
  max-width: 800px;
  margin: 0 auto 40px;
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding: 10px 0 60px 0; /* body handles header offset, small top padding for visual separation */
  overflow: hidden;
}

.page-promotions__hero-image-wrapper {
  position: relative;
  width: 100%;
  max-height: 700px; /* Limit height to prevent excessive size on large screens */
  overflow: hidden;
  order: 1; /* Image first */
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for text readability, not changing color */
}

.page-promotions__hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -150px; /* Pull content up over the image, but not *on* the image */
  background: linear-gradient(0deg, var(--page-promotions-bg-color) 0%, rgba(8, 22, 15, 0.8) 50%, rgba(8, 22, 15, 0) 100%);
  order: 2; /* Content after image */
}

.page-promotions__main-title {
  font-size: clamp(2.5em, 5vw, 3.8em);
  font-weight: 800;
  color: var(--page-promotions-gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-promotions__hero-description {
  font-size: 1.2em;
  color: var(--page-promotions-text-main);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-promotions__btn-primary {
  background: var(--page-promotions-btn-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-promotions__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(42, 209, 111, 0.6);
  opacity: 0.9;
}

.page-promotions__btn-secondary {
  background: none;
  color: var(--page-promotions-gold-color);
  border: 2px solid var(--page-promotions-gold-color);
}

.page-promotions__btn-secondary:hover {
  background: var(--page-promotions-gold-color);
  color: var(--page-promotions-bg-color);
  transform: translateY(-3px);
}

/* Highlight Promos Section */
.page-promotions__highlight-promos {
  background-color: var(--page-promotions-bg-color);
}

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

.page-promotions__promo-card {
  background-color: var(--page-promotions-card-bg);
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--page-promotions-border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

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

.page-promotions__card-content {
  padding: 25px;
}

.page-promotions__card-title {
  font-size: 1.5em;
  color: var(--page-promotions-text-main);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-promotions__card-text {
  font-size: 0.95em;
  color: var(--page-promotions-text-secondary);
  margin-bottom: 25px;
}

.page-promotions__card-button {
  background: var(--page-promotions-btn-gradient);
  color: #ffffff;
  border: none;
  padding: 12px 25px;
  border-radius: 6px;
  font-size: 0.95em;
  font-weight: 600;
  text-align: center;
  display: block;
}

.page-promotions__card-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* How To Claim Section */
.page-promotions__how-to-claim {
  background-color: var(--page-promotions-deep-green);
}

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

.page-promotions__step-item {
  background-color: var(--page-promotions-card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--page-promotions-border-color);
  transition: transform 0.3s ease;
}

.page-promotions__step-item:hover {
  transform: translateY(-5px);
}

.page-promotions__step-icon {
  width: 80px;
  height: 80px;
  background-color: var(--page-promotions-deep-green);
  border-radius: 50%;
  margin: 0 auto 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5em;
  color: var(--page-promotions-gold-color);
  font-weight: bold;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23F2C14E" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-check-circle"><path d="M22 11.08V12a10 10 0 1 1-5.93-8.15"></path><polyline points="22 4 12 14.01 9 11.01"></polyline></svg>');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 40px;
}

.page-promotions__step-icon--register {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23F2C14E" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-user-plus"><path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="8.5" cy="7" r="4"></circle><line x1="20" y1="8" x2="20" y2="14"></line><line x1="23" y1="11" x2="17" y2="11"></line></svg>');
}

.page-promotions__step-icon--deposit {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23F2C14E" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-dollar-sign"><line x1="12" y1="1" x2="12" y2="23"></line><path d="M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"></path></svg>');
}

.page-promotions__step-icon--claim {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23F2C14E" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-gift"><polyline points="20 12 20 22 4 22 4 12"></polyline><path d="M2 7h20v5H2z"></path><line x1="12" y1="22" x2="12" y2="7"></line><path d="M12 7H7.5a2.5 2.5 0 0 1 0-5C11 2 12 7 12 7z"></path><path d="M12 7h4.5a2.5 2.5 0 0 0 0-5C13 2 12 7 12 7z"></path></svg>');
}

.page-promotions__step-title {
  font-size: 1.4em;
  color: var(--page-promotions-text-main);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-promotions__step-text {
  font-size: 0.95em;
  color: var(--page-promotions-text-secondary);
  margin-bottom: 20px;
}

.page-promotions__step-button {
  background: var(--page-promotions-gold-color);
  color: var(--page-promotions-bg-color);
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 0.9em;
  font-weight: 600;
  text-align: center;
  display: inline-block;
}

.page-promotions__step-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* Terms and Conditions Section */
.page-promotions__terms-conditions {
  background-color: var(--page-promotions-bg-color);
  border-top: 1px solid var(--page-promotions-divider-color);
}

.page-promotions__terms-list {
  list-style: none;
  padding: 0;
  text-align: left;
  max-width: 800px;
  margin: 40px auto;
}

.page-promotions__terms-item {
  font-size: 1em;
  color: var(--page-promotions-text-secondary);
  margin-bottom: 15px;
  padding-left: 25px;
  position: relative;
}

.page-promotions__terms-item::before {
  content: '•';
  color: var(--page-promotions-gold-color);
  position: absolute;
  left: 0;
  font-size: 1.2em;
  line-height: 1;
}

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

/* FAQ Section */
.page-promotions__faq-section {
  background-color: var(--page-promotions-deep-green);
  border-top: 1px solid var(--page-promotions-divider-color);
}

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

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

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.1em;
  color: var(--page-promotions-text-main);
  font-weight: 600;
  background-color: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--page-promotions-divider-color);
}

.page-promotions__faq-item[open] .page-promotions__faq-question {
  border-bottom: none;
}

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

.page-promotions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--page-promotions-gold-color);
  transition: transform 0.3s ease;
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
  transform: rotate(45deg);
}

.page-promotions__faq-answer {
  padding: 15px 25px 20px;
  font-size: 0.95em;
  color: var(--page-promotions-text-secondary);
}

/* CTA Bottom Section */
.page-promotions__cta-bottom {
  background-color: var(--page-promotions-bg-color);
  border-top: 1px solid var(--page-promotions-divider-color);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-promotions__section-title {
    font-size: 2.2em;
  }
  .page-promotions__hero-content {
    margin-top: -100px;
  }
}

@media (max-width: 768px) {
  .page-promotions {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-promotions__section {
    padding: 40px 0;
  }
  .page-promotions__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-promotions__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-promotions__hero-section {
    min-height: 400px;
    padding: 10px 0 40px 0;
  }
  .page-promotions__hero-content {
    padding: 20px 15px;
    margin-top: -80px;
  }
  .page-promotions__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-promotions__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }
  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .page-promotions__card-button,
  .page-promotions__step-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-promotions__promo-grid,
  .page-promotions__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }
  .page-promotions__promo-card,
  .page-promotions__step-item,
  .page-promotions__faq-item {
    margin-left: 15px;
    margin-right: 15px;
  }
  .page-promotions__card-image {
    height: 200px;
  }
  .page-promotions__card-content,
  .page-promotions__step-item,
  .page-promotions__faq-question,
  .page-promotions__faq-answer {
    padding: 15px 20px;
  }
  .page-promotions__card-title {
    font-size: 1.3em;
  }
  .page-promotions__faq-question {
    font-size: 1em;
  }
  .page-promotions__terms-list {
    margin: 30px 15px;
  }
  .page-promotions__container {
    padding: 0 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-promotions__hero-image-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-promotions__cta-buttons,
  .page-promotions__button-group,
  .page-promotions__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    overflow: hidden !important;
  }
  .page-promotions__cta-buttons--center {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .page-promotions__section-title {
    font-size: 1.6em;
  }
  .page-promotions__main-title {
    font-size: 1.8em;
  }
  .page-promotions__hero-content {
    margin-top: -60px;
  }
  .page-promotions__hero-section {
    min-height: 350px;
  }
}