/* style/affiliate-program.css */
.page-affiliate-program {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: #0a0a0a; /* Ensure consistency with body background */
}

.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; /* Darker background for sections */
  color: #ffffff;
}

.page-affiliate-program__light-bg {
  background-color: #0d0d0d; /* Slightly lighter dark background for contrast */
  color: #f0f0f0;
}

.page-affiliate-program__section-title {
  font-size: 2.5em;
  color: #007BFF; /* Brand blue for titles */
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
}

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

/* Hero Section */
.page-affiliate-program__hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
  min-height: 600px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #007BFF, #0056b3);
}

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

.page-affiliate-program__hero-title {
  font-size: 3.5em;
  color: #FFC107; /* Accent gold for hero title */
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-affiliate-program__hero-image-wrapper {
  flex-shrink: 0;
  max-width: 600px;
  position: relative;
  z-index: 0;
}

.page-affiliate-program__hero-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.page-affiliate-program__btn-primary {
  display: inline-block;
  background-color: #FFC107; /* Accent gold for primary button */
  color: #0a0a0a; /* Dark text for gold background */
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

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

.page-affiliate-program__btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: #007BFF; /* Brand blue for secondary button text */
  border: 2px solid #007BFF;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

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

.page-affiliate-program__btn-large {
  font-size: 1.2em;
  padding: 18px 35px;
}

/* 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;
  padding: 20px 0;
}

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

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

.page-affiliate-program__benefit-icon {
  width: 100%;
  max-width: 200px; /* Adjust size for content images, not small icons */
  height: auto;
  margin-bottom: 20px;
  border-radius: 4px;
}

.page-affiliate-program__card-title {
  font-size: 1.4em;
  color: #007BFF;
  margin-bottom: 10px;
}

.page-affiliate-program__card-text {
  color: #cccccc;
  font-size: 0.95em;
}

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

.page-affiliate-program__table-wrapper {
  overflow-x: auto;
  margin-bottom: 30px;
}

.page-affiliate-program__commission-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
  background-color: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
}

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

.page-affiliate-program__commission-table th {
  background-color: #007BFF;
  color: #ffffff;
  font-weight: bold;
  text-transform: uppercase;
}

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

.page-affiliate-program__commission-table tr:hover {
  background-color: #3a3a3a;
}

.page-affiliate-program__table-note {
  text-align: center;
  font-size: 0.9em;
  color: #999999;
  margin-top: 20px;
}

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

/* Join Process Section */
.page-affiliate-program__join-process-section {
  padding: 60px 0;
}

.page-affiliate-program__process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  padding: 20px 0;
}

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

.page-affiliate-program__step-number {
  background-color: #007BFF;
  color: #ffffff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 20px;
}

/* Tools & Resources Section */
.page-affiliate-program__tools-resources-section {
  padding: 60px 0;
}

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

.page-affiliate-program__tool-item {
  background-color: #1a1a1a;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-affiliate-program__tool-icon {
  width: 100%;
  max-width: 150px; /* Content image, not small icon */
  height: auto;
  margin-bottom: 20px;
  border-radius: 4px;
}

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

.page-affiliate-program__terms-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-affiliate-program__terms-list li {
  background-color: #1a1a1a;
  margin-bottom: 20px;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-affiliate-program__list-heading {
  color: #FFC107;
  font-size: 1.3em;
  margin-bottom: 10px;
}

.page-affiliate-program__terms-list p {
  color: #cccccc;
  font-size: 1em;
}

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

.page-affiliate-program__faq-list {
  max-width: 900px;
  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 25px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  color: #ffffff;
  background-color: #007BFF; /* Brand blue for question background */
  transition: background-color 0.3s ease;
}

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

.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 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #cccccc;
}

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

.page-affiliate-program__faq-answer p {
  margin: 0;
  padding-top: 10px; /* Add some spacing after question */
  color: #cccccc;
}

/* Final CTA Section */
.page-affiliate-program__cta-final-section {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, #0056b3, #007BFF);
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-affiliate-program__hero-section {
    flex-direction: column;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px);
  }

  .page-affiliate-program__hero-content {
    margin-right: 0;
    margin-bottom: 40px;
  }

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

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

  .page-affiliate-program__hero-image-wrapper {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-affiliate-program__section-title {
    font-size: 2em;
    padding-top: 30px;
  }

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

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

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

  .page-affiliate-program__btn-primary,
  .page-affiliate-program__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 15px;
  }

  .page-affiliate-program__cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 15px;
  }

  .page-affiliate-program__cta-buttons a {
    margin-bottom: 15px;
  }

  /* Image responsiveness */
  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-affiliate-program__hero-section,
  .page-affiliate-program__benefits-section,
  .page-affiliate-program__commission-structure-section,
  .page-affiliate-program__join-process-section,
  .page-affiliate-program__tools-resources-section,
  .page-affiliate-program__terms-section,
  .page-affiliate-program__faq-section,
  .page-affiliate-program__cta-final-section {
    padding: 30px 0 !important;
  }

  .page-affiliate-program__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-affiliate-program__table-wrapper {
    margin-left: -15px;
    margin-right: -15px;
    width: calc(100% + 30px);
  }

  .page-affiliate-program__commission-table {
    min-width: 600px; /* Ensure table is readable on small screens */
  }

  .page-affiliate-program__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }

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

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

  /* No video in this page, but keeping the general rule for safety */
  .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;
  }

  .page-affiliate-program__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }
}

@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__benefit-card,
  .page-affiliate-program__step-card,
  .page-affiliate-program__tool-item {
    padding: 20px;
  }

  .page-affiliate-program__benefit-icon,
  .page-affiliate-program__tool-icon {
    max-width: 150px;
  }

  .page-affiliate-program__card-title {
    font-size: 1.2em;
  }
}