/* style/promotions.css */

:root {
  --color-primary: #11A84E;
  --color-secondary: #22C768;
  --color-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --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 {
  font-family: 'Arial', sans-serif;
  color: var(--color-text-main);
  background-color: var(--color-background); /* Dark background */
  line-height: 1.6;
}

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

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 60px; /* Space below content */
  overflow: hidden;
  padding-top: 10px; /* Small top padding for visual separation */
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  position: relative;
  z-index: 0;
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-promotions__hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 20px;
  max-width: 900px;
  background: rgba(8, 22, 15, 0.7); /* Semi-transparent background for readability */
  border-radius: 15px;
  margin-top: -100px; /* Overlap image slightly for visual effect */
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.page-promotions__main-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

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

/* Section Titles */
.page-promotions__section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--color-gold);
  text-align: center;
  margin-bottom: 40px;
  padding-top: 60px;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

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

/* General Section Styling */
.page-promotions__overview-section,
.page-promotions__how-to-claim-section,
.page-promotions__faq-section {
  background-color: var(--color-card-bg);
  padding: 80px 0;
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}

.page-promotions__featured-promotions,
.page-promotions__terms-section,
.page-promotions__cta-final-section {
  background-color: var(--color-background);
  padding: 80px 0;
}

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

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

.page-promotions__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-promotions__promo-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-promotions__promo-card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-promotions__promo-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 15px;
}

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

/* Steps List */
.page-promotions__steps-list {
  list-style: none;
  padding: 0;
  margin: 50px auto 0;
  max-width: 700px;
  text-align: left;
}

.page-promotions__step-item {
  background-color: rgba(17, 168, 78, 0.1);
  border: 1px solid var(--color-primary);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: var(--color-text-main);
  position: relative;
  padding-left: 60px;
}

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

.page-promotions__how-to-claim-section .page-promotions__cta-button {
  margin-top: 40px;
}

/* FAQ Section */
.page-promotions__faq-list {
  max-width: 800px;
  margin: 50px auto 0;
}

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

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-text-main);
  cursor: pointer;
  background-color: var(--color-card-bg);
  transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
  background-color: rgba(17, 168, 78, 0.15);
}

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

.page-promotions__faq-item[open] .page-promotions__faq-question {
  background-color: rgba(17, 168, 78, 0.2);
}

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

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

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

/* Buttons */
.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  background: var(--color-button-gradient);
  color: var(--color-text-main);
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(34, 199, 104, 0.4);
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(34, 199, 104, 0.6);
  filter: brightness(1.1);
}

.page-promotions__cta-button--hero {
  font-size: 1.3rem;
  padding: 18px 40px;
  margin-top: 40px;
}

.page-promotions__cta-button--large {
  font-size: 1.4rem;
  padding: 20px 45px;
  margin-top: 50px;
}

.page-promotions__cta-button--secondary {
  background: none;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  box-shadow: none;
}

.page-promotions__cta-button--secondary:hover {
  background-color: rgba(17, 168, 78, 0.1);
  box-shadow: none;
  transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-promotions__hero-content {
    margin-top: -80px;
    padding: 30px;
  }
  .page-promotions__promo-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .page-promotions__container {
    padding: 0 15px;
  }
  .page-promotions__hero-section {
    padding-bottom: 40px;
  }
  .page-promotions__hero-content {
    margin-top: -60px;
    padding: 25px 15px;
  }
  .page-promotions__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-promotions__hero-description {
    font-size: 1rem;
  }
  .page-promotions__cta-button--hero,
  .page-promotions__cta-button--large {
    font-size: 1.1rem;
    padding: 15px 30px;
    margin-top: 30px;
  }
  .page-promotions__section-title {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    padding-top: 40px;
  }
  .page-promotions__overview-section,
  .page-promotions__how-to-claim-section,
  .page-promotions__faq-section,
  .page-promotions__featured-promotions,
  .page-promotions__terms-section,
  .page-promotions__cta-final-section {
    padding: 50px 0;
  }
  .page-promotions__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-promotions__promo-card-image {
    height: 180px;
  }
  .page-promotions__promo-card-title {
    font-size: 1.3rem;
  }
  .page-promotions__step-item {
    font-size: 1rem;
    padding-left: 50px;
  }
  .page-promotions__step-item::before {
    width: 25px;
    height: 25px;
    font-size: 1rem;
    left: 15px;
  }
  .page-promotions__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }
  .page-promotions__faq-answer {
    padding: 10px 20px 15px;
  }

  /* Mobile image responsiveness */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__hero-image-wrapper,
  .page-promotions__promo-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-promotions__hero-image-wrapper {
    padding-left: 0;
    padding-right: 0;
  }
  .page-promotions__cta-button,
  .page-promotions__cta-button--hero,
  .page-promotions__cta-button--large,
  .page-promotions__cta-button--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;
  }
  .page-promotions__cta-final-section .page-promotions__cta-button {
    margin-top: 30px;
  }
  .page-promotions__cta-final-section .page-promotions__container {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-promotions__promo-card-content {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-promotions__hero-content {
    width: calc(100% - 30px) !important; /* Adjust for container padding */
  }
}

/* Contrast Fixes */
.page-promotions__dark-bg {
  color: var(--color-text-main); /* Deep green background, light text */
  background: var(--color-card-bg);
}

.page-promotions__light-bg {
  color: #333333; /* For elements that might need a lighter background for contrast */
  background: #ffffff;
}

.page-promotions__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}