/* style/promotions.css */

/* Base styles for the promotions page */
.page-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #FFFFFF;
}

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

/* Section styles */
.page-promotions__section {
  padding: 60px 0;
  text-align: center;
}

.page-promotions__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #000000;
}

.page-promotions__section-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
}

.page-promotions__sub-title {
  font-size: 1.8em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #000000;
}

/* Color Contrast Handling */
.page-promotions__dark-bg {
  background-color: #000000;
  color: #FFFFFF;
}

.page-promotions__dark-bg .page-promotions__section-title,
.page-promotions__dark-bg .page-promotions__sub-title {
  color: #FFFFFF;
}

.page-promotions__dark-bg .page-promotions__section-description,
.page-promotions__dark-bg .page-promotions__promo-card-text,
.page-promotions__dark-bg .page-promotions__list-item {
  color: #f0f0f0;
}

.page-promotions__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

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

.page-promotions__light-bg .page-promotions__section-description,
.page-promotions__light-bg .page-promotions__step-text,
.page-promotions__light-bg .page-promotions__faq-text {
  color: #333333;
}

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
  max-width: 100%;
  box-sizing: border-box;
}

.page-promotions__btn-primary {
  background-color: #FCBC45; /* Login color */
  color: #000000;
  border: 2px solid #FCBC45;
}

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

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

.page-promotions__btn-secondary:hover {
  background-color: #FFFFFF;
  color: #000000;
}

.page-promotions__hero-cta-buttons,
.page-promotions__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-promotions__hero-cta-buttons .page-promotions__btn-secondary {
  color: #FCBC45;
  border-color: #FCBC45;
}

.page-promotions__hero-cta-buttons .page-promotions__btn-secondary:hover {
  background-color: #FCBC45;
  color: #000000;
}

/* HERO Section */
.page-promotions__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-promotions__hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
}

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

.page-promotions__hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 20px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for readability */
  border-radius: 10px;
  margin-top: -80px; /* Overlap image slightly for visual effect */
  box-sizing: border-box;
}

.page-promotions__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #FFFFFF;
  letter-spacing: 0.5px;
}

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

/* How-to-claim section */
.page-promotions__how-to-claim-section {
  background-color: #f8f8f8;
}

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

.page-promotions__step-card {
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  box-sizing: border-box;
}

.page-promotions__step-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  display: block;
}

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

.page-promotions__step-text {
  font-size: 1em;
  color: #555555;
}

.page-promotions__step-text a {
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
}

.page-promotions__step-text a:hover {
  text-decoration: underline;
}

/* Types of Promotions section */
.page-promotions__types-section {
  background: linear-gradient(135deg, #000000, #333333);
}

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

.page-promotions__promo-card {
  background-color: #1a1a1a;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  box-sizing: border-box;
}

.page-promotions__promo-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-promotions__promo-card-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #FCBC45;
}

.page-promotions__promo-card-text {
  font-size: 0.95em;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* VIP Section */
.page-promotions__vip-content-wrapper,
.page-promotions__app-content-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 50px;
  text-align: left;
  margin-top: 40px;
}

.page-promotions__vip-image-container,
.page-promotions__app-image-container {
  flex: 1;
  min-width: 300px;
}

.page-promotions__vip-image,
.page-promotions__app-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  display: block;
}

.page-promotions__vip-benefits,
.page-promotions__app-features {
  flex: 1.5;
  min-width: 300px;
}

.page-promotions__benefits-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-promotions__list-item {
  font-size: 1.1em;
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
}

.page-promotions__list-item::before {
  content: '✔️';
  position: absolute;
  left: 0;
  color: #FCBC45;
}

.page-promotions__app-download-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
}

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

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

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: #000000;
  cursor: pointer;
  background-color: #f8f8f8;
  border-bottom: 1px solid #eee;
}

.page-promotions__faq-item.active .page-promotions__faq-question {
  background-color: #FCBC45;
  color: #000000;
}

.page-promotions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  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 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 15px 25px;
}

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

/* CTA Section */
.page-promotions__cta-section {
  background: linear-gradient(90deg, #000000, #333333);
  color: #FFFFFF;
  padding: 80px 0;
}

.page-promotions__cta-section .page-promotions__section-title,
.page-promotions__cta-section .page-promotions__section-description {
  color: #FFFFFF;
}

/* Global Image Sizing for Content Areas */
.page-promotions img {
  max-width: 100%;
  height: auto;
  display: block;
  /* Enforce min size for content images, except specific exceptions */
  min-width: 200px;
  min-height: 200px;
}

/* Specific exceptions for small icons if they were used */
/* Example: .page-promotions__category-icon { min-width: unset; min-height: unset; width: 30px; height: 30px; } */

/* Responsive Design */
@media (max-width: 992px) {
  .page-promotions__vip-content-wrapper,
  .page-promotions__app-content-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .page-promotions__vip-benefits,
  .page-promotions__app-features {
    margin-top: 30px;
  }

  .page-promotions__vip-benefits .page-promotions__benefits-list,
  .page-promotions__app-features .page-promotions__benefits-list {
    text-align: left;
  }
}

@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: 2em;
  }

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

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

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

  .page-promotions__hero-cta-buttons,
  .page-promotions__cta-buttons,
  .page-promotions__app-download-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .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;
  }

  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promotions__hero-section {
    padding-top: var(--header-offset, 100px) !important; /* Mobile header offset */
  }

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

  .page-promotions__promo-card-image {
    height: 180px;
  }

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

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

  .page-promotions__faq-item.active .page-promotions__faq-answer {
    padding: 10px 20px;
  }
}

@media (max-width: 480px) {
  .page-promotions__section-title {
    font-size: 1.8em;
  }

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

  .page-promotions__promo-card-image {
    height: 150px;
  }

  .page-promotions__step-card,
  .page-promotions__promo-card {
    padding: 20px;
  }
}