.page-affiliate-program {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
}

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

.page-affiliate-program__dark-bg {
  background-color: #08160F; /* Background */
  color: #F2FFF6; /* Text Main */
}

.page-affiliate-program__light-bg {
  background-color: #11271B; /* Card BG, used for contrast in this dark theme */
  color: #F2FFF6; /* Text Main */
}

.page-affiliate-program__section {
  padding: 80px 0;
}

.page-affiliate-program__section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #F2FFF6; /* Text Main */
  line-height: 1.2;
}

.page-affiliate-program__section-description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #A7D9B8; /* Text Secondary */
}

/* Hero Section */
.page-affiliate-program__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding: 10px 0 60px 0; /* body handles padding-top, this is for internal spacing */
  overflow: hidden;
}

.page-affiliate-program__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height to prevent overly tall hero on desktop */
  overflow: hidden;
}

.page-affiliate-program__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-affiliate-program__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -150px; /* Pull content slightly up over the image, but not overlapping text */
  background: linear-gradient(0deg, #08160F 0%, rgba(8, 22, 15, 0.8) 70%, rgba(8, 22, 15, 0) 100%);
  border-radius: 10px;
  padding-top: 100px;
}

.page-affiliate-program__main-title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.1;
}

.page-affiliate-program__hero-description {
  font-size: 20px;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-affiliate-program__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  box-sizing: border-box;
}

.page-affiliate-program__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6; /* Text Main */
  border: none;
}

.page-affiliate-program__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(34, 199, 104, 0.4);
}

.page-affiliate-program__btn-secondary {
  background: transparent;
  color: #2AD16F; /* Button primary start color for outline */
  border: 2px solid #2AD16F;
  margin-left: 20px;
}

.page-affiliate-program__btn-secondary:hover {
  background: #2AD16F;
  color: #F2FFF6;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.2);
}

/* Why Choose Section */
.page-affiliate-program__why-choose {
  padding-top: 60px;
}

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

.page-affiliate-program__feature-card {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #2E7A4E; /* Border */
}

.page-affiliate-program__feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.page-affiliate-program__feature-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-affiliate-program__feature-title {
  font-size: 24px;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
}

.page-affiliate-program__feature-text {
  font-size: 16px;
  color: #A7D9B8; /* Text Secondary */
}

/* How It Works Section */
.page-affiliate-program__how-it-works {
  background-color: #11271B; /* Card BG */
}

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

.page-affiliate-program__step-card {
  background-color: #08160F; /* Background */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  border: 1px solid #2E7A4E; /* Border */
}

.page-affiliate-program__step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6; /* Text Main */
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.5);
}

.page-affiliate-program__step-icon {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
  margin-top: 30px;
  border-radius: 8px;
  object-fit: cover;
}

.page-affiliate-program__step-title {
  font-size: 24px;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
}

.page-affiliate-program__step-text {
  font-size: 16px;
  color: #A7D9B8; /* Text Secondary */
}

/* Benefits Section */
.page-affiliate-program__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-affiliate-program__benefit-item {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Border */
}

.page-affiliate-program__benefit-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-affiliate-program__benefit-title {
  font-size: 24px;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
}

.page-affiliate-program__benefit-text {
  font-size: 16px;
  color: #A7D9B8; /* Text Secondary */
}

/* FAQ Section */
.page-affiliate-program__faq-section {
  background-color: #08160F; /* Background */
}

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

.page-affiliate-program__faq-item {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  margin-bottom: 20px;
  overflow: hidden;
  border: 1px solid #2E7A4E; /* Border */
}

.page-affiliate-program__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  cursor: pointer;
  background-color: #11271B; /* Card BG */
  border-bottom: 1px solid #2E7A4E; /* Border */
  list-style: none; /* For details/summary */
}

.page-affiliate-program__faq-question::-webkit-details-marker {
  display: none;
}

.page-affiliate-program__faq-item[open] .page-affiliate-program__faq-question {
  border-bottom: 1px solid #2E7A4E;
}

.page-affiliate-program__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #2AD16F; /* Button primary start color */
  margin-left: 15px;
}

.page-affiliate-program__faq-answer {
  padding: 20px 25px;
  font-size: 16px;
  color: #A7D9B8; /* Text Secondary */
  background-color: #08160F; /* Background */
}

.page-affiliate-program__faq-answer p {
  margin: 0;
}

/* CTA Section */
.page-affiliate-program__cta-section {
  text-align: center;
  padding: 80px 0;
  background: linear-gradient(180deg, #0A4B2C 0%, #08160F 100%); /* Deep Green to Background */
  border-top: 1px solid #2E7A4E;
}

.page-affiliate-program__cta-section .page-affiliate-program__section-description {
  margin-bottom: 50px;
}

.page-affiliate-program__cta-section .page-affiliate-program__cta-button {
  margin: 0 10px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-affiliate-program__hero-content {
    margin-top: -100px;
  }
  .page-affiliate-program__main-title {
    font-size: clamp(32px, 4.5vw, 55px);
  }
  .page-affiliate-program__hero-description {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .page-affiliate-program__section {
    padding: 60px 0;
  }
  .page-affiliate-program__section-title {
    font-size: clamp(24px, 6vw, 36px);
  }
  .page-affiliate-program__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-affiliate-program__hero-section {
    min-height: 500px;
    padding-bottom: 40px;
  }
  .page-affiliate-program__hero-content {
    margin-top: -80px;
    padding: 30px 15px;
    padding-top: 80px;
  }
  .page-affiliate-program__main-title {
    font-size: clamp(28px, 7vw, 45px);
  }
  .page-affiliate-program__hero-description {
    font-size: 16px;
  }
  .page-affiliate-program__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin: 10px 0 !important;
    padding: 12px 20px;
  }
  .page-affiliate-program__btn-secondary {
    margin-left: 0 !important;
  }
  .page-affiliate-program__cta-section .page-affiliate-program__cta-button {
    margin: 10px auto !important;
  }

  .page-affiliate-program__features-grid,
  .page-affiliate-program__steps-grid,
  .page-affiliate-program__benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

  .page-affiliate-program__feature-card,
  .page-affiliate-program__step-card,
  .page-affiliate-program__benefit-item,
  .page-affiliate-program__faq-item {
    padding: 20px;
    margin: 0 15px;
  }
  .page-affiliate-program__feature-icon,
  .page-affiliate-program__step-icon,
  .page-affiliate-program__benefit-icon {
    max-width: 200px;
  }

  .page-affiliate-program__faq-question {
    padding: 15px 20px;
    font-size: 16px;
  }
  .page-affiliate-program__faq-answer {
    padding: 15px 20px;
    font-size: 15px;
  }

  .page-affiliate-program img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-affiliate-program__section,
  .page-affiliate-program__card,
  .page-affiliate-program__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-affiliate-program__hero-section,
  .page-affiliate-program__why-choose,
  .page-affiliate-program__how-it-works,
  .page-affiliate-program__benefits,
  .page-affiliate-program__faq-section,
  .page-affiliate-program__cta-section {
    padding-left: 0;
    padding-right: 0;
  }
  .page-affiliate-program__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-affiliate-program__cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .page-affiliate-program__video-section {
    padding-top: 10px !important;
  }
}