/* style/promotions.css */

:root {
  --color-primary: #11A84E;
  --color-secondary: #22C768;
  --color-bg-card: #11271B;
  --color-bg-body: #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;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

/* General styles for the page content, ensuring light text on dark background */
.page-promotions {
  color: var(--color-text-main);
  background-color: var(--color-bg-body);
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-bottom: 60px; /* Add some padding at the bottom */
}

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

.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--color-deep-green);
  padding: 60px 20px;
  overflow: hidden;
  color: var(--color-text-main);
}

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

.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: 2;
  max-width: 800px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text */
  border-radius: 10px;
}

.page-promotions__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--color-gold);
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-promotions__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: var(--color-text-secondary);
}

.page-promotions__cta-button,
.page-promotions__secondary-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  text-align: center;
}

.page-promotions__cta-button {
  background: var(--button-gradient);
  color: var(--color-text-main);
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-promotions__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  opacity: 0.9;
}

.page-promotions__secondary-button {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  margin-left: 20px;
}

.page-promotions__secondary-button:hover {
  background: var(--color-primary);
  color: var(--color-text-main);
}

.page-promotions__cta-button--centered {
  margin: 40px auto 0 auto;
  display: block;
  max-width: 300px;
}

.page-promotions__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--color-gold);
  text-align: center;
  margin-bottom: 25px;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

.page-promotions__section-description {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
}

/* Promotion Grid */
.page-promotions__overview-section {
  padding: 80px 0;
  background-color: var(--color-bg-body);
}

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

.page-promotions__promotion-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: var(--color-text-main);
}

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

.page-promotions__card-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-promotions__card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

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

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

.page-promotions__read-more-button {
  display: inline-block;
  padding: 10px 20px;
  background: var(--button-gradient);
  color: var(--color-text-main);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  align-self: flex-start;
  transition: opacity 0.3s ease;
}

.page-promotions__read-more-button:hover {
  opacity: 0.9;
}

/* Why Choose Section */
.page-promotions__why-choose-section {
  padding: 80px 0;
  background-color: var(--color-deep-green);
}

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

.page-promotions__benefit-item {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: var(--color-text-main);
}

.page-promotions__benefit-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px var(--color-glow));
}

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

.page-promotions__benefit-text {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}

/* How to Claim Section */
.page-promotions__how-to-claim-section {
  padding: 80px 0;
  background-color: var(--color-bg-body);
}

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

.page-promotions__step-item {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  padding-top: 60px;
  color: var(--color-text-main);
}

.page-promotions__step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--button-gradient);
  color: var(--color-text-main);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  border: 3px solid var(--color-deep-green);
  box-shadow: 0 0 0 5px var(--color-primary);
}

.page-promotions__step-image {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px var(--color-glow));
}

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

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

/* FAQ Section */
.page-promotions__faq-section {
  padding: 80px 0;
  background-color: var(--color-deep-green);
}

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

.page-promotions__faq-item {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--color-text-main);
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-gold);
  background-color: var(--color-deep-green);
  border-bottom: 1px solid var(--color-divider);
  list-style: none; /* For details/summary */
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none; /* Safari */
  -khtml-user-select: none; /* Konqueror HTML */
  -moz-user-select: none; /* Old versions of Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none; /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

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

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

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

.page-promotions__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--color-primary);
}

.page-promotions__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: var(--color-text-secondary);
  background-color: var(--color-bg-card);
}

/* Final CTA Section */
.page-promotions__final-cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--color-bg-body);
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-promotions__hero-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-promotions__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }
  .page-promotions__promotion-grid,
  .page-promotions__benefits-grid,
  .page-promotions__steps-wrapper {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body handles header offset, this is for visual spacing */
  }

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

  .page-promotions__hero-title {
    font-size: 2.2rem !important; /* Smaller on mobile */
  }

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

  .page-promotions__cta-button,
  .page-promotions__secondary-button {
    width: 100% !important;
    margin: 0 !important;
    padding: 12px 20px !important;
    font-size: 1rem !important;
  }

  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

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

  .page-promotions__section-description {
    font-size: 0.95rem;
    margin-bottom: 40px;
  }

  .page-promotions__overview-section,
  .page-promotions__why-choose-section,
  .page-promotions__how-to-claim-section,
  .page-promotions__faq-section,
  .page-promotions__final-cta-section {
    padding: 50px 0;
  }

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

  .page-promotions__promotion-grid,
  .page-promotions__benefits-grid,
  .page-promotions__steps-wrapper {
    grid-template-columns: 1fr;
    gap: 25px;
  }

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

  .page-promotions__promotion-card,
  .page-promotions__benefit-item,
  .page-promotions__step-item,
  .page-promotions__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-promotions__faq-answer {
    font-size: 0.9rem;
    padding: 15px 20px;
  }
}

/* Ensure all images and videos are responsive */
.page-promotions img {
  max-width: 100%;
  height: auto;
  display: block;
}
.page-promotions video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}
.page-promotions__video-section,
.page-promotions__video-container,
.page-promotions__video-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 768px) {
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-promotions video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .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-section {
    padding-top: 10px !important;
  }
  .page-promotions__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}