.page-affiliates {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: #000000; /* Body background from shared.css */
  padding-top: var(--header-offset, 120px);
}

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

.page-affiliates__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-affiliates__section-subtitle {
  font-size: 1.2em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-affiliates__btn-primary,
.page-affiliates__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
}

.page-affiliates__btn-primary {
  background: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-affiliates__btn-primary:hover {
  background: #1e87b7;
  border-color: #1e87b7;
}

.page-affiliates__btn-secondary {
  background: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-affiliates__btn-secondary:hover {
  background: #26A9E0;
  color: #ffffff;
}

/* Hero Section */
.page-affiliates__hero-section {
  position: relative;
  width: 100%;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
}

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

.page-affiliates__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2;
}

.page-affiliates__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
}

.page-affiliates__hero-title {
  font-size: 3.8em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFFFF;
}

.page-affiliates__hero-description {
  font-size: 1.4em;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

/* Benefits Section */
.page-affiliates__benefits-section {
  padding: 80px 0;
  background-color: #0d0d0d;
}

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

.page-affiliates__benefit-card {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: #ffffff;
}

.page-affiliates__benefit-card:hover {
  transform: translateY(-10px);
}

.page-affiliates__benefit-icon {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-affiliates__benefit-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-affiliates__benefit-description {
  font-size: 1em;
  color: #f0f0f0;
}

/* How It Works Section */
.page-affiliates__how-it-works-section {
  padding: 80px 0;
  background-color: #000000;
}

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

.page-affiliates__step-card {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 40px;
  border-radius: 10px;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.page-affiliates__step-number {
  font-size: 4em;
  color: rgba(38, 169, 224, 0.2);
  position: absolute;
  top: 10px;
  left: 10px;
  font-weight: bold;
  z-index: 0;
}

.page-affiliates__step-title {
  font-size: 2em;
  color: #26A9E0;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.page-affiliates__step-description {
  font-size: 1.1em;
  color: #f0f0f0;
  position: relative;
  z-index: 1;
}

.page-affiliates__how-it-works-image-wrapper {
  text-align: center;
  margin-bottom: 60px;
}

.page-affiliates__how-it-works-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  display: block;
  margin: 0 auto;
}

.page-affiliates__cta-center {
  text-align: center;
}

/* Commission Section */
.page-affiliates__commission-section {
  padding: 80px 0;
  background-color: #0d0d0d;
}

.page-affiliates__commission-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-affiliates__commission-tier {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  color: #ffffff;
}

.page-affiliates__tier-title {
  font-size: 2.2em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-affiliates__tier-description {
  font-size: 1.1em;
  color: #f0f0f0;
}

.page-affiliates__note {
  text-align: center;
  font-size: 0.95em;
  color: #aaaaaa;
  margin-top: 20px;
}

/* Tools & Support Section */
.page-affiliates__tools-support-section {
  padding: 80px 0;
  background-color: #000000;
}

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

.page-affiliates__tool-card {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  color: #ffffff;
}

.page-affiliates__tool-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-affiliates__tool-description {
  font-size: 1em;
  color: #f0f0f0;
}

.page-affiliates__tools-image-wrapper {
  text-align: center;
}

.page-affiliates__tools-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  display: block;
  margin: 0 auto;
}

/* FAQ Section */
.page-affiliates__faq-section {
  padding: 80px 0;
  background-color: #0d0d0d;
}

.page-affiliates__faq-list {
  margin-bottom: 60px;
}

.page-affiliates__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.page-affiliates__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-affiliates__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-affiliates__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

.page-affiliates__faq-item.active .page-affiliates__faq-toggle {
  transform: rotate(45deg);
}

.page-affiliates__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

.page-affiliates__faq-item.active .page-affiliates__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 20px;
}

.page-affiliates__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
}

.page-affiliates__faq-image-wrapper {
  text-align: center;
}

.page-affiliates__faq-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  display: block;
  margin: 0 auto;
}

/* Final CTA Section */
.page-affiliates__cta-final-section {
  padding: 80px 0;
  background-color: #000000;
  text-align: center;
}

.page-affiliates__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-affiliates__hero-title {
    font-size: 3em;
  }
  .page-affiliates__hero-description {
    font-size: 1.2em;
  }
  .page-affiliates__section-title {
    font-size: 2em;
  }
  .page-affiliates__section-subtitle {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-affiliates {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-affiliates__hero-section {
    height: auto;
    min-height: 60vh;
    padding: 100px 0 50px;
  }
  .page-affiliates__hero-title {
    font-size: 2.2em;
  }
  .page-affiliates__hero-description {
    font-size: 1em;
  }
  .page-affiliates__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-affiliates__btn-primary,
  .page-affiliates__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-affiliates__benefits-section,
  .page-affiliates__how-it-works-section,
  .page-affiliates__commission-section,
  .page-affiliates__tools-support-section,
  .page-affiliates__faq-section,
  .page-affiliates__cta-final-section {
    padding: 50px 0;
  }

  .page-affiliates__container {
    padding: 0 15px;
  }

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

  .page-affiliates__section-subtitle {
    font-size: 1em;
    margin-bottom: 40px;
  }

  .page-affiliates__benefit-card,
  .page-affiliates__step-card,
  .page-affiliates__commission-tier,
  .page-affiliates__tool-card {
    padding: 25px;
  }

  .page-affiliates__benefit-title,
  .page-affiliates__step-title,
  .page-affiliates__tier-title,
  .page-affiliates__tool-title {
    font-size: 1.5em;
  }

  .page-affiliates__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }

  .page-affiliates__faq-answer {
    padding: 0 15px;
  }
  .page-affiliates__faq-item.active .page-affiliates__faq-answer {
    padding: 15px;
  }

  /* Image and Video Responsive */
  .page-affiliates img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-affiliates__hero-image,
  .page-affiliates__benefit-icon,
  .page-affiliates__how-it-works-image,
  .page-affiliates__tools-image,
  .page-affiliates__faq-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-affiliates__how-it-works-image-wrapper,
  .page-affiliates__tools-image-wrapper,
  .page-affiliates__faq-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 0;
    padding-right: 0;
  }

  .page-affiliates__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  /* Ensure main content area has padding-top for mobile header offset */
  .page-affiliates {
    padding-top: var(--header-offset, 120px) !important;
  }
}

@media (max-width: 480px) {
  .page-affiliates__hero-title {
    font-size: 1.8em;
  }
  .page-affiliates__hero-description {
    font-size: 0.9em;
  }
  .page-affiliates__section-title {
    font-size: 1.5em;
  }
  .page-affiliates__benefits-grid,
  .page-affiliates__steps-grid,
  .page-affiliates__commission-details,
  .page-affiliates__tools-grid {
    grid-template-columns: 1fr;
  }
}