/* style/promotions.css */
:root {
  --color-primary: #11A84E;
  --color-secondary: #22C768;
  --color-text-main: #F2FFF6;
  --color-text-secondary: #A7D9B8;
  --color-background: #08160F;
  --color-card-bg: #11271B;
  --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%);
}

.page-promotions {
  font-family: 'Arial', sans-serif;
  color: var(--color-text-main); /* Default text color for the page */
  background-color: var(--color-background); /* Body background from shared.css, this is for sections */
}

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

.page-promotions__section-title {
  font-size: clamp(28px, 4vw, 48px);
  color: var(--color-text-main);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.2;
}

.page-promotions__text-block {
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
  text-align: center;
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding-top: 10px; /* Small top padding, body padding-top handles header offset */
  padding-bottom: 60px;
  background-color: var(--color-deep-green); /* Fallback if image fails */
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: relative;
  z-index: 1;
  max-height: 700px; /* Limit height for aesthetic */
  margin-bottom: 40px;
}

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

.page-promotions__main-title {
  font-size: clamp(36px, 5vw, 64px);
  color: var(--color-gold);
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.1;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-promotions__hero-description {
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--color-text-main);
  margin-bottom: 40px;
  line-height: 1.5;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 200px;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-promotions__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
  transform: translateY(-2px);
}

.page-promotions__btn-secondary {
  background-color: transparent;
  color: var(--color-glow);
  border: 2px solid var(--color-glow);
}

.page-promotions__btn-secondary:hover {
  background-color: rgba(87, 227, 141, 0.1);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Intro Section */
.page-promotions__intro-section {
  padding: 80px 0;
  background-color: var(--color-card-bg);
  text-align: center;
}

.page-promotions__intro-section .page-promotions__text-block {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Promotion Types Section */
.page-promotions__types-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--color-background);
}

.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: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

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

.page-promotions__card-title {
  font-size: 24px;
  color: var(--color-text-main);
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.page-promotions__card-description {
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1;
}

/* How To Claim Section */
.page-promotions__how-to-claim-section {
  padding: 80px 0;
  background-color: var(--color-deep-green);
  text-align: center;
}

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

.page-promotions__step-card {
  background-color: var(--color-card-bg);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-promotions__step-number {
  width: 60px;
  height: 60px;
  background-color: var(--color-gold);
  color: var(--color-background);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 20px;
  box-shadow: 0 0 15px rgba(242, 193, 78, 0.6);
}

.page-promotions__step-title {
  font-size: 22px;
  color: var(--color-text-main);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-promotions__step-description {
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 25px;
}

.page-promotions__guide-image {
  width: 100%;
  height: auto;
  display: block;
  max-width: 800px;
  margin: 50px auto 0 auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Terms Section */
.page-promotions__terms-section {
  padding: 80px 0;
  background-color: var(--color-background);
  text-align: center;
}

.page-promotions__terms-list {
  list-style: none;
  padding: 0;
  margin: 50px auto;
  max-width: 900px;
  text-align: left;
}

.page-promotions__terms-list li {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-divider);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  color: var(--color-text-secondary);
  font-size: 17px;
  line-height: 1.6;
}

.page-promotions__terms-list li strong {
  color: var(--color-text-main);
  font-size: 18px;
}

/* Why Choose Section */
.page-promotions__why-choose-section {
  padding: 80px 0;
  background-color: var(--color-card-bg);
  text-align: center;
}

.page-promotions__benefits-list {
  list-style: none;
  padding: 0;
  margin: 50px auto;
  max-width: 900px;
  text-align: left;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.page-promotions__benefits-list li {
  background-color: var(--color-deep-green);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 20px;
  color: var(--color-text-secondary);
  font-size: 17px;
  line-height: 1.6;
  position: relative;
  padding-left: 50px;
}

.page-promotions__benefits-list li::before {
  content: '✔';
  color: var(--color-glow);
  font-size: 24px;
  position: absolute;
  left: 15px;
  top: 15px;
  line-height: 1;
}

.page-promotions__benefits-list li strong {
  color: var(--color-text-main);
  font-size: 18px;
}

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

.page-promotions__faq-item {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 20px;
  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;
}

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

.page-promotions__faq-toggle {
  font-size: 28px;
  line-height: 1;
  margin-left: 15px;
  color: var(--color-glow);
  user-select: none; /* Prevent text selection */
}

.page-promotions__faq-item[open] .page-promotions__faq-question {
  background-color: var(--color-divider);
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
  content: '−';
  transform: rotate(0deg); /* Reset rotation */
}

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

.page-promotions__faq-item summary {
  list-style: none;
}

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

/* CTA Bottom Section */
.page-promotions__cta-bottom-section {
  padding: 80px 0;
  background-color: var(--color-deep-green);
  text-align: center;
}

.page-promotions__cta-bottom-section .page-promotions__text-block {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__hero-image {
    max-height: 600px;
  }
  .page-promotions__promo-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-promotions__steps-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
  .page-promotions__section-title {
    font-size: clamp(24px, 3.5vw, 40px);
  }
  .page-promotions__main-title {
    font-size: clamp(32px, 4.5vw, 56px);
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-image {
    max-height: 400px;
    margin-bottom: 30px;
  }
  .page-promotions__hero-description {
    font-size: clamp(16px, 2.2vw, 20px);
    margin-bottom: 30px;
  }
  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 350px;
  }
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
  }

  .page-promotions__container {
    padding: 0 15px;
  }
  .page-promotions__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-promotions__text-block {
    font-size: 16px;
  }
  .page-promotions__intro-section,
  .page-promotions__types-section,
  .page-promotions__how-to-claim-section,
  .page-promotions__terms-section,
  .page-promotions__why-choose-section,
  .page-promotions__faq-section,
  .page-promotions__cta-bottom-section {
    padding: 50px 0;
  }
  .page-promotions__promo-grid,
  .page-promotions__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }
  .page-promotions__card-image {
    height: 180px;
  }
  .page-promotions__card-title {
    font-size: 20px;
  }
  .page-promotions__step-number {
    width: 50px;
    height: 50px;
    font-size: 28px;
  }
  .page-promotions__step-title {
    font-size: 20px;
  }
  .page-promotions__terms-list,
  .page-promotions__benefits-list {
    margin-top: 30px;
  }
  .page-promotions__terms-list li,
  .page-promotions__benefits-list li {
    padding: 15px;
    font-size: 15px;
  }
  .page-promotions__faq-question {
    font-size: 18px;
    padding: 15px 20px;
  }
  .page-promotions__faq-answer {
    font-size: 15px;
    padding: 15px 20px;
  }

  /* 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-section,
  .page-promotions__intro-section,
  .page-promotions__types-section,
  .page-promotions__how-to-claim-section,
  .page-promotions__terms-section,
  .page-promotions__why-choose-section,
  .page-promotions__faq-section,
  .page-promotions__cta-bottom-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-promotions__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-promotions__main-title {
    font-size: clamp(28px, 6vw, 40px);
  }
  .page-promotions__hero-description {
    font-size: clamp(15px, 3vw, 18px);
  }
  .page-promotions__hero-section {
    padding-bottom: 40px;
  }
  .page-promotions__section-title {
    font-size: 24px;
  }
  .page-promotions__faq-question {
    font-size: 16px;
    padding: 12px 15px;
  }
  .page-promotions__faq-toggle {
    font-size: 24px;
  }
  .page-promotions__faq-answer {
    font-size: 14px;
    padding: 12px 15px;
  }
}