/* style/affiliate-program.css */
.page-affiliate-program {
  font-family: 'Arial', sans-serif;
  color: #E0B400; /* Default text color for contrast */
  background-color: #0A2342; /* Main background color */
  line-height: 1.6;
}

.page-affiliate-program a {
  color: #E0B400; /* Link color for contrast */
  text-decoration: none;
}

.page-affiliate-program a:hover {
  text-decoration: underline;
  color: #FFD700; /* Slightly brighter gold on hover */
}

.page-affiliate-program__hero {
  background: linear-gradient(135deg, #0A2342 0%, #2a4a6b 100%);
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 500px;
  position: relative;
  overflow: hidden;
}

.page-affiliate-program__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.2;
  z-index: 0;
}

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

.page-affiliate-program__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.page-affiliate-program__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #E0B400;
  font-weight: bold;
  line-height: 1.2;
}

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

.page-affiliate-program__hero-button {
  display: inline-block;
  background-color: #E0B400;
  color: #0A2342;
  padding: 15px 40px;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  text-transform: uppercase;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-affiliate-program__hero-button:hover {
  background-color: #FFD700; /* Brighter gold on hover */
  transform: translateY(-3px);
  color: #0A2342;
  text-decoration: none;
}

.page-affiliate-program__section-title {
  font-size: 2.8em;
  color: #E0B400;
  text-align: center;
  margin-bottom: 60px;
  margin-top: 80px;
  position: relative;
}

.page-affiliate-program__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -15px;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #E0B400;
  border-radius: 2px;
}

.page-affiliate-program__why-join,
.page-affiliate-program__how-it-works,
.page-affiliate-program__commission-plan,
.page-affiliate-program__tools,
.page-affiliate-program__faq,
.page-affiliate-program__detail-pages,
.page-affiliate-program__join-cta {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.page-affiliate-program__feature-item,
.page-affiliate-program__step-item,
.page-affiliate-program__detail-item {
  background-color: #1A3A5A; /* Darker blue for cards */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-affiliate-program__feature-item:hover,
.page-affiliate-program__step-item:hover,
.page-affiliate-program__detail-item:hover {
  transform: translateY(-10px);
  background-color: #2a4a6b; /* Slightly lighter on hover */
}

.page-affiliate-program__feature-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px rgba(224, 180, 0, 0.7));
}

.page-affiliate-program__feature-title,
.page-affiliate-program__step-title,
.page-affiliate-program__detail-title {
  font-size: 1.8em;
  color: #E0B400;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-affiliate-program__feature-text,
.page-affiliate-program__step-text,
.page-affiliate-program__detail-description {
  font-size: 1.1em;
  color: #c0c0c0;
}

.page-affiliate-program__step-number {
  font-size: 3em;
  color: #E0B400;
  font-weight: bold;
  margin-bottom: 20px;
  background-color: rgba(224, 180, 0, 0.1);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  border: 2px solid #E0B400;
}

.page-affiliate-program__cta-bottom {
  text-align: center;
  margin-top: 60px;
}

.page-affiliate-program__content-wrapper {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 60px;
}

.page-affiliate-program__content-wrapper--reverse {
  flex-direction: row-reverse;
}

.page-affiliate-program__text-content {
  flex: 1;
  font-size: 1.15em;
  color: #c0c0c0;
}

.page-affiliate-program__text-content p {
  margin-bottom: 20px;
}

.page-affiliate-program__text-content strong {
  color: #E0B400;
}

.page-affiliate-program__image-content {
  flex: 1;
  text-align: center;
}

.page-affiliate-program__commission-image,
.page-affiliate-program__tools-image,
.page-affiliate-program__cta-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-affiliate-program__link-button {
  display: inline-block;
  background-color: #E0B400;
  color: #0A2342;
  padding: 12px 30px;
  border-radius: 6px;
  font-size: 1em;
  font-weight: bold;
  margin-top: 20px;
  transition: background-color 0.3s ease;
}

.page-affiliate-program__link-button:hover {
  background-color: #FFD700;
  text-decoration: none;
}

.page-affiliate-program__faq-items {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.page-affiliate-program__faq-item {
  background-color: #1A3A5A;
  padding: 25px 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-affiliate-program__faq-question {
  font-size: 1.5em;
  color: #E0B400;
  margin-bottom: 10px;
  cursor: pointer;
  position: relative;
  padding-right: 30px;
}

.page-affiliate-program__faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2em;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.page-affiliate-program__faq-question.active::after {
  content: '-';
  transform: translateY(-50%) rotate(0deg);
}

.page-affiliate-program__faq-answer {
  font-size: 1.1em;
  color: #c0c0c0;
  display: none;
  margin-top: 15px;
}

.page-affiliate-program__faq-question.active + .page-affiliate-program__faq-answer {
  display: block;
}

.page-affiliate-program__detail-title a {
  color: #E0B400;
  font-weight: bold;
}

.page-affiliate-program__detail-title a:hover {
  color: #FFD700;
}

.page-affiliate-program__join-cta {
  background: linear-gradient(135deg, #2a4a6b 0%, #0A2342 100%);
  padding: 100px 20px;
  text-align: center;
  margin-top: 80px;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.page-affiliate-program__cta-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1;
  z-index: 0;
}

.page-affiliate-program__cta-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-affiliate-program__cta-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.page-affiliate-program__cta-title {
  font-size: 3em;
  color: #E0B400;
  margin-bottom: 20px;
}

.page-affiliate-program__cta-description {
  font-size: 1.2em;
  color: #e0e0e0;
  margin-bottom: 40px;
}

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

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

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

  .page-affiliate-program__content-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .page-affiliate-program__content-wrapper--reverse {
    flex-direction: column;
  }

  .page-affiliate-program__image-content {
    order: -1; /* Move image above text on small screens for reverse layout */
    margin-bottom: 30px;
  }

  .page-affiliate-program__cta-title {
    font-size: 2.5em;
  }
}

@media (max-width: 768px) {
  .page-affiliate-program__hero-title {
    font-size: 2.2em;
  }

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

  .page-affiliate-program__hero-button {
    padding: 12px 30px;
    font-size: 1em;
  }

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

  .page-affiliate-program__why-join,
  .page-affiliate-program__how-it-works,
  .page-affiliate-program__commission-plan,
  .page-affiliate-program__tools,
  .page-affiliate-program__faq,
  .page-affiliate-program__detail-pages,
  .page-affiliate-program__join-cta {
    padding: 60px 15px;
  }

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

  .page-affiliate-program__feature-title,
  .page-affiliate-program__step-title,
  .page-affiliate-program__detail-title {
    font-size: 1.5em;
  }

  .page-affiliate-program__faq-question {
    font-size: 1.3em;
  }

  .page-affiliate-program__cta-title {
    font-size: 2em;
  }
}

@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__hero-button {
    padding: 10px 25px;
    font-size: 0.9em;
  }

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

  .page-affiliate-program__feature-icon {
    width: 60px;
    height: 60px;
  }

  .page-affiliate-program__step-number {
    width: 60px;
    height: 60px;
    font-size: 2.2em;
  }

  .page-affiliate-program__faq-question {
    font-size: 1.1em;
  }

  .page-affiliate-program__cta-title {
    font-size: 1.8em;
  }
  
  .page-affiliate-program__link-button {
    padding: 10px 20px;
    font-size: 0.9em;
  }
}