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

/* --- Hero Section & Padding Overrides (Desktop Only) --- */


/* --- Hero Section Buttons --- */
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  width: 100%;
}

@media (max-width: 576px) {
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn-primary,
  .hero-buttons .btn-outline {
    width: 100%;
    justify-content: center;
  }
}

/* --- Hero Section Magnet 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 .portal-img {
  width: 100%;
  /* Росте більше за колонку */
  max-width: none;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 50px rgba(146, 58, 255, 0.25));
  --neg-margin-x: -20%;
  --neg-margin-bottom: -220px;
  margin-left: var(--neg-margin-x);
  /* Рівномірно вилазить ліворуч */
  margin-right: var(--neg-margin-x);
  /* Рівномірно вилазить праворуч */
}

@media (max-width: 1280px) {
  .operators-page-content #hero .hero-media-wrapper {
    justify-content: center;
    position: relative;
  }

  .operators-page-content #hero .hero-media-wrapper .portal-img {
    width: 100%;
    max-width: 100%;
    max-height: 50vh;
    object-fit: contain;
    object-position: center top;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
    margin-top: 0;
  }

  .operators-page-content #hero .section-header {
    margin-top: -10vh;
    position: relative;
    z-index: 5;
  }

  .operators-page-content #hero .section-header::before {
    content: "";
    position: absolute;
    top: -50px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: linear-gradient(to bottom,
        rgba(7, 5, 13, 0) 0%,
        rgba(7, 5, 13, 0.85) 30%,
        rgba(7, 5, 13, 0.98) 70%,
        var(--bg-dark) 100%);
    z-index: -1;
    pointer-events: none;
  }
}

/* --- Ecosystem Section Atom Graphic --- */
.ecosystem-media-wrapper {
  position: relative;
  display: flex;
  justify-content: flex-start;
  width: 100%;
  z-index: 2;
}

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

.ecosystem-media-wrapper .ecosystem-img {
  width: 100%;
  max-width: 500px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 50px rgba(146, 58, 255, 0.2));
}

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

  .ecosystem-media-wrapper .ecosystem-img {
    max-width: 100%;
  }
}

/* --- Traffic Quality Section Tube Graphic --- */
.quality-media-wrapper {
  position: relative;
  display: flex;
  justify-content: flex-end;
  width: 100%;
  z-index: 2;
}

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

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

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

  .quality-media-wrapper .quality-img {
    max-width: 360px;
  }
}

@media (max-width: 480px) {

  .quality-media-wrapper .quality-img {
    margin-top: -40%;
  }
}

/* --- How Cooperation Works Crystal (Under Glass Card) --- */
.cooperation-graphic {
  right: -50px;
  bottom: -100px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 260px;
}

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

@media (max-width: 1280px) {
  .cooperation-graphic {
    right: -20px;
    bottom: -80px;
    max-width: 200px;
  }
}

@media (max-width: 768px) {
  .cooperation-graphic {
    right: -10px;
    bottom: -60px;
    max-width: 150px;
  }
}