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

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

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

.page-affiliate-program__section-title {
  font-size: clamp(2em, 3.5vw, 3em); /* H1 font-size rule, clamp for responsiveness */
  font-weight: bold;
  margin-bottom: 20px;
  color: #F2FFF6; /* Text Main */
  line-height: 1.2;
  letter-spacing: -0.02em;
}

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

/* Hero Section */
.page-affiliate-program__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 80px;
  overflow: hidden; /* Ensure image doesn't overflow */
}

.page-affiliate-program__hero-image-wrapper {
  position: relative;
  width: 100%;
  max-height: 700px; /* Limit height for hero image */
  overflow: hidden;
  margin-bottom: 40px; /* Space between image and content */
}

.page-affiliate-program__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
}

.page-affiliate-program__hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  z-index: 1;
  position: relative;
}

.page-affiliate-program__main-title {
  font-size: clamp(2.5em, 5vw, 4em); /* H1 font-size rule, clamp for responsiveness */
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

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

.page-affiliate-program__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-affiliate-program__cta-buttons--center {
  margin-top: 40px;
}

.page-affiliate-program__btn-primary,
.page-affiliate-program__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Button responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

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

.page-affiliate-program__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-affiliate-program__btn-secondary {
  background: transparent;
  color: #2AD16F; /* Match primary button highlight */
  border: 2px solid #2AD16F; /* Border color */
}

.page-affiliate-program__btn-secondary:hover {
  background: rgba(42, 209, 111, 0.1);
  color: #F2FFF6;
  border-color: #F2FFF6;
  transform: translateY(-2px);
}

.page-affiliate-program__btn-link {
  color: #2AD16F; /* Link color */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  display: inline-block;
  margin-top: 15px;
}

.page-affiliate-program__btn-link:hover {
  color: #57E38D; /* Glow */
  text-decoration: underline;
}

/* Why Us Section */
.page-affiliate-program__why-us-section {
  background-color: #0A4B2C; /* Deep Green */
  padding-bottom: 100px;
}

.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 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards have equal height */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

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

.page-affiliate-program__feature-icon {
  width: 100%;
  max-width: 200px; /* Smaller for icons */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px; /* Apply border-radius to images */
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
  object-fit: cover;
}

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

.page-affiliate-program__card-text {
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
  flex-grow: 1; /* Allow text to take available space */
}

/* How It Works Section */
.page-affiliate-program__how-it-works-section {
  background-color: #08160F; /* Background */
}

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

.page-affiliate-program__step-card {
  background-color: #11271B; /* Card BG */
  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;
  height: 100%;
}

.page-affiliate-program__step-number {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
  color: #F2FFF6;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(42, 209, 111, 0.5);
}

.page-affiliate-program__cta-center {
  margin-top: 60px;
  text-align: center;
}

/* Commission Structure Section */
.page-affiliate-program__dark-section {
  background-color: #0A4B2C; /* Deep Green */
}

.page-affiliate-program__commission-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 40px;
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-affiliate-program__commission-table th,
.page-affiliate-program__commission-table td {
  padding: 18px;
  border: 1px solid #2E7A4E; /* Border color */
  text-align: center;
  color: #F2FFF6; /* Text Main */
}

.page-affiliate-program__commission-table th {
  background-color: #0A4B2C; /* Deep Green */
  font-weight: bold;
  font-size: 1.1em;
  color: #F2FFF6;
}

.page-affiliate-program__commission-table tr:nth-child(even) {
  background-color: #0D1D16; /* Slightly different background for rows */
}

.page-affiliate-program__table-note {
  margin-top: 30px;
  font-size: 0.95em;
  color: #A7D9B8; /* Text Secondary */
}

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

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

.page-affiliate-program__product-card {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.page-affiliate-program__product-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency, object-fit will crop */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
}

/* Testimonials Section */
.page-affiliate-program__testimonials-section {
  background-color: #0A4B2C; /* Deep Green */
}

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

.page-affiliate-program__testimonial-card {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-affiliate-program__testimonial-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 3px solid #2AD16F; /* Glow */
  min-width: 100px; /* Min size requirement */
  min-height: 100px; /* Min size requirement */
}

.page-affiliate-program__testimonial-text {
  font-style: italic;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-affiliate-program__testimonial-author {
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  font-size: 1.1em;
}

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

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

.page-affiliate-program__faq-item {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.page-affiliate-program__faq-item summary {
  list-style: none; /* Hide default marker */
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 1.15em;
  color: #F2FFF6; /* Text Main */
  background-color: #0A4B2C; /* Deep Green */
  border-bottom: 1px solid #2E7A4E; /* Divider */
}

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

.page-affiliate-program__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-affiliate-program__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
  color: #2AD16F; /* Glow */
}

.page-affiliate-program__faq-item[open] > summary .page-affiliate-program__faq-toggle {
  transform: rotate(45deg); /* Rotate to form an 'X' or similar */
}

.page-affiliate-program__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
  background-color: #11271B; /* Card BG */
  border-top: 1px solid #2E7A4E; /* Divider */
}

.page-affiliate-program__faq-answer p {
  margin: 0;
  color: #A7D9B8; /* Text Secondary */
}


/* Join Now Section */
.page-affiliate-program__join-now-section {
  padding-bottom: 100px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-affiliate-program__hero-image-wrapper {
    max-height: 500px;
  }
  .page-affiliate-program__section {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  .page-affiliate-program__main-title {
    font-size: 2.2em;
  }
  .page-affiliate-program__hero-description {
    font-size: 1em;
  }
  .page-affiliate-program__section-title {
    font-size: 1.8em;
  }
  .page-affiliate-program__section-description {
    font-size: 0.95em;
  }
  .page-affiliate-program__hero-image-wrapper {
    max-height: 350px;
  }

  /* Mobile image responsiveness */
  .page-affiliate-program img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: unset !important; /* Override min-width for mobile */
    min-height: unset !important; /* Override min-height for mobile */
  }

  .page-affiliate-program__section,
  .page-affiliate-program__card,
  .page-affiliate-program__container,
  .page-affiliate-program__table-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
  
  /* Table responsiveness */
  .page-affiliate-program__table-wrapper {
    overflow-x: auto !important;
  }
  .page-affiliate-program__commission-table {
    min-width: 600px; /* Ensure table content is readable */
  }

  /* Button responsiveness */
  .page-affiliate-program__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
  }
  .page-affiliate-program__btn-primary,
  .page-affiliate-program__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-affiliate-program__video-section {
    padding-top: 10px !important; /* body handles --header-offset, this is for visual spacing */
  }
}

@media (max-width: 480px) {
  .page-affiliate-program__main-title {
    font-size: 1.8em;
  }
  .page-affiliate-program__section-title {
    font-size: 1.5em;
  }
  .page-affiliate-program__hero-image-wrapper {
    max-height: 250px;
  }
  .page-affiliate-program__features-grid,
  .page-affiliate-program__steps-grid,
  .page-affiliate-program__products-grid,
  .page-affiliate-program__testimonial-grid {
    grid-template-columns: 1fr; /* Single column layout */
  }
}

/* Ensure images maintain aspect ratio and don't overflow */
.page-affiliate-program img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Video specific CSS (if video was present, using the general img rules for now as no video is explicitly in the content above) */
.page-affiliate-program video,
.page-affiliate-program__video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

.page-affiliate-program__video-section,
.page-affiliate-program__video-container,
.page-affiliate-program__video-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 768px) {
  .page-affiliate-program video,
  .page-affiliate-program__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-affiliate-program__video-section,
  .page-affiliate-program__video-container,
  .page-affiliate-program__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden !important;
  }
  .page-affiliate-program__video-section {
    padding-top: 10px !important;
  }
}