/* style/affiliate-program.css */
.page-affiliate-program {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is dark, so text is light */
  background-color: #1a1a1a; /* Inherited from body, but good to re-iterate for context */
}

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

.page-affiliate-program__dark-bg {
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-affiliate-program__light-bg {
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

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

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

.page-affiliate-program__btn-primary {
  display: inline-block;
  background-color: #26A9E0;
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-affiliate-program__btn-primary:hover {
  background-color: #1e87b8;
}

/* Hero Section */
.page-affiliate-program__hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding: 80px 20px; /* Adjust padding for fixed header offset */
  position: relative;
  overflow: hidden;
  text-align: center;
}

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

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

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

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

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

/* Benefits Section */
.page-affiliate-program__benefits-section {
  padding: 80px 0;
  background-color: #1a1a1a;
}

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

.page-affiliate-program__benefit-card {
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 350px;
}

.page-affiliate-program__benefit-icon {
  width: 100%;
  max-width: 150px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-affiliate-program__card-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

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

.page-affiliate-program__card-description a {
  color: #26A9E0;
  text-decoration: none;
}

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

/* How It Works Section */
.page-affiliate-program__how-it-works-section {
  padding: 80px 0;
  background-color: #1a1a1a;
  position: relative;
  overflow: hidden;
}

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

.page-affiliate-program__step-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  position: relative;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.page-affiliate-program__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-affiliate-program__process-image {
  width: 100%;
  max-width: 1000px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  object-fit: cover;
  margin-top: 40px;
}

/* Marketing Tools Section */
.page-affiliate-program__marketing-tools-section {
  padding: 80px 0;
  background-color: #1a1a1a;
}

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

.page-affiliate-program__tool-card {
  padding: 30px;
  text-align: center;
  min-height: 220px;
}

.page-affiliate-program__tools-image {
  width: 100%;
  max-width: 1000px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  object-fit: cover;
  margin-top: 40px;
}

/* FAQ Section */
.page-affiliate-program__faq-section {
  padding: 80px 0;
  background-color: #1a1a1a;
}

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

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

.page-affiliate-program__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

.page-affiliate-program__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-affiliate-program__faq-title {
  font-size: 1.2em;
  color: #ffffff;
  margin: 0;
  font-weight: bold;
}

.page-affiliate-program__faq-toggle {
  font-size: 1.5em;
  color: #26A9E0;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.page-affiliate-program__faq-item.active .page-affiliate-program__faq-toggle {
  transform: rotate(0deg);
}

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

.page-affiliate-program__faq-item.active .page-affiliate-program__faq-answer {
  max-height: 1000px !important; /* Sufficiently large */
  padding: 15px 25px;
}

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

.page-affiliate-program__faq-answer a {
  color: #26A9E0;
  text-decoration: none;
}

.page-affiliate-program__faq-answer a:hover {
  text-decoration: underline;
}

/* CTA Section */
.page-affiliate-program__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #26A9E0; /* Using brand color for strong CTA */
  color: #ffffff;
}

.page-affiliate-program__cta-button {
  font-size: 1.2em;
  padding: 18px 40px;
  border-radius: 8px;
}

/* --- Responsive Styles --- */

/* Ensure the main content area has the correct padding-top if shared.css doesn't apply it to body */
/* The instruction states shared.css handles body padding, so no need to apply it here directly. */
/* If shared.css did not handle it, the following would be needed:
.page-affiliate-program {
  padding-top: var(--header-offset, 120px);
}
*/

@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;
  }

  .page-affiliate-program__benefits-grid,
  .page-affiliate-program__steps-grid,
  .page-affiliate-program__tools-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-affiliate-program__hero-section {
    flex-direction: column;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

  .page-affiliate-program__hero-content {
    padding: 20px 0;
  }

  .page-affiliate-program__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-affiliate-program__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

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

  .page-affiliate-program__section-intro {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  /* Image responsive rules */
  .page-affiliate-program img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-affiliate-program__hero-image-wrapper,
  .page-affiliate-program__process-image,
  .page-affiliate-program__tools-image,
  .page-affiliate-program__benefit-icon {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Video responsive rules - No video on this page, but keeping for reference */
  .page-affiliate-program video,
  .page-affiliate-program__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-affiliate-program__video-section,
  .page-affiliate-program__video-container,
  .page-affiliate-program__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  /* Button responsive rules */
  .page-affiliate-program__btn-primary,
  .page-affiliate-program__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-affiliate-program__benefits-grid,
  .page-affiliate-program__steps-grid,
  .page-affiliate-program__tools-grid {
    flex-direction: column;
    gap: 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-affiliate-program__benefit-card,
  .page-affiliate-program__step-card,
  .page-affiliate-program__tool-card {
    min-height: auto;
  }

  .page-affiliate-program__faq-question {
    padding: 15px 20px;
  }

  .page-affiliate-program__faq-title {
    font-size: 1.1em;
  }

  .page-affiliate-program__faq-answer {
    padding: 0 20px;
  }

  .page-affiliate-program__faq-item.active .page-affiliate-program__faq-answer {
    padding: 10px 20px;
  }
}

@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__btn-primary,
  .page-affiliate-program__cta-button {
    padding: 12px 20px;
    font-size: 1em;
  }
}