.page-affiliate-program {
  padding-top: var(--header-offset, 120px);
  color: #333333;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-affiliate-program__hero-section {
  background: linear-gradient(135deg, #007bff, #28a745);
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.page-affiliate-program__hero-content {
  z-index: 1;
  max-width: 800px;
}

.page-affiliate-program__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-affiliate-program__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  opacity: 0.9;
}

.page-affiliate-program__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.3;
  z-index: 0;
}

.page-affiliate-program__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-affiliate-program__cta-button {
  display: inline-block;
  background-color: #ff8400; /* Complementary color for emphasis */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-affiliate-program__cta-button:hover {
  background-color: #e67300;
  transform: translateY(-3px);
}

.page-affiliate-program__section-title {
  font-size: 2.5em;
  color: #007bff;
  text-align: center;
  margin-bottom: 20px;
  margin-top: 60px;
}

.page-affiliate-program__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #555555;
}

.page-affiliate-program__why-partner {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.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: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-affiliate-program__benefit-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-affiliate-program__benefit-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Ensure min size */
  min-height: 200px; /* Ensure min size */
}

.page-affiliate-program__card-title {
  font-size: 1.5em;
  color: #007bff;
  margin-bottom: 15px;
}

.page-affiliate-program__card-description {
  color: #666666;
}

.page-affiliate-program__how-it-works {
  padding: 60px 0;
}

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

.page-affiliate-program__step-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-affiliate-program__step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #28a745;
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-affiliate-program__step-button {
  display: inline-block;
  background-color: #007bff;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 20px;
  transition: background-color 0.3s ease;
}

.page-affiliate-program__step-button:hover {
  background-color: #0056b3;
}

.page-affiliate-program__commission-details {
  padding: 60px 0;
  background-color: #f0f8ff;
}

.page-affiliate-program__commission-table {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-top: 40px;
}

.page-affiliate-program__table-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid #eeeeee;
}

.page-affiliate-program__table-row:last-child {
  border-bottom: none;
}

.page-affiliate-program__table-header {
  background-color: #007bff;
  color: #ffffff;
  font-weight: bold;
}

.page-affiliate-program__table-cell {
  padding: 20px;
  text-align: center;
  border-right: 1px solid #eeeeee;
}

.page-affiliate-program__table-cell:last-child {
  border-right: none;
}

.page-affiliate-program__disclaimer {
  text-align: center;
  font-size: 0.9em;
  color: #777777;
  margin-top: 30px;
}

.page-affiliate-program__marketing-tools {
  padding: 60px 0;
}

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

.page-affiliate-program__tool-item {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
}

.page-affiliate-program__tool-item img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Ensure min size */
  min-height: 200px; /* Ensure min size */
}

.page-affiliate-program__faq-section {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.page-affiliate-program__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  padding: 20px 30px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.page-affiliate-program__faq-question {
  font-size: 1.3em;
  color: #007bff;
  margin-bottom: 10px;
  cursor: pointer;
  position: relative;
  padding-right: 30px;
}

.page-affiliate-program__faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.2em;
  color: #28a745;
  transition: transform 0.3s ease;
}

.page-affiliate-program__faq-question.active::after {
  content: '-';
  transform: rotate(180deg);
}

.page-affiliate-program__faq-answer {
  color: #666666;
  display: none;
  padding-top: 10px;
  border-top: 1px solid #eee;
  margin-top: 10px;
}

.page-affiliate-program__faq-answer.active {
  display: block;
}

.page-affiliate-program__cta-section {
  background: linear-gradient(45deg, #28a745, #007bff);
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
}

.page-affiliate-program__cta-button--large {
  padding: 18px 40px;
  font-size: 1.4em;
}

@media (max-width: 1024px) {
  .page-affiliate-program__hero-title {
    font-size: 3em;
  }
  .page-affiliate-program__hero-description {
    font-size: 1.2em;
  }
  .page-affiliate-program__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-affiliate-program__hero-title {
    font-size: 2.5em;
  }
  .page-affiliate-program__hero-description {
    font-size: 1em;
  }
  .page-affiliate-program__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-affiliate-program__cta-button--large {
    padding: 15px 30px;
    font-size: 1.2em;
  }
  .page-affiliate-program__section-title {
    font-size: 1.8em;
  }
  .page-affiliate-program__section-intro {
    font-size: 0.95em;
  }
  .page-affiliate-program__benefits-grid,
  .page-affiliate-program__steps-grid,
  .page-affiliate-program__tools-grid {
    grid-template-columns: 1fr;
  }
  .page-affiliate-program__table-row {
    grid-template-columns: 1fr;
  }
  .page-affiliate-program__table-header {
    display: none; /* Hide header on small screens */
  }
  .page-affiliate-program__table-cell {
    border-right: none;
    text-align: left;
    border-bottom: 1px solid #eee;
  }
  .page-affiliate-program__table-cell:first-child {
    font-weight: bold;
    background-color: #f5f5f5;
  }
  .page-affiliate-program__table-row:last-child .page-affiliate-program__table-cell:last-child {
    border-bottom: none;
  }
  /* Ensure images do not overflow */
  .page-affiliate-program img {
    max-width: 100%;
    height: auto;
  }
}