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

.page-affiliate-program__hero-section {
  background-color: #000000; /* Primary brand color for hero background */
  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 {
  max-width: 900px;
  z-index: 1;
  position: relative;
}

.page-affiliate-program__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FFFFFF;
  line-height: 1.2;
}

.page-affiliate-program__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-affiliate-program__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-affiliate-program__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2; /* Subtle background image */
}

.page-affiliate-program__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  font-size: 1.1em;
  margin: 10px;
}

.page-affiliate-program__button--primary {
  background-color: #FCBC45; /* Login color as accent */
  color: #000000;
}

.page-affiliate-program__button--primary:hover {
  background-color: #e0a53b;
}

.page-affiliate-program__button--secondary {
  background-color: #FFFFFF;
  color: #000000;
  border: 1px solid #FCBC45;
}

.page-affiliate-program__button--secondary:hover {
  background-color: #f0f0f0;
}

.page-affiliate-program__section {
  padding: 60px 20px;
  background-color: #FFFFFF;
  text-align: center;
}

.page-affiliate-program__section:nth-of-type(even) {
  background-color: #f9f9f9;
}

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

.page-affiliate-program__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #000000;
  font-weight: bold;
}

.page-affiliate-program__section-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}

.page-affiliate-program__features-grid,
.page-affiliate-program__steps-grid,
.page-affiliate-program__tools-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
  text-align: left;
}

.page-affiliate-program__feature-item,
.page-affiliate-program__tool-item {
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border-top: 4px solid #FCBC45;
}

.page-affiliate-program__feature-title,
.page-affiliate-program__tool-title {
  font-size: 1.4em;
  color: #000000;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-affiliate-program__feature-text,
.page-affiliate-program__tool-text {
  color: #666666;
  font-size: 1em;
}

.page-affiliate-program__step-item {
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  position: relative;
  text-align: center;
}

.page-affiliate-program__step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: #FCBC45;
  color: #000000;
  font-size: 2em;
  font-weight: bold;
  border-radius: 50%;
  margin: 0 auto 20px auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-affiliate-program__step-title {
  font-size: 1.5em;
  color: #000000;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-affiliate-program__step-text {
  color: #666666;
  font-size: 1em;
}

.page-affiliate-program__commission-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 30px;
  margin-bottom: 40px;
  background-color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  overflow: hidden;
}

.page-affiliate-program__table-header,
.page-affiliate-program__table-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.page-affiliate-program__table-header {
  background-color: #000000;
  color: #FFFFFF;
  font-weight: bold;
  font-size: 1.1em;
}

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

.page-affiliate-program__table-row:nth-child(odd) {
  background-color: #fefefe;
}

.page-affiliate-program__table-row:nth-child(even) {
  background-color: #f9f9f9;
}

.page-affiliate-program__key-points {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 800px;
  text-align: left;
}

.page-affiliate-program__key-point-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  color: #555555;
  font-size: 1.05em;
}

.page-affiliate-program__key-point-item::before {
  content: '✔';
  color: #FCBC45;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-affiliate-program__faq-list {
  text-align: left;
  margin-top: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-affiliate-program__faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2em;
  color: #FCBC45;
  transition: transform 0.3s ease;
}

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

.page-affiliate-program__faq-answer {
  font-size: 1em;
  color: #666666;
  display: none;
  padding-top: 10px;
}

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

.page-affiliate-program__cta-buttons {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.page-affiliate-program__section-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 40px auto 0 auto;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-affiliate-program__hero-title {
    font-size: 2.8em;
  }

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

@media (max-width: 768px) {
  .page-affiliate-program__hero-section {
    padding: 60px 15px;
  }

  .page-affiliate-program__hero-title {
    font-size: 2.2em;
  }

  .page-affiliate-program__hero-description {
    font-size: 1em;
  }

  .page-affiliate-program__section {
    padding: 40px 15px;
  }

  .page-affiliate-program__section-title {
    font-size: 1.8em;
  }

  .page-affiliate-program__section-description {
    font-size: 0.95em;
  }

  .page-affiliate-program__features-grid,
  .page-affiliate-program__steps-grid,
  .page-affiliate-program__tools-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-affiliate-program__commission-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .page-affiliate-program__table-header,
  .page-affiliate-program__table-row {
    min-width: 400px; /* Ensure table content is readable */
  }

  .page-affiliate-program__button {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  
  /* Ensure all content area images are responsive and do not overflow */
  .page-affiliate-program img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-affiliate-program__hero-title {
    font-size: 1.8em;
  }

  .page-affiliate-program__section-title {
    font-size: 1.5em;
  }

  .page-affiliate-program__button {
    font-size: 1em;
    padding: 12px 20px;
  }
}