/* style/promotions.css */

/* Body background is #121212 (dark), so text should be light by default for main sections */
.page-promotions {
  color: #ffffff; /* Default text color for dark background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* body handles top offset, use small top padding here */
  background-color: #121212; /* Ensure dark background for hero section */
  color: #ffffff;
  text-align: center;
  overflow: hidden;
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px; /* Limit height for hero image */
}

.page-promotions__hero-content {
  position: relative;
  z-index: 10;
  padding: 20px;
  max-width: 900px;
  margin-top: 20px; /* Space between image and text */
}

.page-promotions__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-promotions__intro-text {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

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

.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-tertiary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

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

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

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

.page-promotions__btn-tertiary {
  background-color: #EA7C07; /* Login color for tertiary action */
  color: #ffffff;
  border: 2px solid #EA7C07;
  font-size: 0.9em;
  padding: 8px 15px;
}

.page-promotions__btn-tertiary:hover {
  background-color: #b86206;
  border-color: #b86206;
}

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

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

.page-promotions__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
}

.page-promotions__paragraph {
  font-size: 1.1rem;
  margin-bottom: 20px;
  text-align: justify;
}

/* Light background sections should have dark text */
.page-promotions__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-promotions__light-bg .page-promotions__section-title,
.page-promotions__light-bg .page-promotions__paragraph,
.page-promotions__light-bg .page-promotions__card-title,
.page-promotions__light-bg .page-promotions__card-text {
  color: #333333;
}

/* Dark background sections should have light text */
.page-promotions__dark-bg {
  background-color: #121212;
  color: #ffffff;
}

.page-promotions__dark-bg .page-promotions__section-title,
.page-promotions__dark-bg .page-promotions__paragraph,
.page-promotions__dark-bg .page-promotions__card-title,
.page-promotions__dark-bg .page-promotions__card-text {
  color: #ffffff;
}

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

.page-promotions__promo-card,
.page-promotions__step-card,
.page-promotions__term-item {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for dark bg */
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  height: 100%;
  box-sizing: border-box;
}

.page-promotions__light-bg .page-promotions__promo-card,
.page-promotions__light-bg .page-promotions__step-card,
.page-promotions__light-bg .page-promotions__term-item {
  background-color: #f8f8f8; /* Light grey for light bg */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-promotions__promo-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

.page-promotions__card-text {
  font-size: 1rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

.page-promotions__step-card {
  align-items: center;
  text-align: center;
  background-color: rgba(38, 169, 224, 0.1); /* Light blue tint for dark bg */
  border: 1px solid #26A9E0;
}

.page-promotions__dark-bg .page-promotions__step-card .page-promotions__card-title {
  color: #ffffff;
}

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

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

.page-promotions__term-item {
  background-color: #f8f8f8;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: none;
}

.page-promotions__light-bg .page-promotions__term-item .page-promotions__card-title {
  color: #26A9E0;
}

.page-promotions__faq-list {
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.page-promotions__faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 15px 0;
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffffff;
  padding: 10px 0;
  list-style: none;
}

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

.page-promotions__faq-toggle {
  font-size: 1.8rem;
  font-weight: bold;
  color: #26A9E0;
  margin-left: 15px;
  line-height: 1;
}

.page-promotions__faq-answer {
  padding-top: 10px;
  font-size: 1rem;
  color: #f0f0f0;
  line-height: 1.5;
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
  content: '−';
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-promotions__hero-section {
    padding: 10px 15px 40px 15px;
  }

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

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

  .page-promotions__main-title {
    font-size: 2rem;
  }

  .page-promotions__intro-text {
    font-size: 1rem;
  }

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

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

  .page-promotions__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

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

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

  .page-promotions__card-title {
    font-size: 1.3rem;
  }

  .page-promotions__paragraph,
  .page-promotions__card-text {
    font-size: 0.95rem;
  }

  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__promo-grid,
  .page-promotions__steps-grid,
  .page-promotions__terms-list,
  .page-promotions__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promotions__section {
    padding: 40px 0;
  }
}

/* Ensure content area images are at least 200px */
.page-promotions img:not(.page-promotions__hero-image) {
  min-width: 200px;
  min-height: 200px;
}

/* Global image style for content area to prevent small icons */
.page-promotions .page-promotions__promo-image,
.page-promotions .page-promotions__step-card img,
.page-promotions .page-promotions__term-item img {
  width: 100%;
  height: auto;
  min-width: 200px;
  min-height: 200px;
}

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