/* style/promotions-referral-program.css */

/* Base styles for the page content area */
.page-promotions-referral-program {
  font-family: Arial, sans-serif;
  color: #333333; /* Dark text for light body background */
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

/* Container for general content centering and max-width */
.page-promotions-referral-program__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Section styling */
.page-promotions-referral-program__section-title {
  font-size: 36px;
  color: #017439; /* Brand primary color for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-promotions-referral-program__section-description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #555555;
}

/* Dark background sections */
.page-promotions-referral-program__dark-bg {
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
  padding: 80px 0;
}
.page-promotions-referral-program__dark-bg .page-promotions-referral-program__section-title,
.page-promotions-referral-program__dark-bg .page-promotions-referral-program__section-description {
  color: #ffffff;
}

/* Light background sections */
.page-promotions-referral-program__light-bg {
  background-color: #ffffff; /* Auxiliary color */
  color: #333333;
  padding: 80px 0;
}

/* Hero Section */
.page-promotions-referral-program__hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  padding: 100px 0;
  min-height: 600px;
  position: relative;
  overflow: hidden;
}

.page-promotions-referral-program__hero-section .page-promotions-referral-program__container {
  display: flex;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.page-promotions-referral-program__hero-content {
  flex: 1;
  max-width: 600px;
}

.page-promotions-referral-program__hero-title {
  font-size: 48px;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-promotions-referral-program__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-promotions-referral-program__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-promotions-referral-program__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* Enforce min-size */
  min-height: 200px; /* Enforce min-size */
}

/* CTA Buttons */
.page-promotions-referral-program__cta-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  justify-content: flex-start;
}

.page-promotions-referral-program__btn-primary,
.page-promotions-referral-program__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%; /* Ensure button adapts to container */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-promotions-referral-program__btn-primary {
  background-color: #C30808; /* Register color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-promotions-referral-program__btn-primary:hover {
  background-color: #e02020;
  border-color: #e02020;
}

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

.page-promotions-referral-program__btn-secondary:hover {
  background-color: #ffffff;
  color: #017439;
}

/* How It Works Section */
.page-promotions-referral-program__how-it-works-section {
  text-align: center;
}

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

.page-promotions-referral-program__step-card {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease;
}

.page-promotions-referral-program__step-card:hover {
  transform: translateY(-5px);
}

.page-promotions-referral-program__step-image {
  width: 100%; /* Adjust to fit card, but respect min-size */
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  min-width: 200px; /* Enforce min-size */
  min-height: 200px; /* Enforce min-size */
}

.page-promotions-referral-program__step-title {
  font-size: 24px;
  color: #017439;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-promotions-referral-program__step-text {
  font-size: 16px;
  color: #555555;
}
.page-promotions-referral-program__step-text a {
  color: #017439;
  text-decoration: underline;
}

/* Benefits Section */
.page-promotions-referral-program__benefits-section {
  text-align: center;
}

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

.page-promotions-referral-program__benefit-card {
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  background-color: #ffffff;
  color: #333333;
}

.page-promotions-referral-program__benefit-icon {
  width: 100%; /* Adjust to fit card, but respect min-size */
  max-width: 150px;
  height: auto;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min-size */
  min-height: 200px; /* Enforce min-size */
}

.page-promotions-referral-program__benefit-title {
  font-size: 24px;
  color: #017439;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-promotions-referral-program__benefit-text {
  font-size: 16px;
  color: #555555;
}

/* Terms Section */
.page-promotions-referral-program__terms-section {
  text-align: center;
}

.page-promotions-referral-program__terms-list {
  list-style: none;
  padding: 0;
  text-align: left;
  max-width: 800px;
  margin: 50px auto 0 auto;
}

.page-promotions-referral-program__terms-item {
  background-color: #f9f9f9;
  border-left: 5px solid #017439;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 5px;
  font-size: 16px;
  color: #333333;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}
.page-promotions-referral-program__terms-item a {
  color: #017439;
  text-decoration: underline;
}

/* Tips Section */
.page-promotions-referral-program__tips-section {
  text-align: center;
}

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

.page-promotions-referral-program__tip-card {
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  background-color: #ffffff;
  color: #333333;
}

.page-promotions-referral-program__tip-title {
  font-size: 24px;
  color: #017439;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-promotions-referral-program__tip-text {
  font-size: 16px;
  color: #555555;
}

/* FAQ Section */
.page-promotions-referral-program__faq-section {
  text-align: center;
}

.page-promotions-referral-program__faq-list {
  max-width: 900px;
  margin: 50px auto 0 auto;
}

.page-promotions-referral-program__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-promotions-referral-program__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background-color: #ffffff;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  color: #017439;
  transition: background-color 0.3s ease;
}

