/* style/promotions.css */

/* General page styles for .page-promotions */
.page-promotions {
  font-family: Arial, sans-serif;
  color: #333333; /* Default dark text for light body background */
  background-color: var(--background-color, #FFFFFF); /* Inherit from shared or default white */
}

/* Section styling */
.page-promotions__section {
  padding: 60px 0;
  text-align: center;
}

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

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

.page-promotions__section-title {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: inherit; /* Inherit color from parent section (dark/light) */
}

.page-promotions__section-description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: inherit; /* Inherit color from parent section */
}

/* Hero Section */
.page-promotions__hero-section {
  display: flex;
  flex-direction: column; /* Image above text on mobile, desktop can be adjusted */
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding, body handles header offset */
  position: relative;
  overflow: hidden;
}

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

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-promotions__hero-content {
  position: relative; /* Ensure content is in normal flow */
  z-index: 1;
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
  color: #ffffff; /* White text for dark hero background */
}

.page-promotions__hero-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive H1 font size */
  font-weight: 800;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #ffffff;
}

.page-promotions__hero-description {
  font-size: 1.2em;
  line-height: 1.7;
  margin-bottom: 30px;
  color: #ffffff;
}

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

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons are responsive */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to break words */
}

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

.page-promotions__btn-primary:hover {
  background-color: #d16e06;
  transform: translateY(-2px);
}

.page-promotions__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0; /* Brand primary color */
  border: 2px solid #26A9E0;
}

.page-promotions__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
  transform: translateY(-2px);
}

.page-promotions__btn-small {
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-promotions__btn-large {
  padding: 18px 40px;
  font-size: 1.1em;
}

.page-promotions__cta-buttons--center {
  margin-top: 40px;
}

/* Main Promotions Grid */
.page-promotions__main-promotions {
  background-color: #f8f8f8; /* Light background for content section */
}

.page-promotions__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-promotions__promo-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%; /* Ensure cards are same height */
}

.page-promotions__promo-card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-promotions__promo-card-content {
  padding: 25px;
  flex-grow: 1; /* Allow content to grow */
  display: flex;
  flex-direction: column;
}

.page-promotions__promo-card-title {
  font-size: 1.4em;
  font-weight: 700;
  margin-bottom: 15px;
  color: #26A9E0; /* Brand primary color for titles */
}

.page-promotions__promo-card-text {
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* How to Claim Section */
.page-promotions__how-to-claim {
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff;
}

.page-promotions__how-to-claim .page-promotions__section-title,
.page-promotions__how-to-claim .page-promotions__section-description {
  color: #ffffff;
}

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

.page-promotions__step-card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333333;
}

.page-promotions__step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff;
  border-radius: 50%;
  font-size: 2em;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__step-title {
  font-size: 1.5em;
  font-weight: 700;
  margin-bottom: 10px;
  color: #26A9E0; /* Brand primary color */
}

.page-promotions__step-text {
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
}

/* Terms and Conditions Section */
.page-promotions__terms-conditions {
  background-color: #f0f0f0;
}

.page-promotions__terms-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  text-align: left;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__terms-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
}

.page-promotions__terms-item::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #26A9E0; /* Brand primary color */
  font-weight: 700;
  font-size: 1.2em;
  line-height: 1.6;
}

.page-promotions__link {
  color: #26A9E0; /* Brand primary color for links */
  text-decoration: underline;
}

.page-promotions__link:hover {
  color: #1a7fb0;
}

/* FAQ Section */
.page-promotions__faq {
  background-color: #ffffff;
}

.page-promotions__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-promotions__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1em;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  background-color: #eaf7ff; /* Lighter shade of brand color for summary */
  border-bottom: 1px solid #e0e0e0;
}

.page-promotions__faq-item[open] .page-promotions__faq-question {
  border-bottom: 1px solid #e0e0e0;
}

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

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

.page-promotions__faq-qtext {
  flex-grow: 1;
  color: #26A9E0; /* Brand primary color */
}

.page-promotions__faq-toggle {
  font-size: 1.8em;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0; /* Brand primary color */
}

.page-promotions__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
  background-color: #f9f9f9;
}

/* Final CTA Section */
.page-promotions__cta-final {
  padding: 80px 0;
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff;
}

.page-promotions__cta-final .page-promotions__section-title,
.page-promotions__cta-final .page-promotions__section-description {
  color: #ffffff;
}

.page-promotions__cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

  .page-promotions__container {
    padding: 0 15px !important; /* Enforce padding for mobile containers */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  .page-promotions__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
  }
  
  .page-promotions__hero-image-wrapper {
    margin-bottom: 20px;
  }

  .page-promotions__hero-title {
    font-size: 2em; /* Smaller H1 on mobile */
  }

  .page-promotions__hero-description {
    font-size: 1em;
  }

  .page-promotions__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-promotions__promo-grid {
    grid-template-columns: 1fr;
  }
  
  .page-promotions__promo-card-image {
    height: 200px; /* Adjust image height for mobile cards */
  }

  .page-promotions__steps-grid {
    grid-template-columns: 1fr;
  }

  .page-promotions__terms-list,
  .page-promotions__faq-list {
    margin-left: 0;
    margin-right: 0;
  }

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

  .page-promotions__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  
  /* Images responsive */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px; /* Ensure minimum size is maintained */
    min-height: 200px; /* Ensure minimum size is maintained */
  }

  /* Video responsive - not present in this page, but as per general rule */
  .page-promotions video,
  .page-promotions__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .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__video-section {
    padding-top: 10px !important; /* Small top padding for video section */
  }
}

/* Ensure no filter on images */
.page-promotions img {
  filter: none;
}