/* style/promotions.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --login-color: #EA7C07;
  --text-color-dark: #333333;
  --text-color-light: #FFFFFF;
  --background-light: #FFFFFF;
  --background-dark: #26A9E0;
  --border-color: #e0e0e0;
}

.page-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark);
  background-color: var(--background-light); /* Assuming body background is light */
}

.page-promotions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 20px 60px 20px; /* Small top padding, larger bottom for content */
  text-align: center;
  overflow: hidden;
}

.page-promotions__dark-bg {
  background-color: var(--background-dark);
  color: var(--text-color-light);
}

.page-promotions__light-bg {
  background-color: var(--background-light);
  color: var(--text-color-dark);
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  position: relative;
  margin-bottom: 20px; /* Space between image and text */
}

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

.page-promotions__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 15px;
  position: relative; /* Ensure content is above any potential background */
  z-index: 1; /* Ensure text is not under image if image has higher z-index */
}

.page-promotions__main-title {
  font-size: clamp(2em, 4vw, 3em); /* Responsive font size */
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-color-light);
}

.page-promotions__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--text-color-light);
}

.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__btn-primary {
  background-color: var(--login-color);
  color: var(--text-color-light);
  border: 2px solid var(--login-color);
}

.page-promotions__btn-primary:hover {
  background-color: darken(var(--login-color), 10%);
  border-color: darken(var(--login-color), 10%);
}

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

.page-promotions__btn-secondary:hover {
  background-color: lighten(var(--primary-color), 40%);
}

.page-promotions__section {
  padding: 60px 20px;
}

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

.page-promotions__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
}

/* Introduction */
.page-promotions__introduction p {
  font-size: 1.05em;
  margin-bottom: 15px;
  text-align: justify;
}

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

.page-promotions__card {
  background-color: var(--background-light);
  color: var(--text-color-dark);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border-color);
}

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

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

.page-promotions__card-text {
  font-size: 0.95em;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-promotions__card-button {
  width: 100%;
  padding: 12px 20px;
  font-size: 0.9em;
}

/* Guide Steps */
.page-promotions__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-promotions__step-item {
  background-color: var(--background-light);
  color: var(--text-color-dark);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  padding: 30px;
  text-align: center;
  border: 1px solid var(--border-color);
}

.page-promotions__step-title {
  font-size: 1.8em;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-promotions__step-item p {
  font-size: 1em;
  margin-bottom: 25px;
}

.page-promotions__step-button {
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-promotions__guide-text {
  text-align: center;
  font-size: 1.1em;
  margin-top: 20px;
  margin-bottom: 40px;
}

/* Terms and Conditions */
.page-promotions__terms-conditions p {
  font-size: 1.05em;
  margin-bottom: 15px;
  text-align: justify;
  color: var(--text-color-light);
}

.page-promotions__link-text {
  color: var(--secondary-color);
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.3s ease;
  display: inline-block;
  margin-top: 10px;
}

.page-promotions__link-text:hover {
  color: var(--login-color);
}

/* Why Choose Features */
.page-promotions__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-promotions__feature-item {
  background-color: var(--background-light);
  color: var(--text-color-dark);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: center;
  border: 1px solid var(--border-color);
}

.page-promotions__feature-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-promotions__feature-item p {
  font-size: 0.95em;
}

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

.page-promotions__faq-item {
  background-color: var(--secondary-color);
  color: var(--text-color-dark);
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  background-color: var(--background-light);
  color: var(--primary-color);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

.page-promotions__faq-question:hover {
  background-color: #f0f0f0;
}

.page-promotions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
}

.page-promotions__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  color: var(--text-color-dark);
  background-color: #fdfdfd;
  border-top: 1px solid var(--border-color);
}

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

/* Conclusion */
.page-promotions__conclusion p {
  font-size: 1.05em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-promotions__conclusion .page-promotions__cta-button {
  margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__hero-image {
    max-height: 400px;
  }
  .page-promotions__main-title {
    font-size: clamp(1.8em, 5vw, 2.5em);
  }
  .page-promotions__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-section {
    padding: 10px 15px 40px 15px;
  }
  .page-promotions__hero-image {
    max-height: 300px;
  }
  .page-promotions__main-title {
    font-size: clamp(1.5em, 6vw, 2.2em);
  }
  .page-promotions__description {
    font-size: 1em;
  }
  .page-promotions__cta-button,
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .page-promotions a[class*="button"],
  .page-promotions a[class*="btn"] {
    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;
    margin-bottom: 10px; /* Space between stacked buttons */
  }

  .page-promotions__cta-buttons,
  .page-promotions__button-group,
  .page-promotions__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px; /* Ensure spacing if multiple buttons */
    flex-direction: column; /* Stack buttons vertically */
  }

  .page-promotions__section {
    padding: 40px 15px;
  }
  .page-promotions__container {
    padding: 0 10px;
  }
  .page-promotions__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .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__grid,
  .page-promotions__steps,
  .page-promotions__features-grid,
  .page-promotions__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-promotions__card-image {
    height: auto; /* Allow auto height for mobile cards */
  }
  .page-promotions__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-promotions__faq-answer {
    padding: 10px 20px 15px;
  }
}

@media (max-width: 480px) {
  .page-promotions__hero-image {
    max-height: 200px;
  }
  .page-promotions__main-title {
    font-size: clamp(1.2em, 7vw, 1.8em);
  }
  .page-promotions__description {
    font-size: 0.9em;
  }
  .page-promotions__section-title {
    font-size: 1.5em;
  }
  .page-promotions__card-title {
    font-size: 1.3em;
  }
  .page-promotions__step-title {
    font-size: 1.5em;
  }
}