/* ================================
   AFFILIATE PROGRAM SECTION
   Professional refactor using semantic tags
   Matches grid.css pattern
   ================================ */

/* Main affiliate section */
#affiliate-program,
#affiliate-signup {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 1000px;
  margin: 40px auto 0;
}

/* Main container (replaces .affiliate-box) */
#affiliate-program > article,
#affiliate-signup > article {
  background: 
    linear-gradient(#000, #000) padding-box,
    linear-gradient(90deg, #b52566 0%, #1baebc 100%) border-box;
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 30px 30px;
  box-shadow: none;
  text-align: center;
}

/* Header section (replaces .affiliate-header) */
#affiliate-program > article > header,
#affiliate-signup > article > header {
  text-align: center;
  margin-bottom: 30px;
  display: block;
  width: 100%;
}

/* Badge (replaces .affiliate-badge) */
#affiliate-program > article > header > span {
  display: inline-block;
  background: linear-gradient(90deg, #b52566 0%, #1baebc 100%);
  color: #fff;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 auto 20px;
}

/* Title (replaces .affiliate-title) */
#affiliate-program h2,
#affiliate-signup h2 {
  font-family: "Ubuntu", sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  margin: 0 auto 16px;
  line-height: 1.2;
  text-align: center;
  display: block;
  width: 100%;
}

/* Subtitle (replaces .affiliate-subtitle) */
#affiliate-program > article > header > p,
#affiliate-signup > article > header > p {
  font-family: "Ubuntu", sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #999;
  margin: 0 auto;
  max-width: 700px;
  line-height: 1.6;
  text-align: center;
  display: block;
  width: 100%;
}

/* Stats grid (uses existing grid system) */
#affiliate-program .grid--3 {
  max-width: 800px;
  margin: 40px auto;
}

/* Individual stat boxes */
#affiliate-program .grid--3 > article {
  text-align: center;
  background: transparent;
  padding: 0;
}

/* Stat number (replaces .affiliate-stat-number) */
#affiliate-program .grid--3 > article > strong {
  display: block;
  font-family: "Ubuntu", sans-serif;
  font-size: 48px;
  font-weight: 700;
  background: linear-gradient(90deg, #b52566 0%, #1baebc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

/* Stat label (replaces .affiliate-stat-label) */
#affiliate-program .grid--3 > article > span {
  font-family: "Ubuntu", sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #999;
}

/* Benefits grid (uses existing grid system) */
#affiliate-program .grid--2 {
  max-width: 1000px;
  margin: 40px auto;
}

/* Individual benefit boxes */
#affiliate-program .grid--2 > article {
  background: #151515;
  padding: 20px;
  border-radius: 10px;
  text-align: left;
}

/* Benefit icon + title wrapper */
#affiliate-program .grid--2 > article > header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  text-align: left;
}

/* Benefit icon */
#affiliate-program .grid--2 > article > header > span {
  font-size: 24px;
  flex-shrink: 0;
}

/* Benefit title */
#affiliate-program .grid--2 > article h3 {
  font-family: "Ubuntu", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  text-decoration: none;
  padding: 0;
}

/* Benefit text */
#affiliate-program .grid--2 > article > p {
  font-family: "Ubuntu", sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #999;
  margin: 0;
  line-height: 1.5;
  padding: 0;
  text-align: left;
}

/* ================================
   BENEFITS SECTION (Why Promote Our Guide)
   ================================ */

/* Section header and intro - keep centered */
#benefits > h2,
#benefits > p {
  text-align: center;
}

#benefits .grid--2 {
  max-width: 1000px;
  margin: 40px auto;
}

#benefits .grid--2 > article {
  background: #151515;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
}

#benefits .grid--2 > article h3 {
  font-family: "Ubuntu", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
  text-decoration: underline;
  text-decoration-color: #CC1FA1;
  text-decoration-thickness: 2px;
  text-underline-position: under;
  text-align: center;
}

#benefits .grid--2 > article > p {
  font-family: "Ubuntu", sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #999;
  margin: 0;
  line-height: 1.5;
  padding: 0;
  text-align: left;
}

