/* style/promotions.css */
.page-promotions {
  color: #ffffff; /* Dark body background, so light text */
  background-color: transparent; /* Inherit from body or shared.css */
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

/* Hero Section */
.page-promotions__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  background-color: rgba(38, 169, 224, 0.1); /* Light transparent blue */
  margin-bottom: 40px;
  border-radius: 8px;
  overflow: hidden; /* For image */
}

.page-promotions__hero-content {
  max-width: 800px;
  margin-bottom: 30px;
}

.page-promotions__hero-title {
  font-size: 3.2em;
  color: #26A9E0; /* Brand primary color for title */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-promotions__hero-description {
  font-size: 1.2em;
  color: #f0f0f0; /* Slightly off-white for body text */
  line-height: 1.6;
  margin-bottom: 30px;
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-width: 1000px; /* Adjust as needed */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

/* General Section Styling */
.page-promotions__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.page-promotions__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #26A9E0;
  border-radius: 2px;
}

.page-promotions__section-description {
  font-size: 1.1em;
  color: #cccccc;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  line-height: 1.6;
}

/* Promotion Types Section */
.page-promotions__promotion-types {
  padding: 60px 0;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for contrast */
  margin-bottom: 40px;
  border-radius: 8px;
}

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

.page-promotions__promo-card {
  background-color: rgba(255, 255, 255, 0.1); /* Card background, dark-friendly */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-promotions__promo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

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

.page-promotions__card-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-promotions__card-text {
  font-size: 1em;
  color: #e0e0e0;
  line-height: 1.6;
  flex-grow: 1; /* Allow text to take up available space */
  margin-bottom: 20px;
}

/* Terms Section */
.page-promotions__terms-section {
  padding: 60px 0;
  margin-bottom: 40px;
}

.page-promotions__terms-list {
  list-style: none;
  padding: 0;
  margin-top: 50px;
}

.page-promotions__terms-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-left: 5px solid #26A9E0;
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-promotions__terms-subtitle {
  font-size: 1.6em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-promotions__terms-text {
  font-size: 1em;
  color: #e0e0e0;
  line-height: 1.7;
}

/* How to Participate Section */
.page-promotions__how-to-participate {
  padding: 60px 0;
  background-color: rgba(255, 255, 255, 0.05);
  margin-bottom: 40px;
  border-radius: 8px;
}

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

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

.page-promotions__step-icon {
  width: 60px;
  height: 60px;
  background-color: #26A9E0;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

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

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

.page-promotions__cta-wrapper {
  text-align: center;
  margin-top: 60px;
}

/* FAQ Section */
.page-promotions__faq-section {
  padding: 60px 0;
  margin-bottom: 40px;
}

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

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

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  cursor: pointer;
  background-color: rgba(38, 169, 224, 0.2); /* Slightly darker for question */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

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

.page-promotions__faq-title {
  font-size: 1.2em;
  color: #ffffff;
  margin: 0;
  flex-grow: 1;
}

.page-promotions__faq-toggle {
  font-size: 1.8em;
  color: #26A9E0;
  font-weight: bold;
  margin-left: 20px;
  transition: transform 0.3s ease;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
  transform: rotate(45deg); /* Change to X or rotate for minus */
}

.page-promotions__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 30px;
  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 show content */
  padding: 20px 30px;
}

.page-promotions__faq-text {
  font-size: 1em;
  color: #e0e0e0;
  line-height: 1.7;
}

/* Final CTA Section */
.page-promotions__cta-final-section {
  padding: 80px 20px;
  background-color: #26A9E0; /* Use primary brand color for impact */
  text-align: center;
  border-radius: 8px;
  margin-bottom: 40px;
}

.page-promotions__cta-final-title {
  font-size: 2.8em;
  color: #FFFFFF;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-promotions__cta-final-description {
  font-size: 1.2em;
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

/* Buttons */
.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
  box-sizing: border-box;
  text-align: center;
}

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

.page-promotions__cta-button--primary:hover {
  background-color: #d16d06;
  border-color: #d16d06;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-promotions__cta-button--secondary:hover {
  background-color: #26A9E0;
  color: #FFFFFF;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__hero-title {
    font-size: 2.8em;
  }
  .page-promotions__section-title {
    font-size: 2.2em;
  }
  .page-promotions__cta-final-title {
    font-size: 2.4em;
  }
  .page-promotions__card-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-promotions {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-promotions__hero-section {
    padding: 40px 15px;
  }
  .page-promotions__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-promotions__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }
  .page-promotions__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-promotions__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-promotions__card-grid {
    grid-template-columns: 1fr; /* Stack cards vertically */
  }
  .page-promotions__promo-card {
    padding: 25px;
  }
  .page-promotions__card-image {
    height: 180px;
  }
  .page-promotions__card-title {
    font-size: 1.5em;
  }
  .page-promotions__terms-item,
  .page-promotions__step-card,
  .page-promotions__faq-item {
    padding: 20px;
    margin-left: 0;
    margin-right: 0;
  }
  .page-promotions__faq-question {
    padding: 15px 20px;
  }
  .page-promotions__faq-answer {
    padding: 0 20px;
  }
  .page-promotions__faq-item.active .page-promotions__faq-answer {
    padding: 15px 20px;
  }
  .page-promotions__cta-final-section {
    padding: 50px 15px;
  }
  .page-promotions__cta-final-title {
    font-size: 2em;
  }
  .page-promotions__cta-final-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  /* Mobile image responsiveness */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Mobile video responsiveness (if any) */
  .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: var(--header-offset, 120px) !important; /* Ensure header offset for video section */
  }

  /* Mobile button responsiveness */
  .page-promotions__cta-button,
  .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; /* Add padding for full width buttons */
    padding-right: 15px; /* Add padding for full width buttons */
  }
  .page-promotions__cta-buttons,
  .page-promotions__button-group,
  .page-promotions__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-promotions__cta-buttons {
    display: flex;
    flex-direction: column; /* Stack buttons vertically on mobile */
  }

  /* Content area containers for mobile */
  .page-promotions__hero-section,
  .page-promotions__promotion-types,
  .page-promotions__terms-section,
  .page-promotions__how-to-participate,
  .page-promotions__faq-section,
  .page-promotions__cta-final-section,
  .page-promotions__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Ensure content area images are not too small */
/* This rule targets any img within .page-promotions that is not a small icon */
.page-promotions img:not([class*="icon"]):not([class*="logo"]) {
  min-width: 200px;
  min-height: 200px;
}

/* Ensure no CSS filters are applied to images */
.page-promotions img {
  filter: none !important;
}