/* style/promotions.css */
/* body background is #000000 (dark), so main text color should be light */

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

.page-promotions {
  color: var(--page-promotions-light-text); /* Default light text for dark body background */
  background-color: var(--page-promotions-background-dark); /* Should be overridden by shared body background */
}

.page-promotions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  text-align: center;
  background-color: var(--page-promotions-background-dark);
  overflow: hidden;
}

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

.page-promotions__hero-content {
  z-index: 1;
  max-width: 900px;
  margin-top: 20px;
  color: var(--page-promotions-light-text);
}

.page-promotions__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--page-promotions-light-text);
  margin-bottom: 15px;
  /* No fixed large font-size, rely on weight, line-height */
}

.page-promotions__subtitle {
  font-size: 1.1em;
  line-height: 1.5;
  margin-bottom: 30px;
  color: var(--page-promotions-light-text);
}

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

.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-outline,
.page-promotions a[class*="button"],
.page-promotions a[class*="btn"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  text-align: center;
}

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

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

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

.page-promotions__btn-secondary:hover {
  background-color: var(--page-promotions-primary-color);
  color: var(--page-promotions-light-text);
}

.page-promotions__btn-outline {
  background-color: transparent;
  color: var(--page-promotions-primary-color);
  border: 1px solid var(--page-promotions-primary-color);
  padding: 10px 20px;
}

.page-promotions__btn-outline:hover {
  background-color: var(--page-promotions-primary-color);
  color: var(--page-promotions-light-text);
}

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

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

.page-promotions__section-title {
  font-size: 2.2em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
}

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

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

.page-promotions__text-block {
  font-size: 1.05em;
  line-height: 1.7;
  margin-bottom: 20px;
}

.page-promotions__highlight {
  color: var(--page-promotions-primary-color);
  font-weight: bold;
}

.page-promotions__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-promotions__promo-card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for dark background */
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--page-promotions-light-text);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-promotions__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

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

.page-promotions__card-description {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-promotions__how-to-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-promotions__list-item {
  background-color: var(--page-promotions-background-light);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  color: var(--page-promotions-dark-text);
}

.page-promotions__list-item a {
  color: var(--page-promotions-primary-color);
  text-decoration: underline;
}

.page-promotions__list-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--page-promotions-primary-color);
}

.page-promotions__terms-list {
  list-style-type: disc;
  padding-left: 20px;
  margin-top: 20px;
  line-height: 1.7;
}

.page-promotions__terms-list .page-promotions__list-item {
  background-color: transparent;
  border: none;
  padding: 0;
  margin-bottom: 10px;
  color: var(--page-promotions-light-text);
}

/* FAQ Styles */
.page-promotions__faq-list {
  margin-top: 30px;
}

.page-promotions__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for dark background */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--page-promotions-light-text);
}

.page-promotions__faq-item[open] {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-weight: bold;
  cursor: pointer;
  font-size: 1.1em;
  color: var(--page-promotions-light-text);
  list-style: none; /* Remove default marker for summary */
}

.page-promotions__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-promotions__faq-qtext {
  flex-grow: 1;
  color: var(--page-promotions-primary-color);
}

.page-promotions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--page-promotions-light-text);
}

.page-promotions__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  line-height: 1.6;
  color: var(--page-promotions-light-text);
}

.page-promotions__faq-answer a {
  color: var(--page-promotions-primary-color);
  text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-promotions__main-title {
    font-size: 2.5em;
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-promotions__main-title {
    font-size: 2em; /* Smaller font for mobile */
  }

  .page-promotions__subtitle {
    font-size: 1em;
  }

  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .page-promotions__btn-outline,
  .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__section {
    padding: 40px 15px;
  }

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

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

  .page-promotions__promo-grid {
    gap: 20px;
  }

  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-promotions__card-image {
    height: auto; /* Allow image to scale */
  }

  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promotions__video-section {
    padding-top: 10px !important;
  }

  .page-promotions__video-container,
  .page-promotions__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-promotions video,
  .page-promotions__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

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

  .page-promotions__faq-question,
  .page-promotions__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-promotions__list-item {
    padding: 20px 15px;
  }
}