/* style/promotions.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #ffffff;
  --background-dark: #26A9E0;
  --button-login: #EA7C07;
}

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

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

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  color: var(--text-light);
  overflow: hidden;
}

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

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

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

.page-promotions__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.page-promotions__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-light);
}

.page-promotions__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: var(--text-light);
}

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

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid transparent;
  box-sizing: border-box;
  max-width: 100%; /* Ensure responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
}

.page-promotions__btn-primary {
  background-color: var(--primary-color);
  color: var(--text-light);
  border-color: var(--primary-color);
}

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

.page-promotions__btn-secondary {
  background-color: transparent;
  color: var(--text-light);
  border-color: var(--text-light);
}

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

/* Section Titles & Descriptions */
.page-promotions__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: inherit; /* Inherit from parent section's color */
}

.page-promotions__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: inherit;
}

/* Intro Section */
.page-promotions__intro-section {
  padding: 60px 20px;
  text-align: center;
}

.page-promotions__image-content {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Promotion Types Section */
.page-promotions__types-section {
  padding: 80px 20px;
}

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

.page-promotions__promo-card {
  background-color: var(--background-light);
  color: var(--text-dark);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-promotions__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  width: 100%; /* Ensure image fills card width */
  min-height: 200px; /* Minimum size requirement */
  object-fit: cover;
}

.page-promotions__card-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: var(--primary-color);
}

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

/* How-To-Join Section */
.page-promotions__how-to-join {
  padding: 80px 20px;
}

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

.page-promotions__step-item {
  background-color: var(--background-light);
  color: var(--text-dark);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-promotions__step-title {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-promotions__step-text {
  font-size: 1em;
  margin-bottom: 25px;
  flex-grow: 1;
}

/* Terms & Conditions Section */
.page-promotions__terms-conditions {
  padding: 80px 20px;
}

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

.page-promotions__terms-list li {
  background-color: rgba(255, 255, 255, 0.1);
  margin-bottom: 15px;
  padding: 15px 20px;
  border-radius: 8px;
  font-size: 1em;
  color: var(--text-light);
}

.page-promotions__terms-list li p {
  margin: 0;
  color: inherit;
}

.page-promotions__terms-list li strong {
  color: var(--secondary-color);
}

/* FAQ Section */
.page-promotions__faq-section {
  padding: 80px 20px;
}

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

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

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #f9f9f9;
  color: var(--text-dark);
  transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
  background-color: #e8e8e8;
}

.page-promotions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

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

.page-promotions__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: var(--text-dark);
}

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

/* CTA Bottom Section */
.page-promotions__cta-bottom {
  padding: 80px 20px;
  text-align: center;
  color: var(--text-light);
}

.page-promotions__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: var(--text-light);
}

.page-promotions__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__hero-title {
    font-size: 2.8em;
  }

  .page-promotions__section-title {
    font-size: 2em;
  }
}

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

  .page-promotions__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-promotions__hero-title {
    font-size: 2.2em;
  }

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

  .page-promotions__hero-cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    width: 100%;
    max-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-title {
    font-size: 1.8em;
  }

  .page-promotions__section-description {
    font-size: 0.95em;
  }

  .page-promotions__intro-section,
  .page-promotions__types-section,
  .page-promotions__how-to-join,
  .page-promotions__terms-conditions,
  .page-promotions__faq-section,
  .page-promotions__cta-bottom {
    padding: 40px 15px;
  }

  .page-promotions__container {
    padding: 0 15px;
  }

  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

  /* Ensure padding for content within sections/cards */
  .page-promotions__promo-card,
  .page-promotions__step-item,
  .page-promotions__faq-item {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promotions__promo-grid,
  .page-promotions__steps-grid {
    grid-template-columns: 1fr;
  }
  
  .page-promotions__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

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

/* Global image responsiveness for content area */
.page-promotions img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Image containers responsiveness */
.page-promotions__section,
.page-promotions__card,
.page-promotions__container {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

/* No filter on images */
.page-promotions img {
  filter: none; /* Ensure no CSS filter is applied */
}