.page-affiliate {
  color: #1A1A1A; /* Dark text for default white 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-affiliate__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #1A1A1A;
  color: #ffffff;
  padding: 0; /* Hero image will fill, content is absolutely positioned */
}

.page-affiliate__hero-container {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
}

.page-affiliate__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6); /* Slightly darken image for text readability */
}

.page-affiliate__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  max-width: 900px;
  width: 90%;
  padding: 20px;
  box-sizing: border-box;
  z-index: 10;
}

.page-affiliate__hero-title {
  font-size: 3.5em;
  color: #FFD700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-affiliate__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-affiliate__cta-button {
  display: inline-block;
  background-color: #FFD700;
  color: #1A1A1A;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

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

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

.page-affiliate__section-title {
  font-size: 2.5em;
  color: #1A1A1A;
  text-align: center;
  margin-bottom: 30px;
  position: relative;
}

.page-affiliate__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #FFD700;
  margin: 10px auto 0;
}

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

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

.page-affiliate__benefit-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-affiliate__benefit-icon {
  width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-affiliate__card-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-affiliate__card-description {
  font-size: 1em;
  color: #555555;
}

.page-affiliate__how-it-works-section {
  background-color: #f9f9f9;
  padding: 60px 0;
}

.page-affiliate__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.page-affiliate__step-item {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
}

.page-affiliate__step-item:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-affiliate__step-title {
  font-size: 1.8em;
  color: #1A1A1A;
  margin-bottom: 15px;
}

.page-affiliate__step-description {
  font-size: 1em;
  color: #555555;
}

.page-affiliate__step-description a {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
}

.page-affiliate__step-description a:hover {
  text-decoration: underline;
}

.page-affiliate__cta-button--bottom {
  margin-top: 60px;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.page-affiliate__commission-section {
  padding: 60px 0;
}

.page-affiliate__commission-details,
.page-affiliate__commission-flexibility {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  margin-top: 30px;
}

.page-affiliate__commission-subtitle {
  font-size: 2em;
  color: #FFD700;
  margin-bottom: 20px;
  text-align: center;
}

.page-affiliate__commission-text {
  font-size: 1.1em;
  color: #333333;
  margin-bottom: 20px;
}

.page-affiliate__commission-table-container {
  overflow-x: auto;
  margin-bottom: 30px;
}

.page-affiliate__commission-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  min-width: 600px;
}

.page-affiliate__commission-table th,
.page-affiliate__commission-table td {
  border: 1px solid #ddd;
  padding: 12px 15px;
  text-align: left;
}

.page-affiliate__commission-table th {
  background-color: #1A1A1A;
  color: #FFD700;
  font-weight: bold;
  text-transform: uppercase;
}

.page-affiliate__commission-table tr:nth-child(even) {
  background-color: #f2f2f2;
}

.page-affiliate__commission-table tr:hover {
  background-color: #e9e9e9;
}

.page-affiliate__commission-note {
  font-style: italic;
  color: #777777;
  margin-top: 10px;
  font-size: 0.95em;
}

.page-affiliate__custom-deals-list {
  list-style: disc inside;
  margin-top: 20px;
  padding-left: 20px;
  color: #333333;
}

.page-affiliate__custom-deals-list li {
  margin-bottom: 10px;
}

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

.page-affiliate__faq-accordion {
  margin-top: 40px;
}

.page-affiliate__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-affiliate__faq-question {
  font-size: 1.3em;
  color: #1A1A1A;
  padding: 20px;
  cursor: pointer;
  margin: 0;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-affiliate__faq-question::after {
  content: '+';
  font-size: 1.5em;
  color: #FFD700;
  transition: transform 0.3s ease;
}

.page-affiliate__faq-item.active .page-affiliate__faq-question::after {
  transform: rotate(45deg);
}

.page-affiliate__faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-affiliate__faq-item.active .page-affiliate__faq-answer {
  max-height: 200px; /* Adjust based on content */
  padding: 10px 20px 20px;
}

.page-affiliate__faq-answer p {
  margin: 0;
  color: #555555;
}

.page-affiliate__cta-section {
  background-color: #1A1A1A;
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
}

.page-affiliate__cta-section .page-affiliate__section-title {
  color: #FFD700;
}

.page-affiliate__cta-section .page-affiliate__section-intro {
  color: #f0f0f0;
  margin-bottom: 40px;
}

.page-affiliate__cta-button--large {
  padding: 20px 40px;
  font-size: 1.3em;
}

.page-affiliate__cta-contact {
  margin-top: 30px;
  font-size: 1.1em;
}

.page-affiliate__contact-link {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
}

.page-affiliate__contact-link:hover {
  text-decoration: underline;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  .page-affiliate__hero-title {
    font-size: 2.8em;
  }

  .page-affiliate__hero-description {
    font-size: 1.1em;
  }

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

@media (max-width: 768px) {
  .page-affiliate__hero-title {
    font-size: 2.2em;
  }

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

  .page-affiliate__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }

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

  .page-affiliate__section-intro {
    font-size: 1em;
  }

  .page-affiliate__benefits-grid,
  .page-affiliate__steps-list {
    grid-template-columns: 1fr;
  }

  .page-affiliate__benefit-icon {
    width: 200px; /* Minimum 200px */
    height: auto;
  }

  .page-affiliate__commission-table-container {
    overflow-x: scroll; /* Allow horizontal scroll for table */
  }

  .page-affiliate__commission-table {
    min-width: 500px;
  }

  .page-affiliate__faq-question {
    font-size: 1.1em;
  }

  .page-affiliate__cta-button--large {
    padding: 15px 30px;
    font-size: 1.1em;
  }
  
  .page-affiliate__hero-section img,
  .page-affiliate__benefits-section img,
  .page-affiliate__how-it-works-section img,
  .page-affiliate__commission-section img,
  .page-affiliate__faq-section img,
  .page-affiliate__cta-section img {
    max-width: 100%;
    height: auto;
  }
}

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

  .page-affiliate__hero-description {
    font-size: 0.9em;
  }

  .page-affiliate__cta-button {
    padding: 10px 20px;
    font-size: 0.9em;
  }

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

  .page-affiliate__content-wrapper {
    padding: 20px 15px;
  }
}

/* Ensure images within the content area are not too small */
.page-affiliate__hero-image,
.page-affiliate__benefit-icon {
  min-width: 200px;
  min-height: 200px;
}

/* Filter brightness is allowed for hero background images, but not for changing actual image colors */
.page-affiliate__hero-image {
  filter: brightness(0.6);
}