/* style/promotions.css */

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

.page-promotions {
  background-color: var(--page-promotions-bg);
  color: var(--page-promotions-text-main);
  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;
  text-align: center;
  padding: 60px 0;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden;
  background-color: var(--page-promotions-bg);
}

.page-promotions__hero-image-wrapper {
  position: relative;
  width: 100%;
  max-height: 700px; /* Limit height for aesthetic */
  overflow: hidden;
  z-index: 0;
}

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

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

.page-promotions__main-title {
  color: var(--page-promotions-gold);
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 15px var(--page-promotions-glow);
}

.page-promotions__subtitle {
  color: var(--page-promotions-text-main);
  font-size: 1.15em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* General Section Styling */
.page-promotions__section {
  padding: 60px 0;
  background-color: var(--page-promotions-bg);
  color: var(--page-promotions-text-main);
}

.page-promotions__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--page-promotions-text-main);
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.3);
}

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

.page-promotions__text-block a, .page-promotions__subtitle a {
  color: var(--page-promotions-gold);
  text-decoration: underline;
}

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

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-promotions__btn-primary {
  background: var(--page-promotions-btn-gradient);
  color: var(--page-promotions-text-main);
  border: 2px solid transparent;
}

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

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

.page-promotions__btn-secondary:hover {
  background: var(--page-promotions-gold);
  color: var(--page-promotions-bg);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Card Section */
.page-promotions__card-section {
  background-color: var(--page-promotions-card-bg);
}

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

.page-promotions__card {
  background: var(--page-promotions-card-bg);
  border: 1px solid var(--page-promotions-border);
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-promotions__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
  display: block;
}

.page-promotions__card-title {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--page-promotions-text-main);
  margin-bottom: 15px;
}

.page-promotions__card-description {
  font-size: 1em;
  color: var(--page-promotions-text-secondary);
  line-height: 1.7;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-promotions__card-button {
  margin-top: auto;
  width: 100%;
}

/* How-to-Claim Section */
.page-promotions__how-to-claim {
  background-color: var(--page-promotions-bg);
}

.page-promotions__step-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-promotions__step-list .page-promotions__list-item {
  background: var(--page-promotions-card-bg);
  border: 1px solid var(--page-promotions-border);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-promotions__step-list .page-promotions__list-item:before {
  content: counter(step-counter);
  counter-increment: step-counter;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--page-promotions-gold);
  color: var(--page-promotions-bg);
  font-weight: 700;
  font-size: 1.2em;
  margin-bottom: 15px;
}

.page-promotions__list-title {
  font-size: 1.3em;
  font-weight: 700;
  color: var(--page-promotions-text-main);
  margin-bottom: 10px;
}

.page-promotions__list-description {
  font-size: 1em;
  color: var(--page-promotions-text-secondary);
  line-height: 1.7;
}

/* Terms & Conditions Section */
.page-promotions__terms-conditions {
  background-color: var(--page-promotions-deep-green);
}

.page-promotions__bullet-list {
  list-style: disc inside;
  padding-left: 20px;
  margin-top: 30px;
  text-align: left;
}

.page-promotions__bullet-list .page-promotions__list-item {
  margin-bottom: 10px;
  color: var(--page-promotions-text-secondary);
}

.page-promotions__bullet-list .page-promotions__list-item strong {
  color: var(--page-promotions-text-main);
}

/* Why Choose Section */
.page-promotions__why-choose {
  background-color: var(--page-promotions-bg);
}

.page-promotions__advantage-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  counter-reset: advantage-counter;
}

.page-promotions__advantage-list .page-promotions__list-item {
  background: var(--page-promotions-card-bg);
  border: 1px solid var(--page-promotions-border);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  text-align: center;
}

.page-promotions__advantage-list .page-promotions__list-item:before {
  content: counter(advantage-counter);
  counter-increment: advantage-counter;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--page-promotions-primary-color);
  color: var(--page-promotions-text-main);
  font-weight: 700;
  font-size: 1.3em;
  margin-bottom: 15px;
  box-shadow: 0 0 10px rgba(17, 168, 78, 0.5);
}

/* FAQ Section */
.page-promotions__faq-section {
  background-color: var(--page-promotions-card-bg);
}

.page-promotions__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__faq-item {
  background: var(--page-promotions-bg);
  border: 1px solid var(--page-promotions-border);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-promotions__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 1.15em;
  color: var(--page-promotions-text-main);
  background: var(--page-promotions-card-bg);
  transition: background-color 0.3s ease;
}

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

.page-promotions__faq-item summary:hover {
  background-color: var(--page-promotions-deep-green);
}

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

.page-promotions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--page-promotions-gold);
}

.page-promotions__faq-answer {
  padding: 0 25px 20px;
  color: var(--page-promotions-text-secondary);
  font-size: 1em;
  line-height: 1.7;
  text-align: left;
}

.page-promotions__faq-answer p {
  margin-top: 10px;
  margin-bottom: 0;
}

/* Bottom CTA Section */
.page-promotions__cta-bottom {
  background-color: var(--page-promotions-bg);
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__hero-content {
    margin-top: -100px;
    padding: 30px;
  }

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

  .page-promotions__subtitle {
    font-size: 1em;
  }

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

@media (max-width: 768px) {
  .page-promotions__hero-section {
    padding: 40px 0;
    padding-top: 10px !important; /* Ensure small top padding */
  }

  .page-promotions__hero-content {
    margin-top: -80px;
    padding: 25px;
    max-width: 95%;
  }

  .page-promotions__main-title {
    font-size: clamp(1.5em, 6vw, 2.5em);
  }

  .page-promotions__section {
    padding: 40px 0;
  }

  .page-promotions__section-title {
    font-size: 2em;
  }

  .page-promotions__text-block,
  .page-promotions__subtitle,
  .page-promotions__list-description,
  .page-promotions__card-description,
  .page-promotions__faq-answer {
    font-size: 0.95em;
  }

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

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

  /* Images responsiveness */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-promotions__hero-image-wrapper,
  .page-promotions__card-section,
  .page-promotions__how-to-claim,
  .page-promotions__terms-conditions,
  .page-promotions__why-choose,
  .page-promotions__faq-section,
  .page-promotions__cta-bottom {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-promotions__card-image {
    height: auto; /* Allow height to adjust on mobile */
  }

  .page-promotions__step-list,
  .page-promotions__advantage-list {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 480px) {
  .page-promotions__hero-content {
    margin-top: -60px;
    padding: 20px;
  }

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

  .page-promotions__subtitle {
    font-size: 0.9em;
  }

  .page-promotions__section-title {
    font-size: 1.8em;
  }

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