/* style/affiliate-program.css */
.page-affiliate-program {
  color: #ffffff; /* Body background is #000 (dark), so use light text */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: #000; /* Ensure the main content area has a dark background if shared.css doesn't cover it */
}

/* Fixed Header Offset */
.page-affiliate-program__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

/* Hero Section */
.page-affiliate-program__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background-color: #000; /* Ensure dark background */
  overflow: hidden;
}

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

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

.page-affiliate-program__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
}

.page-affiliate-program__hero-title {
  font-size: 3.2em;
  color: #FFB800; /* Gold for emphasis */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-affiliate-program__hero-description {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-affiliate-program__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  box-sizing: border-box; /* Crucial for mobile responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-affiliate-program__btn-primary {
  background-color: #E44D26; /* Primary brand color */
  color: #ffffff;
  border: 2px solid #E44D26;
}

.page-affiliate-program__btn-primary:hover {
  background-color: #ff6a3d;
  transform: translateY(-2px);
}

.page-affiliate-program__btn-secondary {
  background-color: #FFB800; /* Secondary brand color */
  color: #000000;
  border: 2px solid #FFB800;
}

.page-affiliate-program__btn-secondary:hover {
  background-color: #ffd24d;
  transform: translateY(-2px);
}

/* General Section Styles */
.page-affiliate-program__section-title {
  font-size: 2.5em;
  color: #FFB800; /* Gold for headings */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

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

.page-affiliate-program__dark-bg {
  background-color: #1a1a1a; /* Darker background for contrast sections */
  color: #ffffff;
}

.page-affiliate-program__text-center {
  text-align: center;
}

/* Feature Grid */
.page-affiliate-program__features-grid,
.page-affiliate-program__steps-grid,
.page-affiliate-program__plans-grid,
.page-affiliate-program__resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-affiliate-program__card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white on dark background */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: #ffffff; /* Ensure text is light */
}

.page-affiliate-program__card:hover {
  transform: translateY(-5px);
}

.page-affiliate-program__feature-icon {
  width: 200px; /* Min size */
  height: auto;
  margin: 0 auto 20px auto;
  display: block;
}

.page-affiliate-program__feature-title,
.page-affiliate-program__step-title,
.page-affiliate-program__plan-title,
.page-affiliate-program__resource-title {
  font-size: 1.5em;
  color: #E44D26; /* Primary color for sub-headings */
  margin-bottom: 15px;
}

.page-affiliate-program__feature-text,
.page-affiliate-program__step-text,
.page-affiliate-program__plan-text,
.page-affiliate-program__resource-text {
  font-size: 1em;
  color: #f0f0f0;
}

/* How to Start Section */
.page-affiliate-program__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #FFB800;
  margin-bottom: 15px;
}

.page-affiliate-program__cta-center {
  text-align: center;
  margin-top: 50px;
}

/* Commission Plans */
.page-affiliate-program__plan-benefits {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  text-align: left;
}

.page-affiliate-program__plan-benefits li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  color: #f0f0f0;
}

.page-affiliate-program__plan-benefits li::before {
  content: '✔';
  color: #E44D26;
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* FAQ Section */
.page-affiliate-program__faq-list {
  margin-top: 40px;
}

.page-affiliate-program__faq-item {
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  overflow: hidden;
  text-align: left;
}

.page-affiliate-program__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFB800; /* Gold for questions */
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

.page-affiliate-program__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-affiliate-program__faq-answer p {
  padding-bottom: 15px; /* Add padding to bottom of paragraph for spacing */
  margin: 0; /* Reset default paragraph margin */
}

/* Active FAQ Item */
.page-affiliate-program__faq-item.active .page-affiliate-program__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 15px 30px !important; /* Ensure padding is applied when active */
}

.page-affiliate-program__faq-item.active .page-affiliate-program__faq-toggle {
  transform: rotate(45deg); /* Change '+' to 'x' visually */
}

/* Join CTA Section */
.page-affiliate-program__join-cta-section {
  padding: 80px 20px;
  background-color: #E44D26; /* Primary brand color background */
  color: #ffffff;
  border-radius: 0;
}

.page-affiliate-program__join-cta-section .page-affiliate-program__section-title {
  color: #ffffff;
}

.page-affiliate-program__join-cta-section .page-affiliate-program__section-description {
  color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-affiliate-program__hero-title {
    font-size: 2.5em;
  }
  .page-affiliate-program__section-title {
    font-size: 2em;
  }
}

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

  /* Fixed header offset for video section (if any) or first content section */
  .page-affiliate-program__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }

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

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

  .page-affiliate-program__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .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__plans-grid,
  .page-affiliate-program__resources-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-affiliate-program__container {
    padding: 20px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Image responsiveness for all images within the page-affiliate-program scope */
  .page-affiliate-program img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Video responsiveness for all videos within the page-affiliate-program scope */
  .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 container mobile adaptation */
  .page-affiliate-program__cta-buttons,
  .page-affiliate-program__button-group,
  .page-affiliate-program__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-affiliate-program__cta-buttons {
    display: flex;
    flex-direction: column; /* Stack buttons vertically on mobile */
  }

  .page-affiliate-program__faq-question {
    padding: 15px 20px;
    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 !important;
  }
}