/* style/promotions.css */

/* Base Styles */
.page-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: var(--background-color, #ffffff); /* Inherit from shared or default white */
}

/* Sections */
.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0 60px; /* Small top padding, more bottom padding */
  background-color: #f8f8f8;
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

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

.page-promotions__hero-content {
  max-width: 900px;
  margin-top: 40px;
  padding: 0 20px;
}

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

.page-promotions__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
  text-align: center;
}

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

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

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

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

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

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

.page-promotions__text-block {
  font-size: 1.05em;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Light Background Section */
.page-promotions__light-bg {
  background-color: #ffffff;
  color: #333333;
  padding: 60px 0;
}

/* Dark Background Section */
.page-promotions__dark-section {
  background-color: #26A9E0;
  color: #ffffff;
  padding: 60px 0;
}

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

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

.page-promotions__card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333; /* Ensure contrast on white card background */
  box-sizing: border-box;
}

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

.page-promotions__card-image {
  width: 100%; /* Occupy major visual area */
  height: auto;
  max-height: 200px; /* Example max height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

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

.page-promotions__card-text {
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1; /* Allow text to take available space */
}

/* How to Claim Section */
.page-promotions__steps-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-promotions__step-item {
  background-color: #f0f8ff; /* Light blue background for steps */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

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

.page-promotions__step-description {
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* VIP Section */
.page-promotions__vip-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-promotions__vip-image {
  width: 50%;
  height: auto;
  max-width: 600px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
}

.page-promotions__vip-text {
  width: 50%;
  color: #ffffff;
}

.page-promotions__vip-text .page-promotions__text-block {
  color: #ffffff;
}

/* Why Choose Section */
.page-promotions__advantages-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-promotions__advantage-item {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333333;
  box-sizing: border-box;
}

.page-promotions__advantage-title {
  font-size: 1.3em;
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-promotions__advantage-description {
  font-size: 1em;
  flex-grow: 1;
}

/* FAQ Section */
.page-promotions__faq-list {
  margin-top: 40px;
}

.page-promotions__faq-item {
  background-color: #f9f9f9;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  box-sizing: border-box;
}

.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: #e0f2f7; /* Lighter blue for question */
  border-bottom: 1px solid #d0e0e5;
  transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
  background-color: #d0e0e5;
}

.page-promotions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
  transform: rotate(45deg); /* Change + to X or similar */
}

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

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

.page-promotions__faq-answer .page-promotions__btn-secondary {
  margin-top: 10px;
  display: inline-block;
  padding: 8px 20px;
  font-size: 0.9em;
  border-radius: 5px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__vip-content {
    flex-direction: column;
    text-align: center;
  }

  .page-promotions__vip-image,
  .page-promotions__vip-text {
    width: 100%;
    max-width: 600px;
  }
  .page-promotions__vip-image {
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-section {
    padding-bottom: 40px;
  }

  .page-promotions__hero-content {
    margin-top: 30px;
  }

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

  .page-promotions__description {
    font-size: 1em;
    padding: 0 15px;
  }

  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }
  
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    width: 100% !important; /* Force full width on mobile */
    max-width: 100% !important;
    padding: 12px 15px; /* Adjust padding for mobile */
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-promotions__section-title {
    font-size: clamp(1.6em, 7vw, 2.2em);
    margin-top: 40px;
    margin-bottom: 30px;
    padding: 0 15px;
  }

  .page-promotions__text-block {
    padding: 0 15px;
  }

  .page-promotions__card-grid,
  .page-promotions__steps-list,
  .page-promotions__advantages-list {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  .page-promotions__card,
  .page-promotions__step-item,
  .page-promotions__advantage-item {
    padding: 25px;
  }

  .page-promotions__card-image {
    max-height: 150px;
  }

  .page-promotions__vip-image {
    max-width: 100%;
    padding: 0 15px;
  }

  .page-promotions__vip-text {
    padding: 0 15px;
  }

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

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

  .page-promotions__container {
    padding: 0; /* Remove horizontal padding from container, let elements handle it */
  }

  /* Mobile image, video, and container adaptations */
  .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__hero-image-wrapper,
  .page-promotions__video-section,
  .page-promotions__video-container,
  .page-promotions__video-wrapper,
  .page-promotions__cta-buttons,
  .page-promotions__button-group,
  .page-promotions__btn-container,
  .page-promotions__vip-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }

  /* Specific padding for sections/cards on mobile for better appearance */
  .page-promotions__overview-section .page-promotions__container,
  .page-promotions__categories-section .page-promotions__container,
  .page-promotions__how-to-claim-section .page-promotions__container,
  .page-promotions__vip-section .page-promotions__container,
  .page-promotions__why-choose-section .page-promotions__container,
  .page-promotions__faq-section .page-promotions__container,
  .page-promotions__cta-bottom-section .page-promotions__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Fixed header spacing for video section (small top padding only) */
  .page-promotions__video-section {
    padding-top: 10px !important;
  }

  /* If buttons are in a flex container, ensure they wrap or stack */
  .page-promotions__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 10px;
  }
}