/* style/promotions-terms.css */

/* Base styles for the page content */
.page-promotions-terms {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #333333); /* Default text color, assuming light body bg */
  background: var(--page-bg, #F5F7FA); /* Default page background */
  padding-bottom: 40px; /* Add some padding at the bottom */
}

/* Hero Section */
.page-promotions-terms__hero-section {
  position: relative;
  background-color: var(--main-color, #E53935);
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 40px;
  overflow: hidden;
}

.page-promotions-terms__hero-image-wrapper {
  max-width: 100%;
  overflow: hidden;
  margin-bottom: 30px; /* Space between image and content */
}

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

.page-promotions-terms__hero-content {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  padding: 0 20px;
  color: #ffffff;
}

.page-promotions-terms__main-title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  max-width: 100%;
}

.page-promotions-terms__intro-text {
  font-size: 18px;
  margin-bottom: 30px;
}

/* CTA Buttons in Hero */
.page-promotions-terms__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-promotions-terms__btn-primary,
.page-promotions-terms__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
  box-sizing: border-box; /* Include padding in width */
  max-width: 100%; /* Ensure responsiveness */
}

.page-promotions-terms__btn-primary {
  background: linear-gradient(180deg, var(--aux-color, #FF5A4F) 0%, var(--main-color, #E53935) 100%);
  color: #ffffff;
  border: none;
}

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

.page-promotions-terms__btn-secondary {
  background: #ffffff;
  color: var(--main-color, #E53935);
  border: 2px solid var(--main-color, #E53935);
}

.page-promotions-terms__btn-secondary:hover {
  background: var(--main-color, #E53935);
  color: #ffffff;
}

/* Content Sections */
.page-promotions-terms__content-section {
  padding: 60px 0;
}

.page-promotions-terms__container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-promotions-terms__section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-main, #333333);
  margin-bottom: 30px;
  text-align: center;
}

.page-promotions-terms__section-description {
  font-size: 16px;
  margin-bottom: 40px;
  text-align: center;
  color: var(--text-main, #333333);
}

.page-promotions-terms__sub-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--main-color, #E53935);
  margin-top: 40px;
  margin-bottom: 15px;
}

.page-promotions-terms__list {
  list-style: disc;
  padding-left: 25px;
  margin-bottom: 20px;
  color: var(--text-main, #333333);
}

.page-promotions-terms__list-item {
  margin-bottom: 10px;
  font-size: 16px;
}

.page-promotions-terms__image-block {
  margin: 40px auto;
  max-width: 800px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-promotions-terms__content-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Background colors for sections */
.page-promotions-terms__light-bg {
  background: var(--page-bg, #F5F7FA);
  color: var(--text-main, #333333);
}

.page-promotions-terms__dark-bg {
  background: var(--main-color, #E53935);
  color: #ffffff;
}

.page-promotions-terms__dark-bg .page-promotions-terms__section-title,
.page-promotions-terms__dark-bg .page-promotions-terms__sub-title,
.page-promotions-terms__dark-bg .page-promotions-terms__section-description,
.page-promotions-terms__dark-bg .page-promotions-terms__list-item {
  color: #ffffff;
}

/* FAQ Section */
.page-promotions-terms__faq-section {
  padding: 60px 0;
  background: var(--page-bg, #F5F7FA);
}

.page-promotions-terms__faq-list {
  margin-top: 40px;
}

details.page-promotions-terms__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color, #E0E0E0);
  overflow: hidden;
  background: var(--card-bg, #FFFFFF);
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
details.page-promotions-terms__faq-item summary.page-promotions-terms__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-promotions-terms__faq-item summary.page-promotions-terms__faq-question::-webkit-details-marker {
  display: none;
}
details.page-promotions-terms__faq-item summary.page-promotions-terms__faq-question:hover {
  background: #f8f8f8;
}
.page-promotions-terms__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main, #333333);
}
.page-promotions-terms__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--main-color, #E53935);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-promotions-terms__faq-item .page-promotions-terms__faq-answer {
  padding: 0 25px 25px;
  background: #fcfcfc;
  border-radius: 0 0 8px 8px;
  font-size: 16px;
  color: var(--text-main, #333333);
}
details.page-promotions-terms__faq-item .page-promotions-terms__faq-answer p {
  margin: 0;
}

/* CTA Banner Section */
.page-promotions-terms__cta-banner {
  padding: 80px 0;
  background-color: var(--main-color, #E53935);
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-promotions-terms__cta-banner-inner {
  position: relative;
  z-index: 2; /* Ensure text and buttons are above image */
}

.page-promotions-terms__cta-text {
  margin-bottom: 40px;
}

.page-promotions-terms__cta-title {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-promotions-terms__cta-description {
  font-size: 20px;
  color: #f0f0f0;
}

.page-promotions-terms__cta-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.15; /* Subtle background image */
}

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

/* --- Responsive Styles --- */

/* Tablet and smaller desktops */
@media (max-width: 1024px) {
  .page-promotions-terms__main-title {
    font-size: 38px;
  }
  .page-promotions-terms__intro-text {
    font-size: 17px;
  }
  .page-promotions-terms__section-title {
    font-size: 28px;
  }
  .page-promotions-terms__sub-title {
    font-size: 22px;
  }
  .page-promotions-terms__cta-title {
    font-size: 34px;
  }
  .page-promotions-terms__cta-description {
    font-size: 18px;
  }
  .page-promotions-terms__btn-primary,
  .page-promotions-terms__btn-secondary {
    padding: 12px 25px;
    font-size: 16px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  /* Hero Section */
  .page-promotions-terms__hero-section {
    padding-top: 10px !important; /* Small top padding, relying on body for header offset */
    padding-bottom: 30px;
  }
  .page-promotions-terms__hero-content {
    padding: 0 15px;
  }
  .page-promotions-terms__main-title {
    font-size: 28px;
    margin-bottom: 15px;
  }
  .page-promotions-terms__intro-text {
    font-size: 15px;
    margin-bottom: 20px;
  }
  .page-promotions-terms__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-promotions-terms__btn-primary,
  .page-promotions-terms__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  /* Content Sections */
  .page-promotions-terms__content-section {
    padding: 40px 0;
  }
  .page-promotions-terms__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-promotions-terms__section-title {
    font-size: 24px;
    margin-bottom: 20px;
  }
  .page-promotions-terms__section-description {
    font-size: 14px;
    margin-bottom: 25px;
  }
  .page-promotions-terms__sub-title {
    font-size: 20px;
    margin-top: 30px;
  }
  .page-promotions-terms__list {
    padding-left: 20px;
  }
  .page-promotions-terms__list-item {
    font-size: 15px;
  }
  .page-promotions-terms__image-block {
    margin: 30px auto;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-promotions-terms__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* FAQ Section */
  .page-promotions-terms__faq-section {
    padding: 40px 0;
  }
  details.page-promotions-terms__faq-item summary.page-promotions-terms__faq-question {
    padding: 15px 20px;
  }
  .page-promotions-terms__faq-qtext {
    font-size: 16px;
  }
  .page-promotions-terms__faq-toggle {
    font-size: 24px;
    width: 24px;
    margin-left: 10px;
  }
  details.page-promotions-terms__faq-item .page-promotions-terms__faq-answer {
    padding: 0 20px 20px;
    font-size: 15px;
  }

  /* CTA Banner Section */
  .page-promotions-terms__cta-banner {
    padding: 50px 0;
  }
  .page-promotions-terms__cta-text {
    margin-bottom: 30px;
  }
  .page-promotions-terms__cta-title {
    font-size: 26px;
    margin-bottom: 15px;
  }
  .page-promotions-terms__cta-description {
    font-size: 16px;
  }
  .page-promotions-terms__cta-banner-inner .page-promotions-terms__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
}

/* Global image responsiveness for content area */
.page-promotions-terms img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Ensure all containers are responsive */
.page-promotions-terms__section,
.page-promotions-terms__card,
.page-promotions-terms__container,
.page-promotions-terms__image-block,
.page-promotions-terms__cta-banner-inner {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden; /* To prevent child elements from overflowing */
}

/* Mobile specific overrides for containers and images */
@media (max-width: 768px) {
  .page-promotions-terms img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-promotions-terms__section,
  .page-promotions-terms__card,
  .page-promotions-terms__container,
  .page-promotions-terms__image-block,
  .page-promotions-terms__cta-banner-inner {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}