/* 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 or default to white */
}

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

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

.page-promotions__section-title {
  font-size: 2.8em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #26A9E0;
  line-height: 1.2;
}

.page-promotions__section-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}

/* Color themes for sections */
.page-promotions__dark-section {
  background-color: #26A9E0; /* Brand primary color */
  color: #FFFFFF;
}

.page-promotions__dark-section .page-promotions__section-title,
.page-promotions__dark-section .page-promotions__section-description {
  color: #FFFFFF;
}

.page-promotions__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  padding: 10px 0 60px 0; /* body already handles padding-top from header */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Limit height for hero image */
  overflow: hidden;
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for better text contrast */
}

.page-promotions__hero-content {
  position: relative;
  z-index: 10; /* Ensure content is above image */
  max-width: 900px;
  margin-top: 40px; /* Space below image */
  padding: 0 20px;
  text-align: center;
  color: #FFFFFF;
}

.page-promotions__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size */
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #FFFFFF;
}

.page-promotions__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

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

.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;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__btn-primary {
  background-color: #EA7C07; /* Login button color */
  color: #FFFFFF;
  border: 2px solid #EA7C07;
}

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

.page-promotions__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-promotions__btn-secondary:hover {
  background-color: #e0f2f7;
  color: #1a8cc4;
  border-color: #1a8cc4;
}

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

.page-promotions__feature-card {
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  background-color: #FFFFFF;
  text-align: center;
  transition: transform 0.3s ease;
  color: #333333;
}

.page-promotions__feature-card:hover {
  transform: translateY(-5px);
}

.page-promotions__feature-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: #26A9E0;
}

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

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

.page-promotions__promo-card {
  padding: 30px;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.15); /* Light transparent background for dark section */
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-promotions__promo-card .page-promotions__card-title {
  color: #FFFFFF;
  margin-bottom: 20px;
}

.page-promotions__promo-card .page-promotions__card-text {
  color: #f0f0f0;
  flex-grow: 1;
  margin-bottom: 20px;
}

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

.page-promotions__promo-card .page-promotions__btn-primary {
  margin-top: auto; /* Push button to bottom */
}

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

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

.page-promotions__step-icon {
  width: 60px;
  height: 60px;
  background-color: #26A9E0;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-promotions__step-card .page-promotions__card-title {
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-promotions__step-card .page-promotions__card-text {
  color: #555555;
}

.page-promotions__step-card a {
  color: #26A9E0;
  text-decoration: underline;
}

.page-promotions__step-card a:hover {
  color: #1a8cc4;
}

/* Terms & Conditions Section */
.page-promotions__terms-conditions-section .page-promotions__terms-list {
  list-style: none;
  padding: 0;
  text-align: left;
  max-width: 800px;
  margin: 40px auto;
  color: #f0f0f0;
}

.page-promotions__terms-conditions-section .page-promotions__terms-list li {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 1.05em;
}

.page-promotions__terms-conditions-section .page-promotions__terms-list li strong {
  color: #FFFFFF;
}

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

.page-promotions__faq-item {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
  overflow: hidden;
  color: #333333;
}

.page-promotions__faq-item summary {
  list-style: none; /* Hide default marker */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: #26A9E0;
  position: relative;
}

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

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-promotions__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #26A9E0;
  margin-left: 15px;
}

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

.page-promotions__faq-answer p {
  margin-bottom: 10px;
}

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

/* Image responsiveness */
.page-promotions img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-promotions__section-title {
    font-size: 2.5em;
  }
  .page-promotions__hero-description {
    font-size: 1.1em;
  }
  .page-promotions__promo-image {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .page-promotions__section {
    padding: 40px 0;
  }
  .page-promotions__container {
    padding: 0 15px; /* Add padding for mobile containers */
  }
  .page-promotions__section-title {
    font-size: 2em;
  }
  .page-promotions__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-promotions__main-title {
    font-size: clamp(2em, 8vw, 2.8em); /* Smaller clamp for mobile */
  }
  .page-promotions__hero-description {
    font-size: 1em;
  }
  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-promotions__features-grid,
  .page-promotions__promo-grid,
  .page-promotions__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-promotions__feature-card,
  .page-promotions__promo-card,
  .page-promotions__step-card {
    padding: 20px;
  }
  .page-promotions__promo-image {
    height: 180px;
  }
  .page-promotions__faq-item summary {
    font-size: 1.1em;
    padding: 15px;
  }
  .page-promotions__faq-answer {
    padding: 0 15px 15px 15px;
  }

  /* Force responsive images, videos, and buttons on mobile */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-promotions video,
  .page-promotions__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .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;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-promotions__hero-section {
    padding-top: 10px !important; /* body handles --header-offset */
  }
  .page-promotions__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column; /* Stack buttons vertically */
  }
}

/* Ensure content area images maintain minimum size if not explicitly set by object-fit */
.page-promotions__feature-image, .page-promotions__promo-image {
  min-width: 200px;
  min-height: 200px;
}

/* Contrast fixes for specific elements if needed - for safety */
.page-promotions__card-title,
.page-promotions__card-text {
  /* Ensure contrast on default cards */
}