/* style/affiliate-program.css */
.page-affiliate-program {
  color: #ffffff; /* Body background is dark (#0a0a0a), so text must be light */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Rely on body background */
}

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

.page-affiliate-program__section {
  padding: 60px 0;
  text-align: center;
}

.page-affiliate-program__section-title {
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 30px;
  color: #26A9E0; /* Brand color for titles */
  line-height: 1.2;
}

.page-affiliate-program__text-block {
  font-size: 1.1em;
  margin-bottom: 40px;
  color: #f0f0f0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-affiliate-program__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  padding: 10px 20px 60px; /* Small top padding, body handles header offset */
  color: #ffffff;
  overflow: hidden;
}

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

.page-affiliate-program__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  text-align: center;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
  padding: 30px;
  border-radius: 8px;
}

.page-affiliate-program__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  color: #26A9E0;
}

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

.page-affiliate-program__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-affiliate-program__btn-primary {
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff;
  border: 2px solid #26A9E0;
}

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

/* Why Partner Section */
.page-affiliate-program__why-partner {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for contrast */
}

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

.page-affiliate-program__feature-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
}

.page-affiliate-program__feature-icon {
  width: 100%; /* Make image fill card width */
  height: auto;
  max-width: 250px; /* Limit max size */
  margin-bottom: 20px;
  border-radius: 5px;
  object-fit: cover;
}

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

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

/* How It Works Section */
.page-affiliate-program__how-it-works {
  background-color: transparent;
}

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

.page-affiliate-program__step-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  color: #ffffff;
}

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

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

/* Commission Section */
.page-affiliate-program__commission {
  background-color: rgba(255, 255, 255, 0.05);
}

.page-affiliate-program__commission-table {
  width: 100%;
  max-width: 900px;
  margin: 40px auto;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-affiliate-program__table-header,
.page-affiliate-program__table-row {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.page-affiliate-program__table-header {
  background-color: #26A9E0;
  font-weight: bold;
}

.page-affiliate-program__table-row {
  background-color: rgba(255, 255, 255, 0.05);
}

.page-affiliate-program__table-row:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.08);
}

.page-affiliate-program__table-cell {
  flex: 1;
  padding: 15px;
  text-align: center;
  color: #ffffff;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.page-affiliate-program__table-cell:last-child {
  border-right: none;
}

.page-affiliate-program__note {
  font-size: 0.95em;
  color: #ccc;
  margin-top: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ Section */
.page-affiliate-program__faq {
  background-color: transparent;
}

.page-affiliate-program__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

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

.page-affiliate-program__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.page-affiliate-program__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker */
}

.page-affiliate-program__faq-qtext {
  color: #ffffff; /* Ensure text color */
}

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

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

.page-affiliate-program__faq-answer {
  padding: 20px;
  font-size: 1em;
  color: #f0f0f0;
}

/* Bottom CTA Section */
.page-affiliate-program__cta-bottom {
  background-color: #26A9E0; /* Brand primary color for bottom CTA */
  padding: 80px 0;
}

.page-affiliate-program__cta-content {
  max-width: 800px;
  margin: 0 auto;
  color: #ffffff;
}

.page-affiliate-program__cta-bottom .page-affiliate-program__section-title {
  color: #ffffff;
  margin-bottom: 20px;
}

.page-affiliate-program__cta-bottom .page-affiliate-program__description {
  color: #f0f0f0;
  margin-bottom: 40px;
}

.page-affiliate-program__cta-bottom .page-affiliate-program__btn-primary {
  background-color: #EA7C07; /* Login color for prominent CTA */
  border-color: #EA7C07;
}

.page-affiliate-program__cta-bottom .page-affiliate-program__btn-primary:hover {
  background-color: #d86c00;
  border-color: #d86c00;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-affiliate-program__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-affiliate-program__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-affiliate-program__section {
    padding: 40px 0;
  }

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

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

  .page-affiliate-program__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }

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

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

  .page-affiliate-program__text-block {
    font-size: 0.95em;
  }

  .page-affiliate-program__cta-button,
  .page-affiliate-program a[class*="button"],
  .page-affiliate-program a[class*="btn"] {
    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__hero-section {
    padding-top: 10px !important; /* body already handles header offset */
  }

  /* Tables become block elements or stack for better mobile viewing */
  .page-affiliate-program__table-header,
  .page-affiliate-program__table-row {
    flex-direction: column;
    border-bottom: none;
  }
  .page-affiliate-program__table-cell {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .page-affiliate-program__table-header .page-affiliate-program__table-cell {
    background-color: rgba(38, 169, 224, 0.8);
  }
  .page-affiliate-program__table-row .page-affiliate-program__table-cell:first-child {
    background-color: rgba(255, 255, 255, 0.15);
    font-weight: bold;
  }

  /* Ensure images are fully responsive */
  .page-affiliate-program img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-affiliate-program__section,
  .page-affiliate-program__card,
  .page-affiliate-program__container,
  .page-affiliate-program__features-grid,
  .page-affiliate-program__steps-grid,
  .page-affiliate-program__commission-table,
  .page-affiliate-program__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }

  .page-affiliate-program__features-grid,
  .page-affiliate-program__steps-grid {
    gap: 20px;
  }

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