/* style/affiliate-program.css */
.page-affiliate-program {
  font-family: 'Arial', sans-serif;
  color: #E0E0E0; /* Light gray for general text on dark background */
  background-color: #1A1A2E; /* Main dark blue background */
  line-height: 1.6;
}

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

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

.page-affiliate-program__section:nth-of-type(even) {
  background-color: #2A2A4A; /* Slightly lighter dark blue for alternating sections */
}

.page-affiliate-program__hero-section {
  background: linear-gradient(135deg, #1A1A2E 0%, #3a3a60 100%); /* Gradient for hero */
  padding: 80px 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.page-affiliate-program__hero-title {
  font-size: 3.2em;
  color: #E6B325; /* Auxiliary gold for main title */
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-weight: bold;
}

.page-affiliate-program__hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 30px;
  color: #D0D0D0;
}

.page-affiliate-program__hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 40px;
}

.page-affiliate-program__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.2s ease;
  cursor: pointer;
}

.page-affiliate-program__button--primary {
  background-color: #E6B325; /* Gold for primary action */
  color: #1A1A2E;
  border: none;
}

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

.page-affiliate-program__button--secondary {
  background-color: transparent;
  color: #E6B325;
  border: 2px solid #E6B325;
}

.page-affiliate-program__button--secondary:hover {
  background-color: #E6B325;
  color: #1A1A2E;
  transform: translateY(-2px);
}

.page-affiliate-program__button--link {
  background-color: transparent;
  color: #E6B325;
  border: 1px solid #E6B325;
  padding: 8px 15px;
  font-size: 0.9em;
  border-radius: 5px;
}

.page-affiliate-program__button--link:hover {
  background-color: #E6B325;
  color: #1A1A2E;
}

.page-affiliate-program__hero-image-wrapper {
  width: 100%;
  max-width: 1000px;
  margin-top: 20px;
}

.page-affiliate-program__hero-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.page-affiliate-program__section-title {
  font-size: 2.5em;
  color: #E6B325;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-affiliate-program__section-description {
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto 40px;
  color: #D0D0D0;
}

.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-item {
  background-color: #2A2A4A;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  text-align: left;
  transition: transform 0.3s ease;
}

.page-affiliate-program__feature-item:hover {
  transform: translateY(-5px);
}

.page-affiliate-program__feature-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px #E6B325);
}

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

.page-affiliate-program__feature-text {
  color: #B0B0B0;
  font-size: 0.95em;
}

.page-affiliate-program__commission-table-wrapper {
  overflow-x: auto;
  margin-top: 40px;
}

.page-affiliate-program__commission-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
  min-width: 600px; /* Ensure table is wide enough on small screens */
}

.page-affiliate-program__commission-table th,
.page-affiliate-program__commission-table td {
  border: 1px solid #3A3A5A;
  padding: 15px;
  text-align: center;
  color: #E0E0E0;
}

.page-affiliate-program__commission-table th {
  background-color: #E6B325;
  color: #1A1A2E;
  font-weight: bold;
  font-size: 1.1em;
}

.page-affiliate-program__commission-table tr:nth-child(even) {
  background-color: #2A2A4A;
}

.page-affiliate-program__commission-table tr:hover {
  background-color: #3A3A5A;
}

.page-affiliate-program__commission-note {
  margin-top: 20px;
  font-style: italic;
  color: #B0B0B0;
  font-size: 0.9em;
}

.page-affiliate-program__image-center {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.page-affiliate-program__responsive-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.page-affiliate-program__process-steps {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-affiliate-program__step-item {
  background-color: #2A2A4A;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  text-align: center;
  position: relative;
}

.page-affiliate-program__step-number {
  background-color: #E6B325;
  color: #1A1A2E;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  margin: -55px auto 20px auto; /* Position above the box */
  border: 3px solid #1A1A2E;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.page-affiliate-program__step-title {
  font-size: 1.4em;
  color: #E6B325;
  margin-bottom: 10px;
}

.page-affiliate-program__step-text {
  color: #B0B0B0;
  font-size: 0.95em;
}

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

.page-affiliate-program__resources-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  text-align: left;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-affiliate-program__resources-list li {
  background-color: #2A2A4A;
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  color: #D0D0D0;
}

.page-affiliate-program__list-icon {
  color: #E6B325;
  font-size: 1.5em;
  margin-right: 15px;
  flex-shrink: 0;
}

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

.page-affiliate-program__faq-item {
  background-color: #2A2A4A;
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

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

.page-affiliate-program__faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.2em;
  color: #E6B325;
  transition: transform 0.3s ease;
}

.page-affiliate-program__faq-question.active::after {
  content: '-';
  transform: rotate(180deg);
}

.page-affiliate-program__faq-answer {
  color: #B0B0B0;
  font-size: 1em;
  display: none;
  padding-top: 10px;
  border-top: 1px solid #3A3A5A;
  margin-top: 10px;
}

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

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

.page-affiliate-program__detail-item {
  background-color: #2A2A4A;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  text-align: left;
  display: flex;
  flex-direction: column;
}

.page-affiliate-program__detail-title {
  font-size: 1.3em;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-affiliate-program__detail-title a {
  color: #E6B325;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-affiliate-program__detail-description {
  color: #B0B0B0;
  font-size: 0.95em;
  margin-bottom: 20px;
}

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

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

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

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

  .page-affiliate-program__button {
    width: 80%;
    margin: 0 auto;
  }

  .page-affiliate-program__process-steps {
    flex-direction: column;
    align-items: center;
  }
  .page-affiliate-program__step-item {
    max-width: 90%;
  }
}

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

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

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

  .page-affiliate-program__button {
    font-size: 1em;
    padding: 12px 25px;
  }

  .page-affiliate-program__feature-item,
  .page-affiliate-program__detail-item {
    padding: 20px;
  }

  .page-affiliate-program__step-number {
    width: 40px;
    height: 40px;
    font-size: 1.5em;
    margin: -45px auto 15px auto;
  }
}