/* style/promotions.css */

/* Base Styles */
.page-promotions {
  font-family: Arial, sans-serif;
  color: #333333; /* Deep gray for readability on light background */
  background-color: var(--background-color, #FFFFFF); /* Use shared background variable or default white */
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

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

.page-promotions__section:nth-of-type(even) {
  background-color: #f9f9f9; /* Light gray for alternating sections */
}

.page-promotions__section-title {
  font-size: 36px;
  color: #26A9E0; /* Primary brand color */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-promotions__sub-title {
  font-size: 28px;
  color: #26A9E0;
  margin-top: 30px;
  margin-bottom: 20px;
}

.page-promotions__paragraph {
  font-size: 17px;
  margin-bottom: 15px;
  text-align: justify;
}

.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  margin: 10px;
  text-align: center;
}

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

.page-promotions__btn-primary:hover {
  background: #1e87b7; /* Slightly darker on hover */
  box-shadow: 0 6px 15px rgba(38, 169, 224, 0.4);
}

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

.page-promotions__btn-secondary:hover {
  background: #f0f0f0;
  box-shadow: 0 6px 15px rgba(38, 169, 224, 0.2);
}

.page-promotions__btn-small {
  padding: 10px 20px;
  font-size: 16px;
  margin: 5px;
}

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

.page-promotions__inline-link:hover {
  color: #1e87b7;
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #26A9E0, #a0dfff); /* Soft gradient background */
  color: #ffffff;
  overflow: hidden; /* Ensure content doesn't overflow */
}

.page-promotions__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-promotions__hero-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  margin-bottom: 40px;
}

.page-promotions__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 0 20px;
}

.page-promotions__main-title {
  font-size: 52px;
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.2;
  color: #FFFFFF; /* White text on blue background */
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.page-promotions__intro-text {
  font-size: 22px;
  margin-bottom: 30px;
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
}

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

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

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

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

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

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

/* Feature List */
.page-promotions__feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.page-promotions__feature-item {
  background: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease;
  color: #333333;
}

.page-promotions__feature-item:hover {
  transform: translateY(-5px);
}

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

.page-promotions__feature-text {
  font-size: 16px;
}

.page-promotions__button-group {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

/* Referral & VIP Section */
.page-promotions__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 30px;
}

.page-promotions__text-content {
  flex: 1;
}

.page-promotions__image-content {
  flex: 1;
  text-align: center;
}

.page-promotions__image-full {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

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

.page-promotions__list-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.09);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #333333;
}

.page-promotions__list-title {
  font-size: 22px;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: 700;
}

.page-promotions__list-text {
  font-size: 16px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-promotions__bullet-list {
  list-style: disc;
  padding-left: 25px;
  margin-top: 20px;
  font-size: 16px;
}

.page-promotions__bullet-list .page-promotions__list-item {
  background: none;
  box-shadow: none;
  padding: 5px 0;
  margin-bottom: 10px;
  text-align: left;
  align-items: flex-start;
  color: #333333;
}

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

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

.page-promotions__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px;
  opacity: 0;
  background: #f0f8ff; /* Light blue background for answer */
  color: #333333;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
  max-height: 2000px !important; /* Use!important ensure priority, value large enough to accommodate any content */
  padding: 20px 20px !important;
  opacity: 1;
  border-radius: 0 0 8px 8px;
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #26A9E0; /* Primary brand color for question background */
  color: #ffffff; /* White text for contrast */
  border: 1px solid #26A9E0;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  position: relative;
}

.page-promotions__faq-question:hover {
  background: #1e87b7; /* Slightly darker on hover */
  border-color: #1e87b7;
}

.page-promotions__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click events */
  color: #ffffff; /* Ensure h3 text is white */
}

.page-promotions__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #ffffff; /* White toggle icon */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click events */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' effect, or keep as '-' */
  color: #ffffff;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__main-title {
    font-size: 44px;
  }
  .page-promotions__intro-text {
    font-size: 20px;
  }
  .page-promotions__section-title {
    font-size: 30px;
  }
  .page-promotions__sub-title {
    font-size: 24px;
  }
  .page-promotions__card-image {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .page-promotions {
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    font-size: 16px;
    line-height: 1.6;
  }

  /* Reset padding for full-width sections */
  .page-promotions__section {
    padding-left: 0;
    padding-right: 0;
  }
  .page-promotions__hero-section {
    padding-left: 0;
    padding-right: 0;
  }

  /* Apply internal padding to containers */
  .page-promotions__container {
    padding: 0 15px;
  }

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

  .page-promotions__hero-section {
    padding: 30px 0;
  }

  .page-promotions__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-promotions__intro-text {
    font-size: 18px;
    margin-bottom: 25px;
  }

  /* Images responsiveness */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
    filter: none !important; /* Ensure no filter on images */
  }

  /* Content area images CSS size lower limit: 200px */
  .page-promotions__card-image, 
  .page-promotions__image-full {
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-promotions__section, 
  .page-promotions__card, 
  .page-promotions__container, 
  .page-promotions__content-wrapper, 
  .page-promotions__text-content, 
  .page-promotions__image-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-promotions__sub-title {
    font-size: 20px;
    margin-top: 25px;
    margin-bottom: 15px;
  }

  /* Buttons 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: 12px 20px;
    font-size: 16px;
    margin: 8px 0; /* Stack buttons vertically */
  }

  .page-promotions__button-group {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 0 15px;
  }

  .page-promotions__card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-promotions__card {
    padding: 20px;
  }

  .page-promotions__card-image {
    height: 160px;
  }

  .page-promotions__feature-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-promotions__content-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .page-promotions__step-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-promotions__list-item {
    padding: 25px;
  }

  /* FAQ mobile */
  .page-promotions__faq-question {
    padding: 15px;
    flex-wrap: wrap;
    border-radius: 6px;
  }
  
  .page-promotions__faq-question h3 {
    font-size: 16px;
    width: calc(100% - 40px); /* Adjust for toggle icon */
    color: #ffffff;
  }
  
  .page-promotions__faq-toggle {
    margin-left: 10px;
    width: 28px;
    height: 28px;
    font-size: 24px;
    color: #ffffff;
  }
  
  .page-promotions__faq-answer {
    padding: 0 15px;
  }
  
  .page-promotions__faq-item.active .page-promotions__faq-answer {
    padding: 15px !important;
  }
  .page-promotions__faq-item {
    border-radius: 6px;
  }
}

/* Ensure no filter on images */
.page-promotions img {
  filter: none !important;
}