/* Affiliate program page */

.aff-hero {
  padding: 4.5rem 0 3rem;
  text-align: center;
  background: #eff6ff;
}

.aff-hero h1 {
  font-size: clamp(1.75rem, 4vw, 3.375rem);
  max-width: 52rem;
  margin-inline: auto;
  line-height: 1.3;
}

.aff-hero p {
  font-size: 1.125rem;
  max-width: 40rem;
  margin: 1rem auto 0;
}

.aff-hero__badge {
  margin: 1.5rem auto 0;
  max-width: 289px;
}

.svg-underline {
  position: relative;
  display: inline;
  background: none;
  color: inherit;
}

.svg-underline svg {
  position: absolute;
  left: 0;
  bottom: -0.35em;
  width: 100%;
  height: 0.45em;
  pointer-events: none;
}

.svg-underline path {
  fill: var(--green);
}

.aff-double-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  margin: 1.25rem 0;
}

.aff-double-list ul {
  flex: 1 1 12rem;
}

.aff-double-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.aff-double-list li::before {
  content: "\f058";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--green);
  position: absolute;
  left: 0;
}

.aff-benefits {
  padding: 3rem 0 1rem;
  text-align: center;
  background: var(--white);
}

.aff-benefits h2 {
  font-size: clamp(1.75rem, 3vw, 2.75rem);
}

.aff-benefits__grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  margin-top: 2rem;
  text-align: left;
}

.aff-benefit-card {
  padding: 1.5rem;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.aff-benefit-card img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.aff-benefit-card h3 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  margin: 0 0 0.5rem;
}

.aff-benefit-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0;
}

.aff-ways {
  padding: 3rem 0 1rem;
  text-align: center;
  background: var(--white);
}

.aff-ways h2 {
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  max-width: 36rem;
  margin-inline: auto;
}

.aff-ways__grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  margin-top: 2rem;
  text-align: center;
}

.aff-way-card img {
  width: 100%;
  max-width: 368px;
  margin-inline: auto;
  border-radius: 8px;
}

.aff-way-card h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  margin: 1rem 0 0.5rem;
}

.aff-way-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0;
}

.aff-faq {
  padding: 4rem 0;
  background: var(--white);
}

.aff-faq__grid {
  display: grid;
  gap: 2rem;
}

.aff-faq__intro h2 {
  font-size: clamp(1.75rem, 3vw, 2.75rem);
}

.aff-faq__intro a {
  color: var(--blue);
}

.aff-faq__intro a:hover {
  text-decoration: underline;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq-item {
  border-bottom: 1px solid #e2e8f0;
}

.faq-item__question {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem 0;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  color: inherit;
}

.faq-item__question i {
  margin-top: 0.2rem;
  color: var(--blue);
  transition: transform 0.2s;
}

.faq-item--open .faq-item__question i {
  transform: rotate(90deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-item--open .faq-item__answer {
  max-height: 20rem;
  padding-bottom: 1rem;
}

.aff-testimonials {
  padding: 4rem 0;
  background: #eff6ff;
}

.aff-testimonials__header {
  text-align: center;
  margin-bottom: 2rem;
}

.aff-testimonials__header h2 {
  font-size: clamp(1.75rem, 3vw, 2.75rem);
}

.aff-testimonials__grid {
  display: grid;
  gap: 1.5rem;
}

.aff-testimonial-card {
  background: var(--white);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.aff-testimonial-card__text {
  font-size: 0.9375rem;
  margin: 0 0 1.25rem;
}

.aff-testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.aff-testimonial-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.aff-testimonial-card__name strong {
  display: block;
  font-size: 0.9375rem;
}

.aff-testimonial-card__name span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.aff-cta {
  padding: 4rem 0;
  text-align: center;
  background: var(--blue);
  color: var(--white);
}

.aff-cta h2 {
  color: var(--white);
  font-size: clamp(1.75rem, 3vw, 2.75rem);
}

.aff-cta p {
  margin: 0.75rem 0 1.5rem;
  color: #e2e8f0;
}

.aff-cta .btn--primary {
  background: var(--white);
  color: var(--blue);
}

.aff-cta .btn--primary:hover {
  background: #f1f5f9;
}

.aff-cta__note {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: #e2e8f0;
}

@media (min-width: 900px) {
  .aff-faq__grid {
    grid-template-columns: 1fr 1.2fr;
    align-items: start;
  }

  .aff-testimonials__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 899px) {
  .feature-section__image--desktop {
    display: none;
  }

  .feature-section__image--mobile {
    display: block;
  }
}

@media (min-width: 900px) {
  .feature-section__image--desktop {
    display: block;
  }

  .feature-section__image--mobile {
    display: none;
  }
}
