/* style/promotions.css */

/* Base styles for the promotions page */
.page-promotions {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small decorative top padding */
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  z-index: 0;
}

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

.page-promotions__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
}

.page-promotions__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-promotions__intro-text {
  font-size: clamp(1em, 1.5vw, 1.3em);
  line-height: 1.6;
  color: #f0f0f0;
  margin-bottom: 30px;
}

/* General Section Styling */
.page-promotions__section {
  padding: 60px 20px;
  box-sizing: border-box;
}

.page-promotions__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px; /* Adjust padding for content area */
}

.page-promotions__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  font-weight: 700;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
}

.page-promotions__section-description {
  font-size: clamp(0.9em, 1.2vw, 1.1em);
  line-height: 1.6;
  color: #f0f0f0;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

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

.page-promotions__promotion-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards have equal height */
}

.page-promotions__promotion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-promotions__card-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.page-promotions__card-title {
  font-size: clamp(1.2em, 1.8vw, 1.5em);
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-promotions__card-text {
  font-size: clamp(0.9em, 1.1vw, 1em);
  line-height: 1.6;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-promotions__card-button {
  text-align: center;
  display: block;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin-top: auto; /* Push button to the bottom */
}

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

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

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

.page-promotions__btn-primary:hover,
.page-promotions__card-button.page-promotions__btn-primary:hover {
  background-color: #1a8cc4;
  border-color: #1a8cc4;
}

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

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

/* Terms & Conditions */
.page-promotions__dark-section {
  background-color: #0d0d0d; /* Slightly lighter than body for contrast */
  color: #ffffff;
}

.page-promotions__terms-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 900px;
}

.page-promotions__terms-item {
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid #26A9E0;
  padding: 15px 20px;
  margin-bottom: 15px;
  font-size: clamp(0.9em, 1.1vw, 1em);
  line-height: 1.6;
  color: #f0f0f0;
  border-radius: 5px;
}

/* How to Participate Steps */
.page-promotions__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-promotions__step-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.page-promotions__step-number {
  font-size: 2.5em;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 15px;
  background: rgba(38, 169, 224, 0.1);
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-promotions__step-title {
  font-size: clamp(1.2em, 1.8vw, 1.5em);
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-promotions__step-text {
  font-size: clamp(0.9em, 1.1vw, 1em);
  line-height: 1.6;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-promotions__step-button {
  margin-top: auto;
  display: inline-block;
  width: 100%;
}

/* Benefits Section */
.page-promotions__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-promotions__benefit-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.page-promotions__benefit-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-promotions__benefit-title {
  font-size: clamp(1.1em, 1.6vw, 1.4em);
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-promotions__benefit-text {
  font-size: clamp(0.9em, 1.1vw, 1em);
  line-height: 1.6;
  color: #f0f0f0;
  flex-grow: 1;
}

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

.page-promotions__faq-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: clamp(1em, 1.3vw, 1.2em);
  font-weight: 600;
  color: #26A9E0;
  cursor: pointer;
  background: rgba(38, 169, 224, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

.page-promotions__faq-question:hover {
  background-color: rgba(38, 169, 224, 0.1);
}

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

.page-promotions__faq-answer {
  padding: 15px 25px 20px;
  font-size: clamp(0.9em, 1.1vw, 1em);
  line-height: 1.6;
  color: #f0f0f0;
}

/* Conclusion Section */
.page-promotions__conclusion-text {
  font-size: clamp(1em, 1.5vw, 1.3em);
  line-height: 1.6;
  color: #f0f0f0;
  margin-bottom: 30px;
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-promotions__hero-content {
    padding: 15px;
  }
  .page-promotions__main-title {
    font-size: clamp(2em, 4.5vw, 3.2em);
  }
  .page-promotions__intro-text {
    font-size: clamp(0.9em, 1.8vw, 1.2em);
  }
  .page-promotions__section-title {
    font-size: clamp(1.6em, 3.5vw, 2.5em);
  }
  .page-promotions__section-description {
    font-size: clamp(0.85em, 1.5vw, 1em);
  }
}

@media (max-width: 768px) {
  .page-promotions {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-promotions__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-promotions__hero-content {
    padding: 10px;
  }

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

  .page-promotions__intro-text {
    font-size: clamp(0.9em, 3vw, 1.1em);
  }

  .page-promotions__section,
  .page-promotions__content-area {
    padding: 40px 15px;
  }
  
  .page-promotions__section-description {
    margin-bottom: 30px;
  }

  .page-promotions__promotions-grid,
  .page-promotions__steps-grid,
  .page-promotions__benefits-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-promotions__promotion-card,
  .page-promotions__step-card,
  .page-promotions__benefit-item,
  .page-promotions__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .page-promotions__card-button,
  .page-promotions__step-button,
  .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-left: 15px;
    padding-right: 15px;
  }

  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .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;
  }
  .page-promotions__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-promotions__faq-question {
    font-size: clamp(0.9em, 3.5vw, 1.1em);
    padding: 15px 20px;
  }

  .page-promotions__faq-answer {
    padding: 10px 20px 15px;
  }
}

@media (max-width: 480px) {
  .page-promotions__hero-section {
    padding: 30px 10px;
  }

  .page-promotions__main-title {
    font-size: clamp(1.5em, 7vw, 2.2em);
  }

  .page-promotions__intro-text {
    font-size: clamp(0.85em, 3.5vw, 1em);
  }

  .page-promotions__section-title {
    font-size: clamp(1.4em, 5vw, 2em);
  }
}

/* Contrast Fixes */
.page-promotions__dark-bg {
  color: #ffffff; /* Deep dark background, so light text */
}

.page-promotions__light-bg {
  color: #f0f0f0; /* Light background for cards, use slightly off-white for text */
}

.page-promotions p,
.page-promotions li,
.page-promotions__section-description,
.page-promotions__card-text,
.page-promotions__step-text,
.page-promotions__benefit-text,
.page-promotions__faq-answer {
  color: #f0f0f0; /* Ensure text is visible on dark backgrounds */
}

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

.page-promotions__dark-section .page-promotions__terms-item {
  background: rgba(255, 255, 255, 0.08);
  color: #f0f0f0;
}