/* style/affiliate-program.css */
.page-affiliate-program {
  background-color: #0a0a0a; /* Body background from shared.css */
  color: #ffffff; /* Default text color for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 60px;
}

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

.page-affiliate-program__dark-section {
  background-color: #333333;
  color: #ffffff;
}

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

/* Hero Section */
.page-affiliate-program__hero-section {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.page-affiliate-program__hero-content {
  max-width: 600px;
  text-align: left;
  z-index: 1;
}

.page-affiliate-program__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #E44D26;
  line-height: 1.2;
}

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

.page-affiliate-program__hero-image-wrapper {
  flex-shrink: 0;
  max-width: 50%;
}

.page-affiliate-program__hero-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

/* General Section Styles */
.page-affiliate-program__section-title {
  font-size: 2.5em;
  color: #E44D26;
  text-align: center;
  margin-bottom: 20px;
  padding-top: 60px;
}

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

/* Buttons */
.page-affiliate-program__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.page-affiliate-program__btn-primary,
.page-affiliate-program__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* For responsiveness */
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

.page-affiliate-program__btn-primary:hover {
  background-color: #ff6a3d;
  border-color: #ff6a3d;
}

.page-affiliate-program__btn-secondary {
  background-color: transparent;
  color: #E44D26;
  border: 2px solid #E44D26;
}

.page-affiliate-program__btn-secondary:hover {
  background-color: #E44D26;
  color: #ffffff;
}

/* Why Join Section */
.page-affiliate-program__why-join-section {
  padding: 60px 0;
  background-color: #0a0a0a;
}

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

.page-affiliate-program__feature-card {
  background-color: #1a1a1a;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-affiliate-program__feature-icon {
  width: 100%; /* Ensure large images, not icons */
  height: auto;
  max-width: 400px; /* Example max-width for display */
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-affiliate-program__feature-title {
  font-size: 1.5em;
  color: #E44D26;
  margin-bottom: 15px;
}

.page-affiliate-program__feature-description {
  font-size: 1em;
  color: #cccccc;
}

/* How It Works Section */
.page-affiliate-program__how-it-works-section {
  padding: 60px 0;
}

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

.page-affiliate-program__step-card {
  background-color: #1a1a1a;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

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

.page-affiliate-program__step-title {
  font-size: 1.6em;
  color: #ffffff;
  margin-bottom: 10px;
}

.page-affiliate-program__step-description {
  font-size: 1em;
  color: #cccccc;
}

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

/* Commission Structure Section */
.page-affiliate-program__commission-structure-section {
  padding: 60px 0;
  background-color: #0a0a0a;
}

.page-affiliate-program__commission-table-wrapper {
  overflow-x: auto;
  margin-top: 40px;
  margin-bottom: 30px;
}

.page-affiliate-program__commission-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px; /* Ensure table is readable on smaller screens */
}

.page-affiliate-program__commission-table th,
.page-affiliate-program__commission-table td {
  border: 1px solid #333333;
  padding: 15px;
  text-align: center;
  color: #ffffff;
}

.page-affiliate-program__commission-table thead th {
  background-color: #E44D26;
  color: #ffffff;
  font-weight: bold;
}

.page-affiliate-program__commission-table tbody tr:nth-child(even) {
  background-color: #1a1a1a;
}

.page-affiliate-program__commission-table tbody tr:nth-child(odd) {
  background-color: #2a2a2a;
}

.page-affiliate-program__table-note {
  font-size: 0.9em;
  color: #cccccc;
  text-align: center;
  margin-bottom: 40px;
}

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

/* Benefits Section */
.page-affiliate-program__benefits-section {
  padding: 60px 0;
}

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

.page-affiliate-program__benefit-item {
  background-color: #1a1a1a;
  padding: 30px;
  border-radius: 12px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-affiliate-program__benefit-title {
  font-size: 1.4em;
  color: #E44D26;
  margin-bottom: 10px;
}

.page-affiliate-program__benefit-description {
  font-size: 1em;
  color: #cccccc;
}

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

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

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

.page-affiliate-program__faq-item {
  background-color: #1a1a1a;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.page-affiliate-program__faq-question:hover {
  background-color: #E44D26;
}

.page-affiliate-program__faq-title {
  margin: 0;
  color: #ffffff;
}

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

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

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

.page-affiliate-program__faq-item.active .page-affiliate-program__faq-answer {
  max-height: 1000px !important; /* Use !important to ensure it overrides */
  padding: 20px;
}

.page-affiliate-program__faq-answer p {
  margin: 0;
  color: #cccccc;
}

/* Final CTA Section */
.page-affiliate-program__cta-final-section {
  padding: 80px 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-affiliate-program__hero-section {
    flex-direction: column;
    text-align: center;
    padding: 60px 20px;
  }

  .page-affiliate-program__hero-content {
    max-width: 100%;
    text-align: center;
  }

  .page-affiliate-program__hero-image-wrapper {
    max-width: 80%;
    margin-top: 40px;
  }

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

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

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

@media (max-width: 768px) {
  .page-affiliate-program {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .page-affiliate-program__hero-section {
    padding-top: 60px !important; /* Adjust for mobile design if needed, assuming shared handles header offset */
  }

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

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

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

  .page-affiliate-program__btn-primary,
  .page-affiliate-program__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
  }

  .page-affiliate-program__section-title {
    font-size: 1.8em;
    padding-top: 40px;
  }

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

  .page-affiliate-program__container {
    padding: 0 15px;
  }

  .page-affiliate-program img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-affiliate-program__section,
  .page-affiliate-program__card,
  .page-affiliate-program__container,
  .page-affiliate-program__hero-image-wrapper,
  .page-affiliate-program__commission-table-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll for containers */
  }
  
  /* Specific padding for content sections on mobile */
  .page-affiliate-program__why-join-section,
  .page-affiliate-program__how-it-works-section,
  .page-affiliate-program__commission-structure-section,
  .page-affiliate-program__benefits-section,
  .page-affiliate-program__faq-section,
  .page-affiliate-program__cta-final-section {
    padding: 40px 0;
  }
  
  .page-affiliate-program__feature-card,
  .page-affiliate-program__step-card,
  .page-affiliate-program__benefit-item,
  .page-affiliate-program__faq-item {
    padding: 20px;
  }
  
  .page-affiliate-program__faq-answer {
    padding: 0 20px !important;
  }
  .page-affiliate-program__faq-item.active .page-affiliate-program__faq-answer {
    padding: 20px !important;
  }
  
  .page-affiliate-program__commission-table {
    min-width: 500px; /* Adjust min-width for mobile table */
  }
}

@media (max-width: 480px) {
  .page-affiliate-program__hero-title {
    font-size: 1.8em;
  }
  .page-affiliate-program__section-title {
    font-size: 1.6em;
  }
  .page-affiliate-program__feature-title,
  .page-affiliate-program__step-title,
  .page-affiliate-program__benefit-title {
    font-size: 1.2em;
  }
  .page-affiliate-program__faq-question {
    font-size: 1em;
    padding: 15px;
  }
  .page-affiliate-program__faq-answer {
    padding: 0 15px !important;
  }
  .page-affiliate-program__faq-item.active .page-affiliate-program__faq-answer {
    padding: 15px !important;
  }
}