/* style/affiliate-program.css */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --background-dark: #08160F;
  --card-background: #11271B;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-affiliate-program {
  font-family: Arial, sans-serif;
  color: var(--text-main); /* Default text color for dark background */
  background-color: var(--background-dark);
}

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

.page-affiliate-program__dark-bg {
  background-color: var(--background-dark);
  color: var(--text-main);
}

.page-affiliate-program__card {
  background-color: var(--card-background);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-affiliate-program__section-title {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: bold;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.2;
}

.page-affiliate-program__text-block {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 25px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-affiliate-program__content-image {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 40px auto;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.page-affiliate-program__btn-primary,
.page-affiliate-program__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-affiliate-program__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main);
  border: 2px solid transparent;
}

.page-affiliate-program__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 8px 25px rgba(42, 209, 111, 0.4);
}

.page-affiliate-program__btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-affiliate-program__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-main);
  box-shadow: 0 8px 25px rgba(17, 168, 78, 0.4);
}

/* Hero Section */
.page-affiliate-program__hero-section {
  position: relative;
  text-align: center;
  overflow: hidden;
  padding: 60px 20px;
  padding-top: 10px; /* Small decorative top padding */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-affiliate-program__hero-image-wrapper {
  width: 100%;
  max-width: 1920px;
  margin-bottom: 40px;
}

.page-affiliate-program__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-affiliate-program__hero-content {
  max-width: 900px;
  margin-top: 20px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.page-affiliate-program__main-title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 15px;
  line-height: 1.1;
}

.page-affiliate-program__description {
  font-size: clamp(18px, 2.5vw, 22px);
  color: var(--text-secondary);
  margin-bottom: 30px;
  line-height: 1.5;
}

/* Video Section */
.page-affiliate-program__video-section {
  padding: 60px 20px;
  padding-top: 10px; /* Small decorative top padding */
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-affiliate-program__video-container {
  width: 100%;
  max-width: 900px;
  margin: 30px auto;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
}

.page-affiliate-program__video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.page-affiliate-program__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.page-affiliate-program__video-link {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
}

/* Why Join Section */
.page-affiliate-program__why-join-section {
  padding: 80px 20px;
}

.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 {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-affiliate-program__feature-title {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-affiliate-program__feature-description {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

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

.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 {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-affiliate-program__step-number {
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: bold;
  color: var(--text-main);
  margin-bottom: 20px;
}

.page-affiliate-program__step-title {
  font-size: 24px;
  color: var(--text-main);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-affiliate-program__step-description {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Commission Section */
.page-affiliate-program__commission-section {
  padding: 80px 20px;
  text-align: center;
}

.page-affiliate-program__commission-table {
  margin: 40px auto;
  max-width: 800px;
  width: 100%;
  overflow-x: auto;
  padding: 0;
}

.page-affiliate-program__table-row {
  display: flex;
  border-bottom: 1px solid var(--border-color);
}

.page-affiliate-program__table-row:last-child {
  border-bottom: none;
}

.page-affiliate-program__table-header {
  background-color: var(--primary-color);
  font-weight: bold;
  color: var(--text-main);
  border-radius: 8px 8px 0 0;
}

.page-affiliate-program__table-header .page-affiliate-program__table-cell {
  padding: 18px 15px;
}

.page-affiliate-program__table-cell {
  flex: 1;
  padding: 15px;
  text-align: center;
  font-size: 16px;
  color: var(--text-secondary);
  min-width: 120px;
}

.page-affiliate-program__table-header .page-affiliate-program__table-cell:first-child {
  border-top-left-radius: 8px;
}

.page-affiliate-program__table-header .page-affiliate-program__table-cell:last-child {
  border-top-right-radius: 8px;
}

.page-affiliate-program__commission-section .page-affiliate-program__btn-secondary {
  margin-top: 30px;
}

/* Tools Section */
.page-affiliate-program__tools-section {
  padding: 80px 20px;
}

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

.page-affiliate-program__tool-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-affiliate-program__tool-title {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-affiliate-program__tool-description {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

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

.page-affiliate-program__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-affiliate-program__faq-item {
  margin-bottom: 10px;
  text-align: left;
}

.page-affiliate-program__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  font-size: 18px;
  font-weight: bold;
  color: var(--text-main);
  cursor: pointer;
  transition: background-color 0.3s ease;
  list-style: none;
}

.page-affiliate-program__faq-question::-webkit-details-marker {
  display: none;
}

.page-affiliate-program__faq-question:hover {
  background-color: rgba(46, 122, 78, 0.2);
}

.page-affiliate-program__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
}

.page-affiliate-program__faq-answer {
  padding: 15px 20px;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  border-top: 1px solid var(--border-color);
  background-color: rgba(17, 39, 27, 0.5); /* Slightly lighter card background for answer */
  border-radius: 0 0 8px 8px;
}

.page-affiliate-program__faq-item[open] .page-affiliate-program__faq-question {
  background-color: rgba(46, 122, 78, 0.1);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
}

.page-affiliate-program__faq-item:not([open]) .page-affiliate-program__faq-answer {
  display: none;
}

/* CTA Section */
.page-affiliate-program__cta-section {
  padding: 80px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-affiliate-program__hero-content {
    padding: 0 20px;
  }
}

@media (max-width: 768px) {
  .page-affiliate-program__hero-section,
  .page-affiliate-program__video-section,
  .page-affiliate-program__why-join-section,
  .page-affiliate-program__how-it-works-section,
  .page-affiliate-program__commission-section,
  .page-affiliate-program__tools-section,
  .page-affiliate-program__faq-section,
  .page-affiliate-program__cta-section {
    padding: 40px 15px !important; /* Adjust padding for mobile */
  }

  .page-affiliate-program__container,
  .page-affiliate-program__commission-table {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-affiliate-program img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .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-container,
  .page-affiliate-program__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-affiliate-program__btn-primary,
  .page-affiliate-program__btn-secondary,
  .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 !important;
    padding-right: 15px !important;
    margin-bottom: 15px; /* Add spacing between stacked buttons */
  }

  .page-affiliate-program__hero-content,
  .page-affiliate-program__cta-section {
    flex-direction: column;
    gap: 15px;
  }

  .page-affiliate-program__features-grid,
  .page-affiliate-program__steps-grid,
  .page-affiliate-program__tools-grid {
    grid-template-columns: 1fr;
  }

  .page-affiliate-program__table-row {
    flex-wrap: wrap;
  }

  .page-affiliate-program__table-cell {
    flex-basis: 100%;
    border-bottom: 1px solid var(--border-color);
  }

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

  .page-affiliate-program__table-header .page-affiliate-program__table-cell {
    border-radius: 0;
  }
}

@media (max-width: 480px) {
  .page-affiliate-program__section-title {
    font-size: 24px;
  }

  .page-affiliate-program__text-block {
    font-size: 16px;
  }

  .page-affiliate-program__main-title {
    font-size: 32px;
  }

  .page-affiliate-program__description {
    font-size: 16px;
  }

  .page-affiliate-program__btn-primary,
  .page-affiliate-program__btn-secondary {
    font-size: 16px;
    padding: 12px 20px;
  }
}