/* style/promotions.css */

/* Base styles for the promotions page */
.page-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #000000; /* Matching body background */
}

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

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

.page-promotions__dark-bg {
  background-color: #000000;
  color: #ffffff;
}

.page-promotions__light-bg {
  background-color: #1a1a1a; /* Slightly lighter dark for contrast sections */
  color: #ffffff;
}

.page-promotions__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-promotions__section-text {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px auto;
}

/* Hero Section */
.page-promotions__hero-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 100px 20px 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure spacing below fixed header */
  background-color: #000000;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.page-promotions__hero-content {
  flex: 1;
  max-width: 600px;
  text-align: left;
  z-index: 1;
}

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

.page-promotions__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  line-height: 1.5;
}

.page-promotions__hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.page-promotions__hero-media {
  flex: 1;
  min-width: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.page-promotions__video {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  cursor: pointer; /* Indicates it's clickable */
}

/* Buttons */
.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;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
  box-sizing: border-box;
}

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

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

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

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

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

.page-promotions__card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white on dark background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  color: #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

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

.page-promotions__card-text {
  font-size: 1em;
  margin-bottom: 20px;
  line-height: 1.5;
  flex-grow: 1;
}

.page-promotions__card .page-promotions__btn-primary,
.page-promotions__card .page-promotions__btn-secondary {
  width: 100%;
  margin-top: auto;
}

/* How-to-Join Section */
.page-promotions__how-to-join .page-promotions__section-title {
  color: #26A9E0;
}

.page-promotions__how-to-join .page-promotions__section-text {
  color: #ffffff;
}

.page-promotions__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-promotions__steps-list li {
  background-color: rgba(255, 255, 255, 0.08);
  border-left: 5px solid #26A9E0;
  margin-bottom: 20px;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-promotions__step-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-promotions__step-title strong {
  color: #ffffff;
}

.page-promotions__steps-list p {
  font-size: 1em;
  line-height: 1.5;
  color: #f0f0f0;
  text-align: left;
}

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

/* Terms & Conditions Section */
.page-promotions__terms-conditions .page-promotions__section-title {
  color: #26A9E0;
}

.page-promotions__terms-conditions .page-promotions__section-text {
  color: #ffffff;
}

.page-promotions__terms-list {
  list-style: disc;
  padding-left: 30px;
  margin-top: 30px;
  color: #ffffff;
}

.page-promotions__terms-list li {
  margin-bottom: 15px;
  font-size: 1em;
  line-height: 1.6;
}

.page-promotions__terms-list p {
  text-align: left;
  color: #f0f0f0;
}

/* Download App Section */
.page-promotions__download-app .page-promotions__section-title {
  color: #26A9E0;
}

.page-promotions__download-app .page-promotions__section-text {
  color: #ffffff;
}

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

/* FAQ Section */
.page-promotions__faq-section .page-promotions__section-title {
  color: #26A9E0;
}

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

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

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #26A9E0;
  transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-promotions__faq-heading {
  margin: 0;
  color: #26A9E0;
  font-size: 1.2em;
}

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

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

.page-promotions__faq-answer p {
  margin-bottom: 15px;
  padding-top: 10px;
  text-align: left;
}

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

.page-promotions__faq-item.active .page-promotions__faq-toggle {
  transform: rotate(45deg);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-promotions__hero-section {
    flex-direction: column;
    text-align: center;
    padding: 80px 20px 40px 20px;
  }

  .page-promotions__hero-content {
    max-width: 100%;
    margin-bottom: 40px;
  }

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

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

  .page-promotions__hero-buttons {
    justify-content: center;
  }

  .page-promotions__hero-media {
    min-width: unset;
    width: 100%;
  }

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

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

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

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

  .page-promotions__hero-section {
    padding: 60px 15px 30px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure spacing below fixed header for mobile */
  }

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

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

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

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Images responsive */
  .page-promotions img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-promotions__card-image {
    height: auto; /* Allow auto height for mobile cards */
  }

  /* Video responsive */
  .page-promotions video,
  .page-promotions__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-promotions__hero-media,
  .page-promotions__video-section,
  .page-promotions__video-container,
  .page-promotions__video-wrapper,
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__download-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

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

  .page-promotions__card-content {
    padding: 20px;
  }

  .page-promotions__card-title {
    font-size: 1.4em;
  }

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

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

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

/* Ensure content area images do not display smaller than 200px */
.page-promotions img {
  min-width: 200px;
  min-height: 200px;
}

/* Specific adjustment for card images to allow smaller display within card while maintaining min-size for generation */
.page-promotions__card-image {
  min-width: unset; /* Override general img min-width for card images to allow flexible scaling */
  min-height: unset;
  width: 100%;
  height: 250px; /* Fixed height for consistency, will be overridden by mobile */
}

@media (max-width: 768px) {
  .page-promotions__card-image {
    height: auto !important;
    min-width: 200px !important; /* Re-apply min-width for mobile card images if they become too small */
    min-height: 200px !important;
  }
}