/* ==========================================================================
   Tandem Affiliates Page Section-Specific Styles
   ========================================================================== */

/* --- Hero Section & Padding Overrides (Desktop Only) --- */
@media (min-width: 1281px) {
  .affiliates-page-content .hero-section {
    padding-bottom: 0;
  }

  .affiliates-page-content #benefits {
    padding-top: 0;
    --neg-margin-top: -60px;
    margin-top: var(--neg-margin-top);
  }
}

.affiliates-page-content .card-row {
  position: relative;
  z-index: 12;
}

/* --- Hero Section Funnel Graphic --- */
.hero-media-wrapper {
  position: relative;
  display: flex;
  justify-content: flex-end;
  width: 100%;
  z-index: 2;
}

.hero-media-wrapper .has-glow {
  position: relative;
  width: 100%;
  max-width: 900px;
  display: flex;
  justify-content: center;
  align-items: center;
  --glow-size: 850px;
  --glow-blur: 120px;
}

.hero-media-wrapper .hero-img {
  width: 95%;
  max-width: 850px;
  --hero-margin-top: -150px;
  margin-top: var(--hero-margin-top);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 50px rgba(146, 58, 255, 0.25));
}

@media (max-width: 1280px) {
  .hero-media-wrapper {
    justify-content: center;
  }

  .hero-media-wrapper .hero-img {
    width: 65%;
    max-width: 290px;
  }
}

@media (max-width: 768px) {
  .hero-media-wrapper .hero-img {
    width: 100%;
    max-width: 340px;
  }
}

/* --- Traffic Sources Section & Gear Graphic --- */
.sources-cta-grid {
  margin-top: var(--space-2xl);
  align-items: center;
}

@media (min-width: 1281px) {
  .sources-cta-grid {
    margin-top: calc(-1 * (var(--space-5xl) + var(--space-xl)));
    position: relative;
    z-index: 1;
    /* Slide under the card-row above which has z-index: 12 */
  }
}

.sources-media-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  z-index: 2;
}

.sources-media-wrapper .has-glow {
  position: relative;
  width: 100%;
  max-width: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  --glow-size: 450px;
  --glow-blur: 80px;
}

.sources-img {
  width: 100%;
  max-width: 440px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 50px rgba(146, 58, 255, 0.25));
}

/* CTA Card Styling */
.cta-card-wrapper .glass-card {
  background: linear-gradient(135deg, var(--primary-purple-dark) 0%, var(--secondary-blue-purple) 100%);
  border: none;
}

.cta-card-wrapper .glass-card h4,
.cta-card-wrapper .glass-card p {
  color: var(--text-white);
}

/* White Button Styling inside CTA Card */
.cta-card-wrapper .glass-card .btn-primary {
  background-color: var(--text-white);
  color: var(--primary-purple);
  border: 2px solid var(--text-white);
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.cta-card-wrapper .glass-card .btn-primary:hover {
  background-color: transparent;
  color: var(--text-white);
  border-color: var(--text-white);
}

@media (max-width: 1280px) {
  .sources-img {
    max-width: 320px;
  }
}

@media (max-width: 768px) {
  .sources-cta-grid {
    margin-top: var(--space-xl);
  }

  .sources-img {
    max-width: 220px;
    margin-bottom: var(--space-md);
  }
}

/* --- Growth Opportunities Section & Sphere Graphic --- */
.growth-graphic {
  right: -50px;
  bottom: -90px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 240px;
}

.growth-graphic .has-glow {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  --glow-size: 250px;
  --glow-blur: 50px;
}

.growth-img {
  width: 100%;
  max-width: 240px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 15px 35px rgba(146, 58, 255, 0.15));
}

@media (max-width: 1280px) {
  .growth-graphic {
    right: -25px;
    bottom: -70px;
    max-width: 180px;
  }

  .growth-img {
    max-width: 180px;
  }
}

@media (max-width: 768px) {
  .growth-graphic {
    right: -10px;
    bottom: -50px;
    max-width: 130px;
  }

  .growth-img {
    max-width: 130px;
  }
}

/* --- Affiliate Support Section & Crystal Graphic --- */
.support-graphic {
  right: -60px;
  bottom: -80px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 220px;
}

.support-graphic .has-glow {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  --glow-size: 220px;
  --glow-blur: 45px;
}

.support-img {
  width: 100%;
  max-width: 220px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 15px 35px rgba(146, 58, 255, 0.15));
}

@media (max-width: 1280px) {
  .support-graphic {
    right: -30px;
    bottom: -60px;
    max-width: 165px;
  }

  .support-img {
    max-width: 165px;
  }
}

@media (max-width: 768px) {
  .support-graphic {
    right: -10px;
    bottom: -40px;
    max-width: 120px;
  }

  .support-img {
    max-width: 120px;
  }
}

/* Purple Card Styling for Affiliates Page */
.affiliates-page-content .purple-card .btn-primary {
  background-color: var(--text-white);
  color: var(--primary-purple);
  border: 2px solid var(--text-white);
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.affiliates-page-content .purple-card .btn-primary:hover {
  background-color: transparent;
  color: var(--text-white);
  border-color: var(--text-white);
}

.affiliates-page-content .purple-card p {
  color: var(--text-white);
}

/* Onboarding Steps Grid Layout */
.steps-grid {
  --fs-glow-number: 5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  width: 100%;
}

.steps-grid .glass-card {
  position: relative;
  border: none;
  min-height: 240px;
  justify-content: flex-start;
  align-items: flex-start;
  box-sizing: border-box;
}

.steps-grid .glow-bg-number {
  position: absolute;
  top: var(--space-md);
  right: var(--space-lg);
  font-size: var(--fs-glow-number);
  font-weight: 300;
  /* Thin / light font weight as requested */
  line-height: 1;
  color: rgba(var(--white-rgb), 0.03);
  transition: color 0.4s ease, transform 0.4s ease;
  user-select: none;
}

.steps-grid .glass-card:hover .glow-bg-number {
  color: rgba(var(--primary-purple-rgb), 0.12);
  transform: scale(1.1) translate(calc(-1 * var(--space-xs)), var(--space-xs));
}

@media (max-width: 992px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid .glass-card {
    min-height: auto;
    padding-top: var(--space-4xl);
  }
}