.page-promotions {
  color: #ffffff; /* Default text color for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #1a1a1a; /* Inherited from body, ensuring consistency */
}

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

.page-promotions__dark-bg {
  background-color: #26A9E0; /* Primary brand color for dark sections */
  color: #ffffff;
  padding: 60px 0;
}

.page-promotions__light-bg {
  background-color: #ffffff; /* White background for light sections */
  color: #333333; /* Dark text for light background */
  padding: 60px 0;
}

.page-promotions__hero-section {
  position: relative;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  padding-bottom: 60px;
  background-image: linear-gradient(rgba(38, 169, 224, 0.8), rgba(38, 169, 224, 0.8)), url('[GALLERY:hero_main:1920x1080:j88vip1_com,promotions,hero,banner]');
  background-size: cover;
  background-position: center;
}

.page-promotions__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  color: #ffffff;
}

.page-promotions__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-promotions__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  color: inherit; /* Inherits from parent section */
}

.page-promotions__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
  color: inherit; /* Inherits from parent section */
}

.page-promotions__text-link {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
}

.page-promotions__text-link:hover {
  text-decoration: underline;
}

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

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

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

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

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

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

.page-promotions__btn-lg {
  padding: 18px 35px;
  font-size: 1.2em;
}

.page-promotions__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

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

.page-promotions__card {
  background-color: #ffffff; /* White card background */
  color: #333333; /* Dark text for white card */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-promotions__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-promotions__card-title {
  font-size: 1.5em;
  font-weight: bold;
  margin: 20px 20px 10px;
  color: #26A9E0;
}

.page-promotions__card-link {
  color: #26A9E0;
  text-decoration: none;
}

.page-promotions__card-link:hover {
  text-decoration: underline;
}

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

.page-promotions__card .page-promotions__btn-primary, 
.page-promotions__card .page-promotions__btn-secondary {
  margin: 0 20px 20px;
  width: calc(100% - 40px); /* Adjust for padding */
}

.page-promotions__ordered-list, .page-promotions__unordered-list {
  margin: 20px 0 20px 40px;
  padding: 0;
  color: inherit;
}

.page-promotions__ordered-list li, .page-promotions__unordered-list li {
  margin-bottom: 10px;
  font-size: 1.1em;
  color: inherit;
}

.page-promotions__faq-list {
  margin-top: 40px;
}

.page-promotions__faq-item {
  background-color: rgba(255, 255, 255, 0.9); /* Slightly transparent white for light section */
  color: #333333;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  overflow: hidden;
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #f8f8f8;
  border-bottom: 1px solid #eee;
}

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

.page-promotions__faq-title {
  margin: 0;
  color: #333333;
}

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

.page-promotions__faq-item.active .page-promotions__faq-toggle {
  transform: rotate(45deg); /* Changes + to x (or a - depending on font) */
}

.page-promotions__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to accommodate content */
  padding: 20px;
}

.page-promotions__faq-answer p {
  margin: 0 0 10px 0;
  color: #333333;
}

.page-promotions__cta-bottom-section {
  text-align: center;
  padding: 80px 0;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-promotions__hero-title {
    font-size: 2.8em;
  }
  .page-promotions__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-promotions {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .page-promotions__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile padding is correct */
    padding-bottom: 40px;
  }

  .page-promotions__hero-title {
    font-size: 2.2em;
  }

  .page-promotions__hero-description {
    font-size: 1em;
  }

  .page-promotions__section-title {
    font-size: 1.8em;
  }

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

  .page-promotions__btn-primary, .page-promotions__btn-secondary {
    width: calc(100% - 30px) !important; /* Full width with padding */
    margin: 0 auto;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-promotions__btn-lg {
    padding: 15px 25px;
    font-size: 1.1em;
  }

  .page-promotions__grid {
    grid-template-columns: 1fr;
  }

  .page-promotions__card {
    margin: 0 15px;
  }

  .page-promotions__card .page-promotions__btn-primary, 
  .page-promotions__card .page-promotions__btn-secondary {
    width: calc(100% - 40px) !important;
    margin: 0 20px 20px !important;
  }

  .page-promotions__image {
    margin: 20px auto;
  }

  .page-promotions__container {
    padding: 0 15px;
  }

  .page-promotions__ordered-list, .page-promotions__unordered-list {
    margin-left: 20px;
  }

  .page-promotions__ordered-list li, .page-promotions__unordered-list li {
    font-size: 1em;
  }

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

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

  .page-promotions__faq-item.active .page-promotions__faq-answer {
    padding: 15px !important;
  }

  /* Ensure all images are responsive on mobile */
  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-promotions__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }
}

@media (max-width: 480px) {
  .page-promotions__hero-title {
    font-size: 1.8em;
  }
  .page-promotions__hero-description {
    font-size: 0.9em;
  }
  .page-promotions__section-title {
    font-size: 1.5em;
  }
  .page-promotions__btn-primary, .page-promotions__btn-secondary {
    font-size: 0.9em;
    padding: 10px 15px;
  }
  .page-promotions__ordered-list, .page-promotions__unordered-list {
    margin-left: 15px;
  }
  .page-promotions__faq-question {
    font-size: 1em;
  }
}