/* style/promotions.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #ffffff;
  --bg-dark: #1a1a1a; /* Assuming shared.css body background might be dark, or for dark sections */
  --btn-login: #EA7C07;
}

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

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

.page-promotions__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 30px;
}

.page-promotions__text-block {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: center;
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--primary-color);
  color: var(--text-light);
  text-align: center;
  overflow: hidden;
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for aesthetic */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px;
}

.page-promotions__hero-content {
  position: relative; /* Ensure content is above image if any overlap */
  z-index: 1;
  max-width: 900px;
}

.page-promotions__main-title {
  font-weight: bold;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.2;
  font-size: clamp(2.2em, 4vw, 3.2em); /* Responsive font size for H1 */
}

.page-promotions__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-promotions__btn-primary {
  background-color: var(--btn-login); /* Use login color for primary action */
  color: var(--text-light);
  border: 2px solid var(--btn-login);
}

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

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

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

/* Intro Section */
.page-promotions__intro-section {
  padding: 80px 0;
  background-color: var(--bg-light);
  color: var(--text-dark);
}

/* Promotions List */
.page-promotions__promotions-list {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-promotions__promotions-list .page-promotions__section-title,
.page-promotions__promotions-list .page-promotions__text-block {
  color: var(--text-light);
}

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

.page-promotions__promotion-card {
  background-color: var(--bg-light);
  color: var(--text-dark);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

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

.page-promotions__card-description {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-promotions__promotion-card .page-promotions__btn-primary {
  width: auto;
  margin-top: auto; /* Push button to bottom */
}

/* How to Join Section */
.page-promotions__how-to-join {
  padding: 80px 0;
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.page-promotions__steps-list {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
  max-width: 800px;
  margin: 40px auto;
}

.page-promotions__step-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 30px;
  font-size: 1.1em;
  line-height: 1.7;
  text-align: left;
}

.page-promotions__step-item::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  top: 0;
  background-color: var(--primary-color);
  color: var(--text-light);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2em;
}

/* Terms & Conditions Section */
.page-promotions__terms-conditions {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-promotions__terms-conditions .page-promotions__section-title,
.page-promotions__terms-conditions .page-promotions__text-block {
  color: var(--text-light);
}

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

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

/* FAQ Section */
.page-promotions__faq-section {
  padding: 80px 0;
  background-color: var(--bg-light);
  color: var(--text-dark);
}

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

.page-promotions__faq-item {
  background-color: #f9f9f9;
  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: 20px;
  font-size: 1.1em;
  font-weight: bold;
  color: var(--primary-color);
  cursor: pointer;
  background-color: #f0f0f0;
  border-bottom: 1px solid #e0e0e0;
  list-style: none; /* For details/summary */
  user-select: none;
}

.page-promotions__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Chrome/Safari */
}

.page-promotions__faq-item[open] > .page-promotions__faq-question {
  border-bottom: 1px solid var(--primary-color);
}

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

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

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

/* Final CTA Section */
.page-promotions__cta-final {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--text-light);
  text-align: center;
}

.page-promotions__cta-final .page-promotions__section-title,
.page-promotions__cta-final .page-promotions__text-block {
  color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__section-title {
    font-size: 2em;
  }
  .page-promotions__main-title {
    font-size: clamp(2em, 5vw, 2.8em);
  }
}

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

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

  .page-promotions__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-promotions__text-block {
    font-size: 1em;
  }

  .page-promotions__hero-section,
  .page-promotions__intro-section,
  .page-promotions__promotions-list,
  .page-promotions__how-to-join,
  .page-promotions__terms-conditions,
  .page-promotions__faq-section,
  .page-promotions__cta-final {
    padding: 40px 0;
  }

  .page-promotions__hero-section {
    padding-top: 10px !important; /* Ensure small padding-top */
  }

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

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

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

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

  .page-promotions__hero-image,
  .page-promotions__card-image,
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-promotions__hero-image-wrapper,
  .page-promotions__promotion-card,
  .page-promotions__grid-layout,
  .page-promotions__steps-list,
  .page-promotions__faq-list,
  .page-promotions__video-section,
  .page-promotions__video-container,
  .page-promotions__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-promotions__grid-layout {
    grid-template-columns: 1fr;
  }

  .page-promotions__promotion-card {
    padding: 20px;
  }

  .page-promotions__step-item {
    padding-left: 50px;
  }

  .page-promotions__step-item::before {
    width: 35px;
    height: 35px;
    font-size: 1em;
  }

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

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

@media (max-width: 480px) {
  .page-promotions__section-title {
    font-size: 1.5em;
  }
  .page-promotions__main-title {
    font-size: clamp(1.5em, 8vw, 2em) !important;
  }
  .page-promotions__hero-description {
    font-size: 0.95em;
  }
}