.page-promotions-referral-program__faq-question:hover {
  background-color: #f0f0f0;
}

.page-promotions-referral-program__faq-title {
  margin: 0;
  font-size: 18px;
  color: #017439;
}

.page-promotions-referral-program__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #017439;
  transition: transform 0.3s ease;
}

.page-promotions-referral-program__faq-item.active .page-promotions-referral-program__faq-toggle {
  transform: rotate(45deg); /* Change + to X or - */
}

.page-promotions-referral-program__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #f9f9f9;
  color: #555555;
}

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

.page-promotions-referral-program__faq-answer p {
  margin-bottom: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #555555;
}

/* CTA Section */
.page-promotions-referral-program__cta-section {
  text-align: center;
}
.page-promotions-referral-program__cta-section .page-promotions-referral-program__cta-buttons {
  justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-promotions-referral-program__hero-section .page-promotions-referral-program__container {
    flex-direction: column;
    text-align: center;
  }

  .page-promotions-referral-program__hero-content {
    max-width: 100%;
  }

  .page-promotions-referral-program__hero-title {
    font-size: 40px;
  }

  .page-promotions-referral-program__hero-image-wrapper {
    margin-top: 40px;
  }

  .page-promotions-referral-program__cta-buttons {
    justify-content: center;
  }
}

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

  .page-promotions-referral-program__section-title {
    font-size: 28px;
  }

  .page-promotions-referral-program__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-promotions-referral-program__hero-title {
    font-size: 32px;
  }

  .page-promotions-referral-program__hero-description {
    font-size: 18px;
  }

  .page-promotions-referral-program__cta-buttons {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .page-promotions-referral-program__btn-primary,
  .page-promotions-referral-program__btn-secondary {
    padding: 12px 25px;
    font-size: 16px;
    width: 100% !important; /* Enforce full width for mobile buttons */
    max-width: 300px !important; /* Max width for mobile buttons */
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Image responsiveness */
  .page-promotions-referral-program img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important; /* Ensure min-size even on mobile */
    min-height: 200px !important; /* Ensure min-size even on mobile */
  }

  .page-promotions-referral-program__hero-image-wrapper,
  .page-promotions-referral-program__step-card,
  .page-promotions-referral-program__benefit-card,
  .page-promotions-referral-program__tip-card,
  .page-promotions-referral-program__faq-item,
  .page-promotions-referral-program__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent overflow */
  }

  /* Ensure content padding for sections */
  .page-promotions-referral-program__dark-bg,
  .page-promotions-referral-program__light-bg {
    padding: 40px 0;
  }
  .page-promotions-referral-program__hero-section {
    padding: 60px 0;
  }
  .page-promotions-referral-program__hero-section .page-promotions-referral-program__container {
    padding: 0; /* Container itself shouldn't add extra padding */
  }

  .page-promotions-referral-program__faq-question {
    padding: 15px 20px;
  }
  .page-promotions-referral-program__faq-answer {
    padding: 0 20px;
  }
  .page-promotions-referral-program__faq-item.active .page-promotions-referral-program__faq-answer {
    padding: 15px 20px;
  }

  .page-promotions-referral-program__how-it-works-section .page-promotions-referral-program__step-image,
  .page-promotions-referral-program__benefits-section .page-promotions-referral-program__benefit-icon {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

}

@media (max-width: 480px) {
  .page-promotions-referral-program__hero-title {
    font-size: 28px;
  }
  .page-promotions-referral-program__hero-description {
    font-size: 16px;
  }
  .page-promotions-referral-program__section-title {
    font-size: 24px;
  }
  .page-promotions-referral-program__step-title,
  .page-promotions-referral-program__benefit-title,
  .page-promotions-referral-program__tip-title,
  .page-promotions-referral-program__faq-title {
    font-size: 20px;
  }
}