/* style/promotions.css */
/* Base styles for the promotions page */
.page-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--background-color, #ffffff); /* Inherit from shared or default to white */
}

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

.page-promotions__container--center {
  text-align: center;
}

.page-promotions__section {
  padding: 80px 0;
  text-align: center;
}

.page-promotions__dark-bg {
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff; /* White text for dark background */
}

.page-promotions__light-bg {
  background-color: #ffffff; /* White background */
  color: #333333; /* Dark text for light background */
}

.page-promotions__section-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #26A9E0;
}

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

.page-promotions__section-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Hero Section */
.page-promotions__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 20px 60px; /* Adjusted padding to account for header offset */
  padding-top: var(--header-offset, 120px); /* Ensure content is not covered by fixed header */
  position: relative;
  overflow: hidden;
  text-align: center;
}

.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;
  opacity: 0.2; /* Slightly dim the background image */
}

.page-promotions__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  color: #ffffff;
}

.page-promotions__hero-title {
  font-size: 3.8em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-promotions__hero-description {
  font-size: 1.5em;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Buttons */
.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.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
}

.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: #d16b06;
  border-color: #d16b06;
}

.page-promotions__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

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

.page-promotions__btn-card {
  margin-top: 20px;
  width: fit-content;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__btn-cta {
  margin-top: 40px;
}

.page-promotions__btn-large {
  padding: 18px 35px;
  font-size: 1.2em;
}

/* 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: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333; /* Dark text for light card background */
}

.page-promotions__promo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.page-promotions__card-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-promotions__card-description {
  font-size: 1em;
  color: #555555;
}

.page-promotions__cta-bottom {
  margin-top: 60px;
  padding: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.page-promotions__cta-text {
  font-size: 1.3em;
  margin-bottom: 20px;
}

/* Steps Grid */
.page-promotions__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-promotions__step-card {
  background-color: #f8f8f8;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-promotions__step-icon {
  font-size: 2.5em;
  font-weight: bold;
  color: #26A9E0;
  margin-bottom: 15px;
  background-color: #e0f2f7;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__step-title {
  font-size: 1.6em;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-promotions__step-description {
  font-size: 1em;
  color: #555555;
}

.page-promotions__image-content {
  width: 100%;
  max-width: 900px;
  height: auto;
  border-radius: 12px;
  margin-top: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Lists */
.page-promotions__list {
  list-style: none;
  padding: 0;
  margin: 40px auto 0;
  max-width: 900px;
  text-align: left;
}

.page-promotions__list--white {
  color: #ffffff;
}

.page-promotions__list-item {
  background-color: rgba(255, 255, 255, 0.1);
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  font-size: 1.1em;
  line-height: 1.8;
  border-left: 5px solid #EA7C07; /* Highlight with login color */
}

.page-promotions__list-item strong {
  color: #ffffff; /* Ensure strong text is white on dark background */
}

/* Video Section */
.page-promotions__video-wrapper {
  margin-top: 50px;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  cursor: pointer; /* Indicate it's clickable */
}

/* FAQ Section */
.page-promotions__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-promotions__faq-item {
  background-color: #f8f8f8;
  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; /* Hide default marker */
  cursor: pointer;
  padding: 20px 25px;
  background-color: #e0f2f7; /* Light blue background for question */
  font-weight: bold;
  font-size: 1.1em;
  color: #26A9E0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

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

.page-promotions__faq-item summary:hover {
  background-color: #d1e8ef;
}

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

.page-promotions__faq-answer {
  padding: 20px 25px;
  background-color: #ffffff;
  border-top: 1px solid #eeeeee;
  color: #555555;
}

.page-promotions__faq-answer p {
  margin: 0;
}

/* Final CTA Section */
.page-promotions__cta-final {
  padding: 100px 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__hero-title {
    font-size: 3em;
  }
  .page-promotions__hero-description {
    font-size: 1.3em;
  }
  .page-promotions__section-title {
    font-size: 2.5em;
  }
}

@media (max-width: 768px) {
  /* Mobile padding for sections, images, videos, buttons */
  .page-promotions__section,
  .page-promotions__cta-final {
    padding: 50px 0;
  }

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

  /* Fixed header offset for mobile */
  .page-promotions__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Important for mobile */
    padding-bottom: 40px;
  }

  .page-promotions__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-promotions__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
  }
  .page-promotions__hero-buttons {
    flex-direction: column;
    gap: 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: 12px 20px;
    font-size: 1em;
    margin: 0 auto; /* Center buttons if they stack */
  }
  
  .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;
    overflow: hidden !important;
    flex-wrap: wrap !important;
    gap: 10px;
  }

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

  .page-promotions__section-title {
    font-size: 2em;
  }
  .page-promotions__section-text {
    font-size: 1em;
  }

  .page-promotions__card-image {
    height: 180px;
  }

  .page-promotions__video-wrapper {
    padding-bottom: 75%; /* Adjust aspect ratio for better mobile viewing if needed, or keep 16:9 */
  }

  /* All images responsive */
  .page-promotions img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  
  /* All image containers responsive */
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__hero-image-wrapper,
  .page-promotions__promo-card,
  .page-promotions__step-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  /* All video responsive */
  .page-promotions video,
  .page-promotions__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  
  /* All video containers responsive */
  .page-promotions__video-section,
  .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__list-item {
    font-size: 1em;
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .page-promotions__hero-title {
    font-size: 1.8em;
  }
  .page-promotions__hero-description {
    font-size: 0.95em;
  }
  .page-promotions__section-title {
    font-size: 1.8em;
  }
}