/* style/promotions.css */

:root {
  --primary-color: #F2C14E;
  --secondary-color: #FFD36B;
  --background-dark: #0A0A0A;
  --card-bg: #111111;
  --text-main: #FFF6D6;
  --border-color: #3A2A12;
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-promotions {
  font-family: Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--background-dark);
}

.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: 10px 0 60px 0; /* body handles header offset, small top padding for visual separation */
  overflow: hidden;
}

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

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7);
}

.page-promotions__hero-content {
  position: relative;
  z-index: 10;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -150px; /* Pull content up over the image, but not on top */
  background-color: var(--background-dark); /* Ensure text is readable on its own background */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-promotions__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -1px;
}

.page-promotions__description {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text-main);
  margin-bottom: 30px;
}

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

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

.page-promotions__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
}

.page-promotions__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

.page-promotions__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--background-dark);
  transform: translateY(-2px);
}

/* General Section Styling */
.page-promotions__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.3;
}

.page-promotions__text-block {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--text-main);
}

.page-promotions__introduction-section,
.page-promotions__maximize-section,
.page-promotions__conclusion-section,
.page-promotions__faq-section {
  background-color: var(--card-bg);
  padding: 80px 0;
}

.page-promotions__types-section,
.page-promotions__how-to-claim-section,
.page-promotions__terms-section,
.page-promotions__why-choose-section {
  padding: 80px 0;
  background-color: var(--background-dark);
}

/* Promo 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(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-promotions__card-title {
  font-size: 1.6rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  padding: 0 20px;
}

.page-promotions__card-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-main);
  padding: 0 20px;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-promotions__btn-small {
  padding: 10px 20px;
  font-size: 0.95rem;
  max-width: calc(100% - 40px); /* Adjust for padding */
  margin: 0 auto;
}

/* How to Claim Section */
.page-promotions__claim-steps {
  list-style: none;
  padding: 0;
  margin: 40px 0;
}

.page-promotions__claim-steps li {
  background-color: var(--card-bg);
  padding: 25px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-main);
  border-left: 5px solid var(--primary-color);
}

.page-promotions__claim-steps li strong {
  color: var(--secondary-color);
}

.page-promotions__claim-steps li a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-promotions__claim-steps li a:hover {
  color: var(--secondary-color);
}

/* Terms Section */
.page-promotions__terms-list {
  list-style: none;
  padding: 0;
  margin: 40px 0;
}

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

.page-promotions__terms-list li strong {
  color: var(--primary-color);
}

/* Maximize Section */
.page-promotions__tips-list {
  list-style: none;
  padding: 0;
  margin: 40px 0;
}

.page-promotions__tips-list li {
  background-color: var(--card-bg);
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-main);
  border-left: 4px solid var(--primary-color);
}

.page-promotions__tips-list li strong {
  color: var(--secondary-color);
}

/* Why Choose Section */
.page-promotions__benefits-list {
  list-style: none;
  padding: 0;
  margin: 40px 0;
}

.page-promotions__benefits-list li {
  background-color: var(--card-bg);
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-main);
  border-left: 4px solid var(--primary-color);
}

.page-promotions__benefits-list li strong {
  color: var(--secondary-color);
}

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

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

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: var(--card-bg);
  color: var(--primary-color);
  font-size: 1.2rem;
  font-weight: bold;
  border-bottom: 1px solid var(--border-color);
}

.page-promotions__faq-question h3 {
  margin: 0;
  color: inherit;
  font-size: inherit;
}

.page-promotions__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  color: var(--secondary-color);
  transition: transform 0.3s ease;
}

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

.page-promotions__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-main);
  background-color: var(--card-bg);
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px;
}

.page-promotions__faq-answer p {
  margin: 0 0 10px 0;
  font-size: 1rem;
  line-height: 1.6;
}

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

@media (max-width: 768px) {
  .page-promotions {
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-promotions__hero-section {
    padding-top: 10px !important; /* Body handles header offset */
    padding-bottom: 40px;
  }

  .page-promotions__hero-content {
    margin-top: -80px;
    padding: 25px;
    width: calc(100% - 30px) !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-promotions__main-title {
    font-size: 2.2rem;
  }

  .page-promotions__description {
    font-size: 1rem;
  }

  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 1rem;
  }

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

  .page-promotions__text-block {
    font-size: 1rem;
  }

  .page-promotions__introduction-section,
  .page-promotions__types-section,
  .page-promotions__how-to-claim-section,
  .page-promotions__terms-section,
  .page-promotions__maximize-section,
  .page-promotions__why-choose-section,
  .page-promotions__faq-section,
  .page-promotions__conclusion-section {
    padding: 40px 0;
  }

  .page-promotions__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-promotions__promo-card-image {
    height: 180px;
  }

  .page-promotions__card-title {
    font-size: 1.4rem;
  }

  .page-promotions__card-text {
    font-size: 0.95rem;
  }

  .page-promotions__claim-steps li,
  .page-promotions__terms-list li,
  .page-promotions__tips-list li,
  .page-promotions__benefits-list li {
    font-size: 1rem;
    padding: 20px;
  }

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

  .page-promotions__faq-toggle {
    font-size: 1.5rem;
  }

  .page-promotions__faq-answer {
    padding: 0 15px;
  }

  .page-promotions__faq-item.active .page-promotions__faq-answer {
    padding: 15px;
  }

  /* Ensure all images are responsive */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  /* Ensure all image containers are responsive */
  .page-promotions__hero-image-wrapper,
  .page-promotions__promo-card,
  .page-promotions__container {
    max-width: 100% !important;
    width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }
}