/* style/promotions.css */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --background-dark: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green: #0A4B2C;
}

.page-promotions {
  font-family: 'Arial', sans-serif;
  color: var(--text-main); /* Default text color for dark background */
  background-color: var(--background-dark); /* Ensure consistency with body background from shared.css */
}

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

.page-promotions__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-promotions__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-promotions__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

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

.page-promotions__description {
  font-size: clamp(1em, 1.5vw, 1.3em);
  color: var(--text-secondary);
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

.page-promotions__btn-primary {
  background: var(--button-gradient);
  color: #ffffff; /* White text for gradient button */
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions__btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  margin-left: 15px;
}

.page-promotions__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
}

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

.page-promotions__intro-section,
.page-promotions__vip-section,
.page-promotions__how-to-claim-section,
.page-promotions__faq-section {
  background-color: #ffffff; /* Light background for readability */
  color: #333333;
}

.page-promotions__types-section,
.page-promotions__terms-section,
.page-promotions__why-choose-section,
.page-promotions__conclusion-section {
  background-color: var(--background-dark);
  color: var(--text-main);
}

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

.page-promotions__dark-bg .page-promotions__section-title {
  color: var(--gold-color);
}

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

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

.page-promotions__card {
  background-color: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main);
}

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

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

.page-promotions__card-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--gold-color);
  padding: 0 15px;
}

.page-promotions__card-text {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 25px;
  color: var(--text-secondary);
  padding: 0 15px;
}

.page-promotions__vip-benefits {
  list-style: none;
  padding-left: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
}

.page-promotions__vip-item {
  background-color: #f8f9fa;
  padding: 15px 20px;
  border-radius: 8px;
  font-size: 1.1em;
  color: #333333;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: relative;
  padding-left: 40px;
}

.page-promotions__vip-item::before {
  content: '✔';
  position: absolute;
  left: 15px;
  color: var(--primary-color);
  font-weight: bold;
}

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

.page-promotions__step-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 30px 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  color: #333333;
}

.page-promotions__step-card:hover {
  transform: translateY(-5px);
}

.page-promotions__step-image {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
}

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

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

.page-promotions__cta-button {
  margin-top: 40px;
  display: block;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-promotions__feature-item {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 30px 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  color: var(--text-main);
}

.page-promotions__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-promotions__feature-title {
  font-size: 1.3em;
  font-weight: 600;
  color: var(--gold-color);
  margin-bottom: 10px;
}

.page-promotions__feature-text {
  font-size: 0.95em;
  line-height: 1.6;
  color: var(--text-secondary);
}

.page-promotions__faq-list {
  margin-top: 30px;
}

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

.page-promotions__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1em;
  color: var(--primary-color);
  background-color: #e6ffe6;
  border-bottom: 1px solid #d0ffd0;
}

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

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

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

.page-promotions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  width: 20px;
  text-align: center;
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
  content: '−';
}

.page-promotions__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
}

.page-promotions__conclusion-section .page-promotions__text-block {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

/* Text colors based on custom palette */
.page-promotions .text--main {
  color: var(--text-main);
}

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

.page-promotions__intro-section .text--main,
.page-promotions__intro-section .text--secondary,
.page-promotions__vip-section .text--main,
.page-promotions__vip-section .text--secondary,
.page-promotions__how-to-claim-section .text--main,
.page-promotions__how-to-claim-section .text--secondary,
.page-promotions__faq-section .text--main,
.page-promotions__faq-section .text--secondary {
  color: #333333; /* Ensure dark text on light backgrounds */
}

.page-promotions__intro-section .text--secondary,
.page-promotions__vip-section .text--secondary,
.page-promotions__how-to-claim-section .text--secondary,
.page-promotions__faq-section .text--secondary {
  color: #555555;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-promotions__hero-content {
    padding: 15px;
  }

  .page-promotions__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }

  .page-promotions__description {
    font-size: clamp(1em, 2vw, 1.2em);
  }

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-promotions__btn-secondary {
    margin-left: 10px;
  }

  .page-promotions__section-title {
    font-size: clamp(1.6em, 4vw, 2.2em);
  }

  .page-promotions__card-title {
    font-size: 1.2em;
  }

  .page-promotions__feature-title {
    font-size: 1.1em;
  }

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

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

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

  .page-promotions__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

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

  .page-promotions__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin-bottom: 15px;
  }

  .page-promotions__description {
    font-size: clamp(0.9em, 3.5vw, 1.1em);
    margin-bottom: 25px;
  }

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    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;
    margin: 0 0 10px 0 !important; /* Stack buttons */
  }

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

  .page-promotions__section-title {
    font-size: clamp(1.5em, 6vw, 2em);
    margin-bottom: 30px;
  }

  .page-promotions__card,
  .page-promotions__step-card,
  .page-promotions__feature-item {
    padding: 25px 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }

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

  .page-promotions__video-section,
  .page-promotions__video-container,
  .page-promotions__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-promotions video,
  .page-promotions__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-promotions__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    margin-top: 20px;
  }

  .page-promotions__vip-benefits {
    grid-template-columns: 1fr;
  }
}