/* ================================
   HOW IT WORKS SECTION
   ================================ */

/* Section header and intro - keep centered */
#how-it-works > h2,
#how-it-works > p {
  text-align: center;
}

#how-it-works .grid--3 > article {
  text-align: center;
}

#how-it-works .grid--3 > article h3 {
  text-align: center;
}

#how-it-works .grid--3 > article > p {
  text-align: left;
}

/* ================================
   WHO THIS IS FOR SECTION
   ================================ */

/* Section header and intro - keep centered */
#who-this-is-for > h2,
#who-this-is-for > p {
  text-align: center;
}

#who-this-is-for .grid--3 > article {
  text-align: center;
}

#who-this-is-for .grid--3 > article h3 {
  text-align: center;
}

/* CTA section (buttons wrapper) */
#affiliate-program > article > div:last-of-type,
#affiliate-signup > article > div:last-of-type {
  margin-top: 40px;
  text-align: center;
}

/* Primary button */
#affiliate-program > article > div:last-of-type > a,
#affiliate-signup > article > div:last-of-type > a {
  display: inline-block;
  padding: 16px 40px;
  background: linear-gradient(90deg, #b52566 0%, #1baebc 100%);
  color: #fff;
  font-family: "Ubuntu", sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(181, 37, 102, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin: 0 10px 10px 0;
}

#affiliate-program > article > div:last-of-type > a:hover,
#affiliate-signup > article > div:last-of-type > a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(181, 37, 102, 0.6);
}

/* Secondary button (second link) */
#affiliate-program > article > div:last-of-type > a:nth-child(2) {
  background: 
    linear-gradient(#000, #000) padding-box,
    linear-gradient(90deg, #b52566 0%, #1baebc 100%) border-box;
  border: 2px solid transparent;
  border-radius: 8px;
  box-shadow: none;
}

#affiliate-program > article > div:last-of-type > a:nth-child(2):hover {
  background: 
    linear-gradient(rgba(181, 37, 102, 0.1), rgba(181, 37, 102, 0.1)) padding-box,
    linear-gradient(90deg, #b52566 0%, #1baebc 100%) border-box;
  box-shadow: 0 4px 16px rgba(181, 37, 102, 0.2);
}

/* Footer note (now direct child of article, not inside footer) */
#affiliate-program > article > p,
#affiliate-signup > article > p {
  font-family: "Ubuntu", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #999;
  margin-top: 20px;
  margin-bottom: 0;
  padding: 0;
  text-align: center;
  line-height: 1;
}

/* Responsive */
@media (max-width: 600px) {
  #affiliate-program,
  #affiliate-signup {
    width: auto;
    max-width: none;
    margin: 40px 25px 0;
  }
}

@media (max-width: 768px) {
  #affiliate-program > article,
  #affiliate-signup > article {
    padding: 30px 25px;
  }

  #affiliate-program h2,
  #affiliate-signup h2 {
    font-size: 28px;
  }

  #affiliate-program > article > header > p,
  #affiliate-signup > article > header > p {
    font-size: 16px;
  }

  #affiliate-program .grid--3 > article > strong {
    font-size: 40px;
  }

  #affiliate-program > article > footer > a {
    display: block;
    margin: 0 0 10px 0;
  }
}

@media (max-width: 480px) {
  #affiliate-program > article,
  #affiliate-signup > article {
    padding: 25px 20px;
  }

  #affiliate-program h2,
  #affiliate-signup h2 {
    font-size: 24px;
  }

  #affiliate-program > article > header > p,
  #affiliate-signup > article > header > p {
    font-size: 15px;
  }

  #affiliate-program .grid--3 > article > strong {
    font-size: 36px;
  }

  #affiliate-program .grid--2 > article {
    padding: 20px;
  }

  #benefits .grid--2 > article {
    padding: 20px;
  }

  #affiliate-program > article > footer > a {
    font-size: 16px;
    padding: 14px 30px;
  }
}
