/* style/affiliate-program.css */

/* Base Styles */
.page-affiliate-program {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
}

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

.page-affiliate-program__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 20px;
}

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

.page-affiliate-program__card-title {
  font-size: 1.5em;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  margin-top: 15px;
  margin-bottom: 10px;
}

.page-affiliate-program__card-text {
  color: #A7D9B8; /* Text Secondary */
  font-size: 1em;
}

/* Hero Section */
.page-affiliate-program__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-affiliate-program__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-affiliate-program__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-affiliate-program__hero-content {
  max-width: 900px;
  margin-top: 40px;
  text-align: center;
  padding: 0 20px;
}

.page-affiliate-program__hero-title {
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.2;
  font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive H1 font size */
}

.page-affiliate-program__hero-description {
  font-size: 1.2em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 40px;
}

.page-affiliate-program__hero-cta-button,
.page-affiliate-program__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-affiliate-program__hero-cta-button {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
  color: #F2FFF6; /* Text Main */
  border: none;
}

.page-affiliate-program__hero-cta-button:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

/* Benefits Section */
.page-affiliate-program__benefits-section,
.page-affiliate-program__how-it-works-section,
.page-affiliate-program__commission-section,
.page-affiliate-program__marketing-tools-section,
.page-affiliate-program__faq-section,
.page-affiliate-program__cta-section {
  padding: 80px 0;
}

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

.page-affiliate-program__benefit-card {
  background-color: #11271B; /* Card B G */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Border */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-affiliate-program__benefit-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 15px;
}

/* How It Works Section */
.page-affiliate-program__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-affiliate-program__step-card {
  background-color: #11271B; /* Card B G */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Border */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-affiliate-program__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #57E38D; /* Glow */
  margin-bottom: 15px;
}

.page-affiliate-program__step-cta-button {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
  color: #F2FFF6; /* Text Main */
  border: none;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-affiliate-program__step-cta-button:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

/* Commission Section */
.page-affiliate-program__commission-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-bottom: 60px;
}

.page-affiliate-program__commission-card {
  background-color: #11271B; /* Card B G */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Border */
  flex: 1 1 45%;
  min-width: 300px;
}

.page-affiliate-program__table-title {
  font-size: 1.8em;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 25px;
}

.page-affiliate-program__table-wrapper {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid #2E7A4E; /* Border */
}

.page-affiliate-program__table {
  width: 100%;
  border-collapse: collapse;
  background-color: #0A4B2C; /* Deep Green */
  min-width: 600px;
}

.page-affiliate-program__table th,
.page-affiliate-program__table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #1E3A2A; /* Divider */
}

.page-affiliate-program__table th {
  background-color: #11A84E; /* Primary Color */
  color: #F2FFF6; /* Text Main */
  font-weight: bold;
}

.page-affiliate-program__table td {
  color: #A7D9B8; /* Text Secondary */
}

.page-affiliate-program__table tbody tr:nth-child(even) {
  background-color: #08160F; /* Background */
}

.page-affiliate-program__table tbody tr:hover {
  background-color: #11271B; /* Card B G */
}

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

.page-affiliate-program__tool-card {
  background-color: #11271B; /* Card B G */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Border */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-affiliate-program__tool-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 15px;
}

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

.page-affiliate-program__faq-item {
  background-color: #11271B; /* Card B G */
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #2E7A4E; /* Border */
}

.page-affiliate-program__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #0A4B2C; /* Deep Green */
  color: #F2FFF6; /* Text Main */
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
  user-select: none;
  list-style: none; /* For details/summary */
}

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

.page-affiliate-program__faq-question:hover {
  background-color: #11A84E; /* Primary Color */
}

.page-affiliate-program__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #57E38D; /* Glow */
}

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

.page-affiliate-program__faq-answer {
  padding: 20px 25px;
  background-color: #11271B; /* Card B G */
  color: #A7D9B8; /* Text Secondary */
  font-size: 1em;
  border-top: 1px solid #2E7A4E; /* Border */
}

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

/* CTA Section */
.page-affiliate-program__cta-section {
  text-align: center;
  padding-bottom: 80px;
}

.page-affiliate-program__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
  color: #F2FFF6; /* Text Main */
  border: none;
  margin-right: 20px;
}

.page-affiliate-program__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-affiliate-program__btn-secondary {
  background: transparent;
  color: #11A84E; /* Primary Color */
  border: 2px solid #11A84E; /* Primary Color */
}

.page-affiliate-program__btn-secondary:hover {
  background-color: #11A84E;
  color: #F2FFF6; /* Text Main */
  transform: translateY(-2px);
}

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

@media (max-width: 768px) {
  .page-affiliate-program__hero-section {
    padding-bottom: 40px;
  }

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

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

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

  .page-affiliate-program__hero-cta-button,
  .page-affiliate-program__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    width: 100%;
    max-width: 100% !important;
    margin-bottom: 15px;
    margin-right: 0;
  }

  .page-affiliate-program__cta-section .page-affiliate-program__cta-button:last-child {
    margin-bottom: 0;
  }

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

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

  .page-affiliate-program__benefits-section,
  .page-affiliate-program__how-it-works-section,
  .page-affiliate-program__commission-section,
  .page-affiliate-program__marketing-tools-section,
  .page-affiliate-program__faq-section,
  .page-affiliate-program__cta-section {
    padding: 40px 0;
  }

  .page-affiliate-program__commission-card {
    flex: 1 1 100%;
  }

  .page-affiliate-program__table-wrapper {
    min-width: unset;
  }

  .page-affiliate-program__table {
    min-width: 100%;
  }

  .page-affiliate-program__table th,
  .page-affiliate-program__table td {
    padding: 10px;
    font-size: 0.9em;
  }

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

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

  /* Mobile image responsive adaptation */
  .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-section,
  .page-affiliate-program__benefits-section,
  .page-affiliate-program__how-it-works-section,
  .page-affiliate-program__commission-section,
  .page-affiliate-program__marketing-tools-section,
  .page-affiliate-program__faq-section,
  .page-affiliate-program__cta-section,
  .page-affiliate-program__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-affiliate-program__hero-section {
    padding-top: 10px !important;
  }

  /* Button responsive adaptation for multiple buttons */
  .page-affiliate-program__cta-section {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .page-affiliate-program__btn-primary {
    margin-right: 0;
    margin-bottom: 15px;
  }
  .page-affiliate-program__btn-secondary {
    margin-bottom: 0;
  }
}

@media (max-width: 480px) {
  .page-affiliate-program__hero-cta-button,
  .page-affiliate-program__cta-button {
    font-size: 0.9em;
  }
  .page-affiliate-program__section-title {
    font-size: 1.8em;
  }
}