/* style/promotions.css */

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

/* Container for centering content */
.page-promotions__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Section styling */
.page-promotions__hero-section,
.page-promotions__featured-promos,
.page-promotions__terms-conditions,
.page-promotions__how-to-claim,
.page-promotions__faq-section,
.page-promotions__cta-bottom {
  padding: 60px 0;
  text-align: center;
}

/* Specific background colors for sections to ensure contrast */
.page-promotions__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

.page-promotions__dark-bg {
  background-color: #26A9E0; /* Brand primary color */
  color: #FFFFFF;
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  overflow: hidden;
  padding: 0; /* Remove default padding as image is full width */
  text-align: center;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Limit height for aesthetic */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-promotions__hero-content {
  padding: 40px 20px;
  max-width: 900px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-promotions__main-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for H1 */
}
.page-promotions__dark-bg .page-promotions__main-title {
    color: #FFFFFF;
}


.page-promotions__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #333333;
}
.page-promotions__dark-bg .page-promotions__description {
    color: #f0f0f0;
}

/* Section Titles */
.page-promotions__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for section titles */
}
.page-promotions__dark-bg .page-promotions__section-title {
    color: #FFFFFF;
}

.page-promotions__section-description {
  font-size: 1rem;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}
.page-promotions__dark-bg .page-promotions__section-description {
    color: #e0e0e0;
}


/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-link {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
  box-sizing: border-box; /* Crucial for button width */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow long words to break */
}

.page-promotions__btn-primary {
  background-color: #26A9E0; /* Primary brand color */
  color: #FFFFFF;
  border-color: #26A9E0;
  margin: 10px;
}

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

.page-promotions__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0; /* Primary brand color */
  border-color: #26A9E0;
  margin: 10px;
}

.page-promotions__btn-secondary:hover {
  background-color: #f0f0f0;
}

.page-promotions__btn-white { /* For secondary buttons on dark backgrounds */
  background-color: #FFFFFF;
  color: #26A9E0;
  border-color: #FFFFFF;
}
.page-promotions__btn-white:hover {
    background-color: #f0f0f0;
    color: #26A9E0;
    border-color: #f0f0f0;
}

.page-promotions__btn-link {
  background: none;
  border: none;
  color: #26A9E0;
  text-decoration: underline;
  padding: 0;
  margin: 0;
  font-size: 1rem;
}
.page-promotions__btn-link:hover {
  color: #1a7fb3;
}

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

.page-promotions__promo-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

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

.page-promotions__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-promotions__card-text {
  font-size: 1rem;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1; /* Push button to bottom */
}

.page-promotions__promo-card .page-promotions__btn-secondary {
  margin-top: auto; /* Align button at the bottom */
  width: auto; /* Override general button width */
  align-self: flex-start; /* Align button to left */
}


/* Terms & Conditions */
.page-promotions__terms-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 40px;
  text-align: left;
}

.page-promotions__term-item {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
  border-radius: 8px;
  padding: 25px;
  color: #FFFFFF;
  box-sizing: border-box;
}

.page-promotions__term-heading {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #FFFFFF;
}

.page-promotions__term-text {
  font-size: 0.95rem;
  color: #f0f0f0;
}

/* How-To Steps */
.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;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

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

.page-promotions__step-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-promotions__step-text {
  font-size: 0.95rem;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-promotions__step-card .page-promotions__btn-primary {
  margin-top: auto;
  width: auto;
  align-self: center;
}

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

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

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
}
.page-promotions__faq-item[open] .page-promotions__faq-question {
  background-color: #f0f0f0;
  border-bottom-color: #d0d0d0;
}

/* Hide default details arrow */
.page-promotions__faq-item summary {
  list-style: none;
}
.page-promotions__faq-item summary::-webkit-details-marker {
  display: none;
}


.page-promotions__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: #26A9E0;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' or '−' */
}

.page-promotions__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1rem;
  color: #555555;
  line-height: 1.6;
}
.page-promotions__faq-answer p {
  margin-bottom: 10px;
}
.page-promotions__faq-answer .page-promotions__btn-link {
  margin-top: 10px;
}

/* Bottom CTA */
.page-promotions__cta-bottom {
  padding: 80px 0;
}

.page-promotions__cta-bottom .page-promotions__section-title {
  color: #FFFFFF;
}

.page-promotions__cta-bottom .page-promotions__description {
  color: #f0f0f0;
}

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


/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__hero-content {
    padding: 30px 20px;
  }
  .page-promotions__hero-image {
    max-height: 500px;
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-section,
  .page-promotions__featured-promos,
  .page-promotions__terms-conditions,
  .page-promotions__how-to-claim,
  .page-promotions__faq-section,
  .page-promotions__cta-bottom {
    padding: 40px 0;
  }

  .page-promotions__container {
    padding: 0 15px; /* Add side padding for mobile */
  }

  .page-promotions__hero-image {
    max-height: 350px;
  }

  .page-promotions__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .page-promotions__section-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
  }

  .page-promotions__description,
  .page-promotions__section-description {
    font-size: 1rem;
  }

  /* Force responsive for all images */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Force responsive for all video elements (if any) */
  .page-promotions video,
  .page-promotions__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Force responsive for all containers that might hold images/videos/buttons */
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__promo-card,
  .page-promotions__term-item,
  .page-promotions__step-card,
  .page-promotions__faq-item,
  .page-promotions__video-section,
  .page-promotions__video-container,
  .page-promotions__video-wrapper,
  .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; /* Ensure content has padding */
    padding-right: 15px; /* Ensure content has padding */
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  /* Buttons on mobile */
  .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;
    margin: 10px 0 !important; /* Stack buttons vertically */
    padding-left: 15px; /* Ensure button text has padding */
    padding-right: 15px; /* Ensure button text has padding */
  }

  .page-promotions__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
  }

  .page-promotions__promo-card .page-promotions__btn-secondary,
  .page-promotions__step-card .page-promotions__btn-primary {
    align-self: stretch; /* Make buttons full width in cards */
  }

  .page-promotions__video-section {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
  }

  .page-promotions__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }
  .page-promotions__faq-answer {
    padding: 10px 20px 15px;
  }
}

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