.page-affiliates {
  color: #ffffff; /* Light text for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-affiliates__hero-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 100%);
  padding: 80px 0;
  text-align: center;
  color: #ffffff;
}

.page-affiliates__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.3;
}

.page-affiliates__hero-container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-affiliates__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFD700; /* Gold accent */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  line-height: 1.2;
}

.page-affiliates__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-affiliates__hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-affiliates__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
}

.page-affiliates__btn--primary {
  background-color: #FFD700; /* Gold */
  color: #0d0d0d; /* Dark text for gold background */
  border: 2px solid #FFD700;
}

.page-affiliates__btn--primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-affiliates__btn--secondary {
  background-color: transparent;
  color: #FFD700; /* Gold text */
  border: 2px solid #FFD700;
}

.page-affiliates__btn--secondary:hover {
  background-color: rgba(255, 215, 0, 0.1);
  transform: translateY(-2px);
}

.page-affiliates__section-title {
  font-size: 2.5em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 20px;
  padding-top: 60px;
}

.page-affiliates__section-intro {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-affiliates__why-join-section,
.page-affiliates__how-it-works-section,
.page-affiliates__faq-section,
.page-affiliates__detail-pages-section,
.page-affiliates__contact-section {
  padding: 60px 0;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter dark background for sections */
  margin-bottom: 20px;
}

.page-affiliates__why-join-section {
  background-color: transparent; /* No background for first section after hero */
}

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

.page-affiliates__feature-card,
.page-affiliates__step-card {
  background-color: rgba(255, 255, 255, 0.1);
  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;
}

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

.page-affiliates__feature-icon {
  width: 200px; /* Min size 200px */
  height: 150px;
  object-fit: cover;
  margin: 0 auto 20px;
  border-radius: 8px;
}

.page-affiliates__feature-title,
.page-affiliates__step-number {
  font-size: 1.8em;
  color: #007bff; /* Blue accent */
  margin-bottom: 15px;
}

.page-affiliates__feature-description,
.page-affiliates__step-description {
  color: #cccccc;
  font-size: 1em;
}

.page-affiliates__step-number {
  font-size: 2.2em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-affiliates__call-to-action {
  text-align: center;
  margin-top: 40px;
}

.page-affiliates__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-affiliates__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-affiliates__faq-question {
  font-size: 1.3em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-affiliates__faq-answer {
  color: #cccccc;
  font-size: 1em;
}

.page-affiliates__detail-list {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.page-affiliates__detail-card {
  background-color: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 30px;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-affiliates__detail-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-affiliates__detail-title {
  font-size: 1.5em;
  margin-bottom: 15px;
}

.page-affiliates__detail-title a {
  color: #007bff; /* Blue for internal link */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-affiliates__detail-title a:hover {
  color: #4da3ff;
}

.page-affiliates__detail-description {
  color: #cccccc;
  font-size: 0.95em;
  margin-bottom: 20px;
}

.page-affiliates__btn--small {
  padding: 10px 20px;
  font-size: 0.9em;
  background-color: #007bff;
  color: #ffffff;
  border: 2px solid #007bff;
}

.page-affiliates__btn--small:hover {
  background-color: #0056b3;
  border-color: #0056b3;
}

.page-affiliates__btn--large {
  padding: 18px 40px;
  font-size: 1.3em;
  background-color: #FFD700;
  color: #0d0d0d;
  border: 2px solid #FFD700;
}

.page-affiliates__btn--large:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-affiliates__hero-title {
    font-size: 2.8em;
  }
  .page-affiliates__section-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-affiliates__hero-title {
    font-size: 2.2em;
  }
  .page-affiliates__hero-description {
    font-size: 1.1em;
  }
  .page-affiliates__section-title {
    font-size: 1.8em;
  }
  .page-affiliates__section-intro {
    font-size: 1em;
  }
  .page-affiliates__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-affiliates__btn {
    width: 100%;
    max-width: 300px;
  }
  /* Mobile content area images must not overflow */
  .page-affiliates__hero-image,
  .page-affiliates__feature-icon {
    max-width: 100%;
    height: auto;
    object-fit: contain; /* Ensure images fit without cropping too much */
  }
  /* Ensure no content causes horizontal scroll */
  .page-affiliates {
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  .page-affiliates__hero-title {
    font-size: 1.8em;
  }
  .page-affiliates__hero-description {
    font-size: 0.95em;
  }
  .page-affiliates__section-title {
    font-size: 1.5em;
  }
  .page-affiliates__btn--large {
    font-size: 1.1em;
    padding: 15px 30px;
  }
  .page-affiliates__feature-icon {
    width: 200px; /* Maintain min size */
    height: 150px;
  }
}