/* style/promotions.css */

/* Custom Colors */
:root {
  --color-primary: #11A84E;
  --color-secondary: #22C768;
  --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;
  --btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

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

.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;
  padding: 60px 0; /* Adjusted for image first, then content */
  text-align: center;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  z-index: 1;
  margin-bottom: 30px; /* Space between image and text content */
}

.page-promotions__hero-content {
  position: relative; /* Ensure content is above any potential background elements */
  z-index: 2;
  max-width: 900px;
  padding: 0 20px;
}

.page-promotions__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: bold;
  color: var(--color-gold);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-promotions__description {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Section Titles */
.page-promotions__section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-promotions__text-block {
  font-size: 1rem;
  color: var(--color-text-secondary);
  text-align: center;
  margin-bottom: 30px;
}

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-card {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  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: var(--btn-gradient);
  color: var(--color-text-main);
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-promotions__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
  opacity: 0.9;
}

.page-promotions__btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-promotions__btn-secondary:hover {
  transform: translateY(-3px);
  background: rgba(var(--color-primary), 0.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-promotions__btn-card {
  background: var(--btn-gradient);
  color: var(--color-text-main);
  border: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  padding: 10px 20px;
  font-size: 0.95rem;
  width: fit-content;
  margin-top: auto; /* Push to bottom of card */
}

.page-promotions__btn-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-promotions__btn-center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 30px;
  width: fit-content;
}

/* Promotion Grid */
.page-promotions__promotion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-promotions__card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

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

.page-promotions__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid var(--color-deep-green);
}

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

.page-promotions__card-text {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1; /* Allow text to grow and push button down */
}

/* How-To Join Section */
.page-promotions__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-promotions__list-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__step-number {
  background-color: var(--color-primary);
  color: var(--color-text-main);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin-right: 20px;
  flex-shrink: 0;
}

.page-promotions__step-content {
  text-align: left;
}

.page-promotions__step-title {
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-top: 0;
  margin-bottom: 10px;
}

.page-promotions__step-text {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

/* Terms Section */
.page-promotions__terms-list {
  list-style: disc;
  color: var(--color-text-secondary);
  text-align: left;
  margin-top: 30px;
  padding-left: 25px;
}

.page-promotions__terms-list .page-promotions__list-item {
  background-color: transparent;
  border: none;
  box-shadow: none;
  padding: 5px 0;
  margin-bottom: 10px;
  display: list-item; /* Override flex for list style */
  align-items: baseline;
}

.page-promotions__link-inline {
  color: var(--color-gold);
  text-decoration: underline;
}

.page-promotions__link-inline:hover {
  color: var(--color-primary);
}

/* 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: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--color-primary);
  cursor: pointer;
  background-color: var(--color-deep-green);
  border-bottom: 1px solid var(--color-divider);
  list-style: none; /* Remove default marker for details summary */
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

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

.page-promotions__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-gold);
}

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

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
  color: var(--color-gold);
}

.page-promotions__faq-answer {
  padding: 15px 25px;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  background-color: var(--color-card-bg);
  border-top: 1px solid var(--color-divider);
}

.page-promotions__faq-answer p {
  margin: 0;
  text-align: left;
}

/* Final CTA Section */
.page-promotions__cta-final-section {
  padding: 80px 20px;
  text-align: center;
}

.page-promotions__cta-final-section .page-promotions__section-title {
  color: var(--color-gold);
}

.page-promotions__cta-final-section .page-promotions__cta-buttons {
  margin-top: 40px;
}

/* Spacing for sections */
.page-promotions__overview-section,
.page-promotions__categories-section,
.page-promotions__how-to-join-section,
.page-promotions__terms-section,
.page-promotions__faq-section {
  padding: 80px 0;
}

.page-promotions__categories-section {
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-promotions__hero-image {
    height: 600px;
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-section {
    padding: 40px 0;
  }

  .page-promotions__hero-image {
    height: 400px;
    margin-bottom: 20px;
  }

  .page-promotions__main-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

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

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

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .page-promotions__btn-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px;
    font-size: 1rem;
  }

  .page-promotions__btn-center {
    width: 100% !important;
  }

  .page-promotions__section-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
  }

  .page-promotions__overview-section,
  .page-promotions__categories-section,
  .page-promotions__how-to-join-section,
  .page-promotions__terms-section,
  .page-promotions__faq-section,
  .page-promotions__cta-final-section {
    padding: 50px 0;
  }

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

  .page-promotions__promotion-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-promotions__card-image {
    height: 180px;
  }

  .page-promotions__list-item {
    flex-direction: column;
    text-align: center;
    padding: 15px;
  }

  .page-promotions__step-number {
    margin-right: 0;
    margin-bottom: 15px;
  }

  .page-promotions__step-content {
    text-align: center;
  }

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

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

  /* Ensure all images are responsive */
  .page-promotions img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-promotions__card,
  .page-promotions__promotion-grid,
  .page-promotions__hero-section,
  .page-promotions__overview-section,
  .page-promotions__categories-section,
  .page-promotions__how-to-join-section,
  .page-promotions__terms-section,
  .page-promotions__faq-section,
  .page-promotions__cta-final-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-promotions__hero-buttons,
  .page-promotions__cta-final-section .page-promotions__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-promotions__hero-buttons > *,
  .page-promotions__cta-final-section .page-promotions__cta-buttons > * {
    flex: 1 1 100%;
  }

  .page-promotions__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}