/* ITMS2 LLC Launch Fixes 1.0.0 — scoped to the reviewed Elementor/Blocksy markup. */

/* Keep industry labels while removing the appearance of nonexistent destinations. */
#footer .itms2-lf-static-link {
  display: inline-block;
  color: var(--theme-text-color, #d7e2eb);
  cursor: text;
  font: inherit;
  line-height: inherit;
  padding-block: 5px;
}

/* Real social links remain visible automatically when their URLs are supplied. */
#footer .ct-social-box a[href="#"],
#footer .ct-social-box a[href=""] {
  display: none !important;
}

/* New semantic heading for the Legacy overview, preserving its established style. */
#itms2-lf-legacy-title {
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.18;
  font-weight: 750;
  color: #0a2540;
  margin: 0 0 22px;
}

/* The desktop banner already displays this headline. Keep its HTML equivalent accessible. */
.itms2-lf-careers-ready .itms2-lf-careers-intro {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Tablet and phone: approved image first, readable HTML copy next, live buttons last. */
@media (max-width: 1024px) {
  section.hero.itc-hero-image.itms2-lf-careers-ready {
    display: flex !important;
    flex-direction: column;
    padding: 0 !important;
    background: #0a2540;
    overflow: hidden;
  }

  .itms2-lf-careers-ready .itc-hero-desktop {
    display: block !important;
    order: 0;
    width: 100%;
    height: clamp(220px, 52vw, 390px);
    min-height: 0 !important;
    position: relative;
    overflow: hidden;
  }

  .itms2-lf-careers-ready .itc-hero-desktop > img {
    display: block !important;
    position: absolute !important;
    top: 0;
    right: 0;
    bottom: auto;
    left: auto;
    width: 200% !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    transform: none !important;
  }

  .itms2-lf-careers-ready .itc-hero-hotspot {
    display: none !important;
  }

  .itms2-lf-careers-ready .itms2-lf-careers-intro {
    order: 1;
    position: static;
    width: 100%;
    max-width: 820px;
    height: auto;
    margin: 0 auto;
    padding: 30px 24px 12px;
    overflow: visible;
    clip: auto;
    white-space: normal;
  }

  .itms2-lf-careers-intro .itms2-lf-eyebrow {
    color: #ffd700;
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: .09em;
    font-weight: 750;
    margin: 0 0 14px;
  }

  #itms2-lf-careers-title {
    color: #fff;
    font-size: clamp(30px, 5.4vw, 46px);
    line-height: 1.16;
    letter-spacing: -.025em;
    font-weight: 750;
    margin: 0 0 20px;
  }

  #itms2-lf-careers-title span { color: #ffd700; }

  .itms2-lf-careers-intro > p:not(.itms2-lf-eyebrow) {
    color: #dce7ef;
    font-size: 16px;
    line-height: 1.8;
    margin: 0 0 12px;
  }

  .itms2-lf-careers-ready .itc-hero-mobile-actions {
    order: 2;
    display: flex !important;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
    max-width: 820px;
    margin: 0 auto !important;
    padding: 4px 24px 32px !important;
    background: transparent !important;
  }

  .itms2-lf-careers-ready .itc-hero-mobile-actions .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 260px;
    min-height: 52px;
    padding: 14px 18px;
    border: 2px solid #ffd700;
    border-radius: 8px;
    background: #ffd700;
    color: #0a2540;
    font-size: 16px;
    font-weight: 750;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
  }

  .itms2-lf-careers-ready .itc-hero-mobile-actions .btn.alt {
    border-color: #bfced9;
    background: transparent;
    color: #fff;
  }

  /* Bring the homepage consultation buttons above the long benefits list. */
  #itms-homepage .hero-content {
    display: flex;
    flex-direction: column;
  }
  #itms-homepage .hero-content > .hero-eyebrow { order: 0; }
  #itms-homepage .hero-content > h1 { order: 1; }
  #itms-homepage .hero-content > .hero-intro { order: 2; }
  #itms-homepage .hero-content > .hero-actions { order: 3; margin-bottom: 26px; }
  #itms-homepage .hero-content > .hero-benefits { order: 4; }
}

@media (max-width: 600px) {
  .itms2-lf-careers-ready .itc-hero-mobile-actions { flex-direction: column; }
  .itms2-lf-careers-ready .itc-hero-mobile-actions .btn { flex: none; width: 100%; }
}

.itms2-lf-careers-ready .itc-hero-mobile-actions a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 5px;
}
