/* style/promo.css */

/* Custom Colors from provided scheme */
:root {
  --jili168-primary: #F2C14E;
  --jili168-secondary: #FFD36B;
  --jili168-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  --jili168-card-bg: #111111;
  --jili168-background: #0A0A0A;
  --jili168-text-main: #FFF6D6;
  --jili168-border: #3A2A12;
  --jili168-glow: #FFD36B;
}

.page-promo {
  background-color: var(--jili168-background);
  color: var(--jili168-text-main);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-promo__section {
  padding: 60px 0;
}

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

.page-promo__section-title {
  font-size: clamp(28px, 4vw, 48px);
  color: var(--jili168-primary);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-promo__section-description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: var(--jili168-text-main);
}

/* Hero Section */
.page-promo__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.page-promo__hero-image-wrapper {
  width: 100%;
  max-height: 70vh; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
}

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

.page-promo__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}

.page-promo__main-title {
  font-size: clamp(32px, 5vw, 56px);
  color: var(--jili168-secondary);
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.1;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

.page-promo__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  color: var(--jili168-text-main);
}

.page-promo__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-promo__btn-primary,
.page-promo__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-promo__btn-primary {
  background: var(--jili168-button-gradient);
  color: var(--jili168-text-main);
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-promo__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

.page-promo__btn-secondary {
  background: var(--jili168-background);
  color: var(--jili168-secondary);
  border: 2px solid var(--jili168-secondary);
  box-shadow: 0 4px 15px rgba(255, 211, 107, 0.2);
}

.page-promo__btn-secondary:hover {
  transform: translateY(-3px);
  background: var(--jili168-secondary);
  color: var(--jili168-background);
  box-shadow: 0 6px 20px rgba(255, 211, 107, 0.4);
}

/* Promo Grid */
.page-promo__promo-grid,
.page-promo__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-promo__card {
  background-color: var(--jili168-card-bg);
  border: 1px solid var(--jili168-border);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

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

.page-promo__card-image {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-promo__card-title {
  font-size: 24px;
  color: var(--jili168-primary);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-promo__card-text {
  font-size: 16px;
  color: var(--jili168-text-main);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-promo__card-button {
  width: 100%;
  margin-top: auto; /* Push button to bottom */
}

/* How to Claim Steps */
.page-promo__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-promo__step-item {
  background-color: var(--jili168-card-bg);
  border: 1px solid var(--jili168-border);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-promo__step-number {
  font-size: 48px;
  font-weight: bold;
  color: var(--jili168-secondary);
  margin-bottom: 15px;
  line-height: 1;
}

.page-promo__step-title {
  font-size: 22px;
  color: var(--jili168-primary);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-promo__step-text {
  font-size: 16px;
  color: var(--jili168-text-main);
  margin-bottom: 20px;
  flex-grow: 1;
}

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

/* Terms & Conditions Info Grid */
.page-promo__info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

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

.page-promo__info-title {
  font-size: 22px;
  color: var(--jili168-primary);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-promo__info-text {
  font-size: 16px;
  color: var(--jili168-text-main);
}

.page-promo__button-wrapper {
  text-align: center;
  margin-top: 50px;
}

/* Why Jili168 Features */
.page-promo__feature-card {
  text-align: center;
}

.page-promo__feature-image {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
}

.page-promo__feature-title {
  font-size: 24px;
  color: var(--jili168-primary);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-promo__feature-text {
  font-size: 16px;
  color: var(--jili168-text-main);
  margin-bottom: 20px;
}

.page-promo__btn-text {
  display: inline-block;
  color: var(--jili168-secondary);
  text-decoration: none;
  font-weight: bold;
  margin-top: 10px;
  transition: color 0.3s ease;
}

.page-promo__btn-text:hover {
  color: var(--jili168-primary);
  text-decoration: underline;
}

/* FAQ Section */
.page-promo__faq-list {
  margin-top: 40px;
}

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

.page-promo__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  cursor: pointer;
  background-color: var(--jili168-card-bg);
  color: var(--jili168-primary);
  font-size: 20px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-promo__faq-question:hover {
  background-color: #1a1a1a;
}

.page-promo__faq-toggle {
  font-size: 28px;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--jili168-secondary);
}

.page-promo__faq-item.active .page-promo__faq-toggle {
  transform: rotate(45deg);
}

.page-promo__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 30px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #1a1a1a; /* Slightly darker for answer content */
  color: var(--jili168-text-main);
  font-size: 16px;
}

.page-promo__faq-item.active .page-promo__faq-answer {
  max-height: 1000px !important; /* Use !important to ensure it overrides */
  padding: 20px 30px;
}

.page-promo__faq-answer p {
  margin: 0;
  padding-bottom: 10px; /* Add some spacing if multiple paragraphs */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promo__hero-section {
    padding-bottom: 40px;
  }
  .page-promo__hero-image-wrapper {
    margin-bottom: 30px;
  }
  .page-promo__section {
    padding: 40px 0;
  }
  .page-promo__section-description {
    margin-bottom: 30px;
  }
  .page-promo__promo-grid,
  .page-promo__steps-grid,
  .page-promo__info-grid,
  .page-promo__features-grid {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .page-promo__main-title {
    font-size: clamp(28px, 8vw, 40px);
  }
  .page-promo__hero-description {
    font-size: 18px;
  }
  .page-promo__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-promo__btn-primary,
  .page-promo__btn-secondary {
    width: 100%;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
  }

  .page-promo__section-title {
    font-size: clamp(24px, 6vw, 36px);
  }
  .page-promo__section-description {
    font-size: 16px;
    margin-bottom: 25px;
  }
  .page-promo__card-title,
  .page-promo__step-title,
  .page-promo__info-title,
  .page-promo__feature-title,
  .page-promo__faq-question h3 {
    font-size: 20px;
  }
  .page-promo__card-text,
  .page-promo__step-text,
  .page-promo__info-text,
  .page-promo__feature-text,
  .page-promo__faq-answer {
    font-size: 15px;
  }

  /* Mobile image responsiveness */
  .page-promo img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-promo__section,
  .page-promo__card,
  .page-promo__container,
  .page-promo__promo-item,
  .page-promo__step-item,
  .page-promo__info-card,
  .page-promo__feature-card,
  .page-promo__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-promo__hero-section {
    padding-top: 10px !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-promo__faq-question,
  .page-promo__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-promo__hero-section {
    padding-bottom: 30px;
  }
  .page-promo__hero-image-wrapper {
    margin-bottom: 20px;
  }
  .page-promo__section {
    padding: 30px 0;
  }
  .page-promo__section-description {
    margin-bottom: 20px;
  }
  .page-promo__card-image {
    max-height: 180px;
  }
  .page-promo__step-number {
    font-size: 40px;
  }
}