/* style/promotions.css */

/* Base styles for the page content, ensuring light text on dark body background */
.page-promotions {
  color: #ffffff; /* Light text for readability on dark background */
  background-color: #000000; /* Ensure main content background matches body if not explicitly set */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden;
  text-align: center;
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Constrain image width on larger screens */
  margin-bottom: 30px; /* Space between image and text */
}

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

.page-promotions__hero-content {
  max-width: 900px;
  margin: 0 auto;
}

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

.page-promotions__description {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

/* Call to Action Buttons */
.page-promotions__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: normal; /* Allow button text to wrap */
  word-wrap: break-word; /* Ensure long words break */
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
  max-width: 100%; /* Ensure buttons don't overflow on small screens */
}

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

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

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

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

.page-promotions__btn-small {
  padding: 8px 18px;
  font-size: 0.9em;
}

.page-promotions__btn-large {
  padding: 15px 35px;
  font-size: 1.1em;
}

/* General Section Styles */
.page-promotions__section {
  padding: 50px 20px;
  background-color: #000000; /* Ensure consistent dark background */
}

.page-promotions__container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-promotions__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  font-weight: 700;
  color: #26A9E0; /* Brand primary color for titles */
  text-align: center;
  margin-bottom: 40px;
}

.page-promotions__text-block {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 20px;
  text-align: justify;
}

/* Card Grid Layout */
.page-promotions__card-grid .page-promotions__container {
  padding-top: 0;
}

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

.page-promotions__card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter dark background for cards */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  color: #ffffff;
  padding: 25px;
  text-align: center;
}

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

.page-promotions__card-title {
  font-size: 1.4em;
  font-weight: 600;
  color: #26A9E0; /* Brand primary color */
  margin-bottom: 15px;
  line-height: 1.3;
}

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

/* List Styles */
.page-promotions__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-promotions__list-item {
  background-color: rgba(255, 255, 255, 0.05); /* Subtle background for list items */
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
}

.page-promotions__list-title {
  font-size: 1.2em;
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-promotions__list-text {
  font-size: 0.95em;
  color: #e0e0e0;
}

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

.page-promotions__vip-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.page-promotions__vip-list {
  width: 100%;
  max-width: 600px;
}

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

/* Steps/How-to Section */
.page-promotions__steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  counter-reset: step-counter;
}

.page-promotions__step-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-promotions__step-item::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #26A9E0;
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
  font-weight: 700;
  border: 3px solid #000000; /* Contrast with background */
}

.page-promotions__step-title {
  font-size: 1.3em;
  font-weight: 600;
  color: #26A9E0;
  margin-top: 15px; /* Space for the counter */
  margin-bottom: 10px;
}

.page-promotions__step-text {
  font-size: 0.95em;
  color: #e0e0e0;
}

/* FAQ Section */
.page-promotions__faq-section {
  padding-bottom: 80px;
}

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

.page-promotions__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1em;
  font-weight: 600;
  color: #26A9E0;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hide default details marker */
.page-promotions__faq-item summary::-webkit-details-marker,
.page-promotions__faq-item summary::marker {
  display: none;
  content: "";
}

.page-promotions__faq-qtext {
  flex-grow: 1;
}

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

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

.page-promotions__faq-answer {
  padding: 15px 25px 20px;
  font-size: 0.95em;
  color: #e0e0e0;
  line-height: 1.6;
}

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

.page-promotions__cta-content {
  max-width: 900px;
}

/* Responsive Design */
@media (min-width: 769px) {
  .page-promotions__vip-content {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
  }

  .page-promotions__vip-image {
    flex-shrink: 0;
    width: 45%;
    max-width: 500px;
  }

  .page-promotions__vip-list {
    flex-grow: 1;
    max-width: 50%;
    text-align: left;
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* Small top padding, body handles header offset */
  }

  .page-promotions__main-title {
    font-size: 2em; /* Smaller H1 for mobile */
  }

  .page-promotions__description {
    font-size: 1em;
  }

  .page-promotions__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-left: 15px;
    padding-right: 15px;
  }

  .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;
    padding-left: 15px;
    padding-right: 15px; /* Ensure button text has internal padding */
  }

  .page-promotions__section {
    padding: 30px 15px;
  }

  .page-promotions__container,
  .page-promotions__card-grid .page-promotions__container,
  .page-promotions__vip-list,
  .page-promotions__faq-list,
  .page-promotions__cta-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent content overflow */
  }

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

  .page-promotions__text-block {
    font-size: 0.95em;
  }

  .page-promotions__card-image {
    height: 180px; /* Adjust card image height for mobile */
  }

  .page-promotions__vip-content {
    flex-direction: column;
    gap: 20px;
  }

  .page-promotions__vip-image {
    width: 100%;
    max-width: 100%;
  }

  /* Mobile image and video responsive rules */
  .page-promotions img {
    max-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__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;
  }
}