.page-affiliate-program {
  background-color: #F4F7FB;
  color: #1F2D3D;
  font-family: Arial, sans-serif;
}

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

.page-affiliate-program__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding as per rules */
  padding-bottom: 50px;
  overflow: hidden;
  background: linear-gradient(180deg, #2F6BFF 0%, #6FA3FF 100%);
}

.page-affiliate-program__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  max-width: 1920px; /* Ensure image is not too small initially */
  margin-bottom: 30px;
}

.page-affiliate-program__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  color: #FFFFFF;
  padding: 0 20px;
}

.page-affiliate-program__main-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.page-affiliate-program__hero-description {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 40px;
}

.page-affiliate-program__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #FFFFFF;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-affiliate-program__cta-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-affiliate-program__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #1F2D3D;
}

.page-affiliate-program__section-description {
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  color: #1F2D3D;
}

.page-affiliate-program__benefits-section,
.page-affiliate-program__how-it-works-section,
.page-affiliate-program__commission-section,
.page-affiliate-program__tools-section,
.page-affiliate-program__faq-section,
.page-affiliate-program__cta-bottom-section {
  padding: 60px 0;
}

.page-affiliate-program__benefits-section {
  background-color: #FFFFFF;
}

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

.page-affiliate-program__benefit-card {
  background-color: #F4F7FB;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  border: 1px solid #D6E2FF;
}

.page-affiliate-program__benefit-card:hover {
  transform: translateY(-5px);
}

.page-affiliate-program__benefit-card img {
  width: 100%;
  max-width: 250px;
  height: auto;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  min-width: 200px; /* Ensure images are not too small */
  min-height: 200px;
}

.page-affiliate-program__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #000000;
}

.page-affiliate-program__card-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #1F2D3D;
}

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

.page-affiliate-program__step-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #D6E2FF;
}

.page-affiliate-program__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #FFFFFF;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-affiliate-program__workflow-image,
.page-affiliate-program__commission-chart,
.page-affiliate-program__tools-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Ensure images are not too small */
  min-height: 200px;
  object-fit: cover;
}

.page-affiliate-program__learn-more-button {
  display: block;
  width: fit-content;
  margin: 30px auto 0;
  padding: 12px 25px;
  border-radius: 8px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #FFFFFF;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-affiliate-program__learn-more-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

.page-affiliate-program__tool-item {
  background-color: #FFFFFF;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #D6E2FF;
}

.page-affiliate-program__tool-item p {
  color: #1F2D3D;
  font-size: 1rem;
  line-height: 1.6;
}

.page-affiliate-program__faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.page-affiliate-program__faq-item {
  background-color: #FFFFFF;
  border-radius: 12px;
  padding: 25px 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #D6E2FF;
}

.page-affiliate-program__faq-question {
  font-size: 1.25rem;
  font-weight: 600;
  color: #000000;
  margin-bottom: 10px;
}

.page-affiliate-program__faq-answer {
  font-size: 1rem;
  line-height: 1.6;
  color: #1F2D3D;
}

.page-affiliate-program__cta-bottom-section {
  background: linear-gradient(180deg, #2F6BFF 0%, #6FA3FF 100%);
  color: #FFFFFF;
  text-align: center;
  padding: 80px 20px;
}

.page-affiliate-program__cta-bottom-section .page-affiliate-program__section-title,
.page-affiliate-program__cta-bottom-section .page-affiliate-program__section-description {
  color: #FFFFFF;
}

.page-affiliate-program__cta-button--large {
  padding: 18px 40px;
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.page-affiliate-program__secondary-cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  background-color: transparent;
  border: 2px solid #FFFFFF;
  color: #FFFFFF;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.page-affiliate-program__secondary-cta-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 849px) {
  .page-affiliate-program__hero-image {
    max-width: 100%;
    width: 100%;
    height: auto; /* Ensure image scales */
  }

  .page-affiliate-program__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .page-affiliate-program__hero-description {
    font-size: 1.1rem;
  }

  .page-affiliate-program__section-title {
    font-size: 2rem;
  }

  .page-affiliate-program__benefits-grid,
  .page-affiliate-program__steps-grid,
  .page-affiliate-program__tools-grid {
    grid-template-columns: 1fr;
  }

  .page-affiliate-program__benefit-card img,
  .page-affiliate-program__workflow-image,
  .page-affiliate-program__commission-chart,
  .page-affiliate-program__tools-image {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Ensure images are not too small */
    min-height: 200px;
  }

  .page-affiliate-program__cta-button,
  .page-affiliate-program__cta-button--large,
  .page-affiliate-program__learn-more-button,
  .page-affiliate-program__secondary-cta-button {
    width: 100%;
    max-width: 300px; /* Constrain width for smaller screens */
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 549px) {
  .page-affiliate-program__hero-section {
    padding-bottom: 30px;
  }
  .page-affiliate-program__main-title {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }
  .page-affiliate-program__hero-description {
    font-size: 1rem;
  }
  .page-affiliate-program__section-title {
    font-size: 1.8rem;
  }
  .page-affiliate-program__cta-button,
  .page-affiliate-program__cta-button--large,
  .page-affiliate-program__learn-more-button,
  .page-affiliate-program__secondary-cta-button {
    font-size: 1rem;
    padding: 12px 20px;
    max-width: 280px;
  }
  .page-affiliate-program__benefit-card img,
  .page-affiliate-program__workflow-image,
  .page-affiliate-program__commission-chart,
  .page-affiliate-program__tools-image {
    min-width: 200px;
    min-height: 200px;
  }
}