/* style/promotions.css */

/* Base Styles */
.page-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background-color: #FFFFFF; /* Body background is light */
}

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

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

.page-promotions__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

.page-promotions__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-promotions__dark-section {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-promotions__section-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-promotions__section-title--white {
  color: #ffffff;
}

.page-promotions__text-block {
  font-size: 16px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-promotions__text-block--white {
  color: #ffffff;
}

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
}

.page-promotions__btn-primary {
  background-color: #EA7C07; /* Login color for primary action */
  color: #FFFFFF;
  border: 2px solid #EA7C07;
}

.page-promotions__btn-primary:hover {
  background-color: #D46B00;
  border-color: #D46B00;
}

.page-promotions__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-promotions__btn-secondary:hover {
  background-color: #26A9E0;
  color: #FFFFFF;
}

.page-promotions__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-promotions__cta-buttons--center {
  text-align: center;
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* body handles top padding, use small decorative padding-top */
  overflow: hidden;
  min-height: 500px;
}

.page-promotions__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

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

.page-promotions__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  padding: 20px;
  box-sizing: border-box;
  background-color: rgba(0, 0, 0, 0.4); /* Dark overlay for readability */
  border-radius: 10px;
}

.page-promotions__main-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  color: #FFFFFF;
  margin-bottom: 20px;
  line-height: 1.1;
}

.page-promotions__intro-description {
  font-size: 18px;
  color: #f0f0f0;
  margin-bottom: 30px;
}

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

.page-promotions__feature-item {
  text-align: center;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.page-promotions__feature-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-promotions__feature-title {
  font-size: 22px;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 15px;
}

/* Promo Grid */
.page-promotions__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-promotions__promo-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.page-promotions__promo-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-promotions__promo-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-promotions__promo-title {
  font-size: 24px;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-promotions__promo-content p {
  font-size: 16px;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
  text-align: left;
}

.page-promotions__promo-card .page-promotions__btn-secondary {
  width: 100%;
}

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

.page-promotions__step-item {
  position: relative;
  padding: 30px 20px 20px 20px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.page-promotions__step-item::before {
  counter-increment: step-counter;
  content: "0" counter(step-counter);
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #26A9E0;
  color: #FFFFFF;
  font-size: 24px;
  font-weight: 700;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 4px solid #FFFFFF;
}

.page-promotions__step-title {
  font-size: 20px;
  font-weight: 700;
  color: #26A9E0;
  margin-top: 20px;
  margin-bottom: 15px;
}

.page-promotions__step-item p {
  font-size: 16px;
  color: #555555;
}

/* Terms List */
.page-promotions__terms-list {
  list-style: disc;
  padding-left: 20px;
  max-width: 800px;
  margin: 30px auto;
  font-size: 16px;
  text-align: left;
}

.page-promotions__terms-list li {
  margin-bottom: 10px;
  color: #333333;
}

.page-promotions__terms-list--white li {
  color: #ffffff;
}

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

.page-promotions__faq-item {
  background-color: #f9f9f9;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-promotions__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 18px;
  color: #26A9E0;
  background-color: #FFFFFF;
  border-bottom: 1px solid #eee;
}

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

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

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

.page-promotions__faq-toggle {
  margin-left: 15px;
  font-size: 24px;
  line-height: 1;
  color: #EA7C07;
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
  content: "−";
}

.page-promotions__faq-answer {
  padding: 15px 20px;
  font-size: 16px;
  color: #555555;
  background-color: #f9f9f9;
}

/* Final CTA */
.page-promotions__cta-final {
  text-align: center;
  padding: 80px 0;
}

.page-promotions__cta-content {
  max-width: 900px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-promotions__main-title {
    font-size: clamp(28px, 4.5vw, 48px);
  }
  .page-promotions__intro-description {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  .page-promotions__section {
    padding: 40px 0;
  }

  .page-promotions__container {
    padding: 0 15px;
  }

  .page-promotions__section-title {
    font-size: clamp(24px, 6vw, 36px);
    margin-bottom: 30px;
  }

  .page-promotions__text-block {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .page-promotions__hero-section {
    padding-top: 10px !important; /* body handles --header-offset, this is decorative */
    min-height: 400px;
  }

  .page-promotions__hero-content {
    padding: 15px;
  }

  .page-promotions__main-title {
    font-size: clamp(26px, 7vw, 38px);
    margin-bottom: 15px;
  }

  .page-promotions__intro-description {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
    padding: 0 15px;
  }

  .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;
  }

  .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;
  }

  .page-promotions__features-grid,
  .page-promotions__promo-grid,
  .page-promotions__steps-list {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

  .page-promotions__feature-image,
  .page-promotions__promo-image {
    height: 200px;
  }

  .page-promotions__promo-title {
    font-size: 20px;
  }

  .page-promotions__promo-content p {
    font-size: 15px;
  }

  .page-promotions__step-title {
    font-size: 18px;
  }

  .page-promotions__step-item p {
    font-size: 15px;
  }

  .page-promotions__terms-list {
    font-size: 15px;
    padding-left: 15px;
  }

  .page-promotions__faq-item summary {
    font-size: 16px;
    padding: 15px;
  }

  .page-promotions__faq-answer {
    font-size: 15px;
    padding: 10px 15px;
  }

  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__hero-section,
  .page-promotions__promo-card,
  .page-promotions__feature-item,
  .page-promotions__step-item,
  .page-promotions__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-promotions__hero-image-wrapper {
    padding-left: 0;
    padding-right: 0;
  }
  
  .page-promotions__hero-content {
    width: calc(100% - 30px); /* Adjust for padding on .page-promotions__hero-section */
  }
}

@media (max-width: 480px) {
  .page-promotions__hero-section {
    min-height: 350px;
  }
  .page-promotions__main-title {
    font-size: clamp(24px, 8vw, 32px);
  }
  .page-promotions__intro-description {
    font-size: 14px;
  }
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    padding: 10px 20px;
    font-size: 15px;
  }
  .page-promotions__faq-item summary {
    font-size: 15px;
  }
  .page-promotions__faq-toggle {
    font-size: 20px;
  }
}