/* style/promotions.css */
/* BEM naming convention: .page-promotions__element-name */

/* Base styles for the page content */
.page-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: var(--black-color); /* Inherit from shared, assume dark */
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-promotions__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.page-promotions__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
  z-index: 1;
}

.page-promotions__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
  color: #ffffff;
}

.page-promotions__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

.page-promotions__hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* For mobile responsiveness */
}

/* General Section Styles */
.page-promotions__section {
  padding: 80px 0;
  background-color: var(--black-color); /* Default dark background */
  color: #ffffff; /* Default light text */
}

.page-promotions__section:nth-of-type(even) {
  background-color: #1a1a1a; /* Slightly different dark shade for contrast */
}

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

.page-promotions__section-title {
  font-size: 2.5em;
  color: #26A9E0; /* Brand color for titles */
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.page-promotions__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #26A9E0;
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-promotions__description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #f0f0f0;
}

/* Content Grid Layout */
.page-promotions__content-grid {
  display: flex;
  align-items: center;
  gap: 40px;
}

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

.page-promotions__text-block,
.page-promotions__image-wrapper {
  flex: 1;
}

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

.page-promotions__image--center {
  margin: 0 auto 40px;
}

/* Promotion Types Grid */
.page-promotions__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-promotions__card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white on dark background */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, background-color 0.3s ease;
  color: #ffffff; /* Light text for card content */
}

.page-promotions__card:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.15);
}

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

.page-promotions__card-image {
  max-width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-promotions__card-description {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 25px;
  flex-grow: 1;
}

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
  box-sizing: border-box; /* Include padding and border in element's total width and height */
  max-width: 100%; /* Ensure button doesn't overflow */
}

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

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

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

.page-promotions__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-promotions__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap; /* For mobile responsiveness */
}

.page-promotions__cta-buttons--center {
  text-align: center;
}

/* How to Claim Section */
.page-promotions__step-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-promotions__step-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
  gap: 20px;
}

.page-promotions__step-number {
  background-color: #26A9E0;
  color: #ffffff;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
  flex-shrink: 0;
}

.page-promotions__step-text h3 {
  font-size: 1.4em;
  color: #26A9E0;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-promotions__step-text p {
  color: #f0f0f0;
}

/* Terms Section */
.page-promotions__terms .page-promotions__content-wrapper {
  max-width: 900px;
  margin: 0 auto;
  color: #f0f0f0;
}

.page-promotions__terms .page-promotions__text-block {
  text-align: left;
  margin-bottom: 20px;
  max-width: none;
}

.page-promotions__list {
  list-style: disc;
  padding-left: 25px;
  margin-bottom: 30px;
}

.page-promotions__list-item {
  margin-bottom: 10px;
  color: #f0f0f0;
}

/* FAQ Section */
.page-promotions__faq {
  background-color: #1a1a1a;
}

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

.page-promotions__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  cursor: pointer;
  font-size: 1.2em;
  color: #26A9E0;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-promotions__faq-question h3 {
  margin: 0;
  color: #26A9E0;
}

.page-promotions__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #ffffff;
  transition: transform 0.3s ease;
}

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

.page-promotions__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 30px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 30px 30px;
}

.page-promotions__faq-answer p {
  margin-top: 0;
  margin-bottom: 15px;
  color: #f0f0f0;
}

/* Call to Action Section */
.page-promotions__call-to-action .page-promotions__container {
  background-color: #26A9E0; /* Brand color background */
  color: #ffffff;
  padding: 60px 40px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-promotions__section-title--light {
  color: #ffffff; /* White title on brand color background */
}

.page-promotions__description--light {
  color: #f0f0f0;
}


/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__hero-title {
    font-size: 2.8em;
  }
  .page-promotions__section-title {
    font-size: 2em;
  }
  .page-promotions__content-grid {
    flex-direction: column;
  }
  .page-promotions__content-grid--reverse {
    flex-direction: column;
  }
  .page-promotions__text-block,
  .page-promotions__image-wrapper {
    width: 100%;
  }
  .page-promotions__card {
    padding: 25px;
  }
  .page-promotions__card-title {
    font-size: 1.4em;
  }
  .page-promotions__card-image {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .page-promotions {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-promotions__hero-section {
    height: 500px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile hero is not hidden */
  }
  .page-promotions__hero-title {
    font-size: 2.2em;
  }
  .page-promotions__hero-description {
    font-size: 1.1em;
  }
  .page-promotions__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promotions__section {
    padding: 60px 0;
  }
  .page-promotions__container {
    padding: 0 15px;
  }
  .page-promotions__section-title {
    font-size: 1.8em;
    margin-bottom: 40px;
  }
  .page-promotions__description {
    font-size: 1em;
  }
  .page-promotions__promo-grid {
    grid-template-columns: 1fr;
  }
  .page-promotions__card {
    padding: 20px;
  }
  .page-promotions__card-image {
    height: 160px;
  }
  .page-promotions__card-title {
    font-size: 1.3em;
  }
  .page-promotions__step-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 25px;
  }
  .page-promotions__step-number {
    margin-bottom: 15px;
  }
  .page-promotions__step-text h3 {
    font-size: 1.3em;
  }
  .page-promotions__faq-question {
    font-size: 1.1em;
    padding: 18px 25px;
  }
  .page-promotions__faq-answer {
    padding: 0 25px;
  }
  .page-promotions__faq-item.active .page-promotions__faq-answer {
    padding: 15px 25px 25px;
  }
  .page-promotions__call-to-action .page-promotions__container {
    padding: 40px 20px;
  }

  /* Mobile image responsiveness */
  .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__image-wrapper,
  .page-promotions__cta-buttons,
  .page-promotions__promo-grid,
  .page-promotions__faq-list,
  .page-promotions__call-to-action .page-promotions__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-promotions__cta-buttons {
    flex-direction: column !important;
    gap: 10px !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-promotions__cta-buttons--center {
    padding-left: 15px;
    padding-right: 15px;
  }
}