/* style/promotions.css */

/* Custom Colors */
:root {
  --color-primary: #11A84E;
  --color-secondary: #22C768;
  --color-button-gradient-start: #2AD16F;
  --color-button-gradient-end: #13994A;
  --color-card-bg: #11271B;
  --color-background: #08160F;
  --color-text-main: #F2FFF6;
  --color-text-secondary: #A7D9B8;
  --color-border: #2E7A4E;
  --color-glow: #57E38D;
  --color-gold: #F2C14E;
  --color-divider: #1E3A2A;
  --color-deep-green: #0A4B2C;
}

.page-promotions {
  background-color: var(--color-background);
  color: var(--color-text-main);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-promotions a {
  color: var(--color-secondary);
  text-decoration: none;
}

.page-promotions a:hover {
  text-decoration: underline;
  color: var(--color-glow);
}

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

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

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin-bottom: 30px;
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions__hero-content {
  max-width: 900px;
  margin-top: 30px;
}

.page-promotions__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: 15px;
  line-height: 1.2;
  letter-spacing: -1px;
}

.page-promotions__description {
  font-size: 1.2em;
  color: var(--color-text-secondary);
  margin-bottom: 30px;
}

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  transition: all 0.3s ease;
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
}

.page-promotions__btn-primary {
  background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 5px 15px rgba(17, 168, 78, 0.4);
}

.page-promotions__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(17, 168, 78, 0.6);
}

.page-promotions__btn-secondary {
  background-color: transparent;
  color: var(--color-button-gradient-start);
  border: 2px solid var(--color-button-gradient-start);
  margin-left: 20px;
}

.page-promotions__btn-secondary:hover {
  background-color: var(--color-button-gradient-start);
  color: #ffffff;
  transform: translateY(-3px);
}

.page-promotions__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 40px;
}

/* Sections */
.page-promotions__intro-section,
.page-promotions__how-to-join,
.page-promotions__faq-section,
.page-promotions__cta-final {
  padding: 60px 0;
  background-color: var(--color-background);
}

.page-promotions__featured-promos,
.page-promotions__terms,
.page-promotions__why-choose {
  padding: 60px 0;
  background-color: var(--color-card-bg);
}

.page-promotions__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  color: var(--color-gold);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.3;
}

.page-promotions__text-block {
  font-size: 1.1em;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
  text-align: justify;
}

.page-promotions__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px 0;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__image-centered {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.page-promotions__promo-card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

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

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

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

/* Step List */
.page-promotions__step-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-promotions__step-item {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  position: relative;
}

.page-promotions__step-item::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  top: -15px;
  left: 20px;
  background: var(--color-primary);
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.page-promotions__step-title {
  font-size: 1.4em;
  color: var(--color-gold);
  margin-bottom: 10px;
  margin-top: 20px;
}

.page-promotions__step-description {
  font-size: 1em;
  color: var(--color-text-secondary);
}

/* Terms List */
.page-promotions__terms-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-promotions__terms-item {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-divider);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-promotions__terms-subtitle {
  font-size: 1.3em;
  color: var(--color-gold);
  margin-bottom: 10px;
}

/* FAQ Section */
.page-promotions__faq-list {
  margin-top: 40px;
}

.page-promotions__faq-item {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  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 25px;
  font-size: 1.1em;
  font-weight: 600;
  color: var(--color-text-main);
  cursor: pointer;
  background-color: var(--color-deep-green);
  border-bottom: 1px solid var(--color-divider);
  transition: background-color 0.3s ease;
  list-style: none; /* For <summary> */
}

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

.page-promotions__faq-question:hover {
  background-color: var(--color-primary);
}

.page-promotions__faq-qtext {
  flex-grow: 1;
}

.page-promotions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--color-gold);
}

.page-promotions__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

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

/* Dark background text color override for consistency */
.page-promotions__dark-section .page-promotions__section-title,
.page-promotions__dark-section .page-promotions__card-title,
.page-promotions__dark-section .page-promotions__terms-subtitle,
.page-promotions__dark-section .page-promotions__reason-subtitle {
  color: var(--color-gold);
}

.page-promotions__dark-section .page-promotions__text-block,
.page-promotions__dark-section .page-promotions__text-secondary,
.page-promotions__dark-section .page-promotions__card-text,
.page-promotions__dark-section .page-promotions__terms-item p,
.page-promotions__dark-section .page-promotions__reason-item p {
  color: var(--color-text-secondary);
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-promotions__hero-content {
    margin-top: 0;
  }
  .page-promotions__promo-grid,
  .page-promotions__step-list {
    grid-template-columns: 1fr;
  }
  .page-promotions__btn-secondary {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .page-promotions {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-promotions__hero-section,
  .page-promotions__intro-section,
  .page-promotions__featured-promos,
  .page-promotions__how-to-join,
  .page-promotions__terms,
  .page-promotions__faq-section,
  .page-promotions__why-choose,
  .page-promotions__cta-final {
    padding: 40px 0;
  }

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

  .page-promotions__hero-content {
    padding: 0 15px;
  }

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

  .page-promotions__description {
    font-size: 1em;
  }

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

  /* Images */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-promotions__card-image {
    height: auto !important; /* Allow auto height for mobile */
  }

  /* Buttons */
  .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__button-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px;
  }

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

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

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