/* style/affiliate-program.css */

.page-affiliate-program {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: #000000; /* 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: #000000;
  color: #ffffff;
}

.page-affiliate-program__gold-bg {
  background-color: #FFD700;
  color: #000000;
}

.page-affiliate-program__light-text {
  color: #000000; /* For elements with gold background */
}

/* Hero Section */
.page-affiliate-program__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Account for fixed header */
  box-sizing: border-box;
}

.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-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2;
}

.page-affiliate-program__hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  padding: 20px;
}

.page-affiliate-program__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFD700;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

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

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

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

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

.page-affiliate-program__intro-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__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
  color: #f0f0f0;
}

.page-affiliate-program__video-caption {
  text-align: center;
  margin-top: 20px;
  font-style: italic;
  color: #cccccc;
}

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

.page-affiliate-program__benefit-card,
.page-affiliate-program__step-card,
.page-affiliate-program__tool-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 215, 0, 0.2);
  color: #ffffff;
}

.page-affiliate-program__benefit-card img,
.page-affiliate-program__tool-card img,
.page-affiliate-program__step-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-affiliate-program__benefit-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
}

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

.page-affiliate-program__step-number {
  display: inline-block;
  width: 50px;
  height: 50px;
  line-height: 50px;
  border-radius: 50%;
  background-color: #FFD700;
  color: #000000;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
}

/* Commission Table */
.page-affiliate-program__commission-table {
  width: 100%;
  margin-top: 40px;
  border-collapse: collapse;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  overflow: hidden;
}

.page-affiliate-program__table-header,
.page-affiliate-program__table-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-affiliate-program__table-header {
  background-color: rgba(0, 0, 0, 0.4);
  font-weight: bold;
  color: #FFD700;
  padding: 15px 20px;
  font-size: 1.1em;
}

.page-affiliate-program__table-row {
  padding: 15px 20px;
  color: #ffffff;
}

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

.page-affiliate-program__table-cell {
  flex: 1;
  text-align: center;
  padding: 5px 10px;
  box-sizing: border-box;
}

/* Video Section */
.page-affiliate-program__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 10px;
  margin-top: 40px;
}

.page-affiliate-program__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

/* FAQ Section */
.page-affiliate-program__faq-list {
  margin-top: 40px;
}

.page-affiliate-program__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

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

.page-affiliate-program__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-affiliate-program__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #ffffff;
  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;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-affiliate-program__hero-title {
    font-size: 2.8em;
  }
  .page-affiliate-program__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-affiliate-program {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-affiliate-program__hero-section {
    height: 450px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-affiliate-program__hero-title {
    font-size: 2.2em;
  }
  .page-affiliate-program__hero-description {
    font-size: 1em;
  }
  .page-affiliate-program__section-title {
    font-size: 1.8em;
    padding-top: 40px;
  }
  .page-affiliate-program__intro-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: 60px 0;
  }
  .page-affiliate-program__benefits-grid,
  .page-affiliate-program__steps-grid,
  .page-affiliate-program__tools-grid {
    grid-template-columns: 1fr;
  }
  .page-affiliate-program__table-header,
  .page-affiliate-program__table-row {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 15px;
  }
  .page-affiliate-program__table-cell {
    width: 100%;
    text-align: left;
    margin-bottom: 5px;
  }
  .page-affiliate-program__table-header .page-affiliate-program__table-cell {
    text-align: center;
  }
  .page-affiliate-program__btn-primary {
    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__cta-buttons {
    flex-direction: column;
    gap: 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__video-section,
  .page-affiliate-program__video-container,
  .page-affiliate-program__video-wrapper,
  .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;
    overflow: hidden !important;
  }
  .page-affiliate-program video,
  .page-affiliate-program__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}

@media (max-width: 480px) {
  .page-affiliate-program__hero-title {
    font-size: 1.8em;
  }
  .page-affiliate-program__hero-description {
    font-size: 0.9em;
  }
  .page-affiliate-program__section-title {
    font-size: 1.5em;
  }
  .page-affiliate-program__btn-primary {
    padding: 12px 20px;
    font-size: 1em;
  }
}