
/* =====================================================
   WORKCAST HERO - FIVE SLIDE ROTATOR
   ===================================================== */

.workcast-sector-rotator {
  position: relative;
  z-index: 2;

  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  background: #100024;

  overflow: hidden;
  isolation: isolate;
}

/* =====================================================
   MAIN LAYOUT
   ===================================================== */

.workcast-sector-rotator .workcast-hero-inner {
  display: grid;

  grid-template-columns:
    minmax(0, 0.95fr)
    minmax(0, 1.05fr);

  align-items: stretch;

  width: 100%;
  max-width: 1800px;
  min-height: 660px;

  margin: 0 auto;
  padding-left: 65px;

  box-sizing: border-box;
}

/* =====================================================
   LEFT CONTENT
   ===================================================== */

.workcast-sector-rotator .workcast-hero-content {
  position: relative;
  z-index: 5;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;

  max-width: 750px;
  padding: 65px 35px 70px 0;

  box-sizing: border-box;
}

/* HEADING */

.workcast-sector-rotator .workcast-hero-heading {
  margin: 0 0 25px;

  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 56px;
  line-height: 1.13;
  font-weight: 400;

  color: #ffffff;
}

/* DESCRIPTION */

.workcast-sector-rotator .workcast-hero-description {
  margin: 0 0 28px;
  max-width: 680px;

  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;

  color: rgba(255, 255, 255, 0.87);
}

/* =====================================================
   ROTATING TEXT
   ===================================================== */

.workcast-sector-rotator .workcast-rotating-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  gap: 4px;
  margin: 0 0 30px;

  max-width: 100%;
  min-width: 0;

  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 26px;
  line-height: 1.3;
  font-weight: 400;

  color: #ffffff;
}

.workcast-sector-rotator .rotating-intro {
  display: block;
  font-weight: 400;

  opacity: 1;
  transition: opacity 0.6s ease;
}

/* SINGLE ROTATING LINK CONTAINER */

.workcast-sector-rotator .rotating-words {
  display: block;

  min-height: 1.3em;
  min-width: 220px;
  max-width: 100%;

  opacity: 1;
  transition: opacity 0.6s ease;
}

/* ONLY ONE LINK IS DISPLAYED */

.workcast-sector-rotator .rotating-word {
  display: inline-block;

  max-width: 100%;

  font-weight: 600;
  color: #e4358b;

  white-space: nowrap;
  text-decoration: none;

  transition: color 0.25s ease;
}

.workcast-sector-rotator .rotating-word:hover,
.workcast-sector-rotator .rotating-word:focus {
  color: #e5540f;
  text-decoration: none;
}

/* TEXT FADE */

.workcast-sector-rotator.is-changing .rotating-intro,
.workcast-sector-rotator.is-changing .rotating-words {
  opacity: 0;
}

/* =====================================================
   BUTTONS
   ===================================================== */

.workcast-sector-rotator .workcast-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.workcast-sector-rotator .workcast-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 56px;
  padding: 0 28px;

  border-radius: 8px;

  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;

  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
}

.workcast-sector-rotator .workcast-button:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.workcast-sector-rotator .workcast-button-primary {
  background: #e4358b;
  border: 2px solid #e4358b;
  color: #ffffff;
}

.workcast-sector-rotator .workcast-button-secondary {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: #ffffff;
}

.workcast-sector-rotator .workcast-button-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* =====================================================
   RIGHT IMAGE AREA
   ===================================================== */

.workcast-sector-rotator .workcast-hero-visual {
  position: relative;

  width: 100%;
  min-width: 0;
  min-height: 660px;

  overflow: hidden;
}

/* ALL IMAGES FILL THE SAME SPACE */

.workcast-sector-rotator .workcast-rotating-images {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  overflow: hidden;
  background: #100024;
}

/* =====================================================
   IMAGE LAYERS
   ===================================================== */

.workcast-sector-rotator .rotating-image {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  opacity: 0;
  visibility: hidden;
  z-index: 1;
}

.workcast-sector-rotator .rotating-image.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* IMAGE ITSELF */

.workcast-sector-rotator .rotating-image img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;
}

/* RACHEL IMAGE */

.workcast-sector-rotator .rotating-image--rachel img {
  object-position: 62% center;
}

/* =====================================================
   NAVY GRADIENT OVER ALL SLIDES
   ===================================================== */

.workcast-sector-rotator .workcast-hero-visual::after {
  content: "";

  position: absolute;
  z-index: 4;
  inset: 0;

  background: linear-gradient(
    90deg,
    #100024 0%,
    rgba(16, 0, 36, 0.96) 8%,
    rgba(16, 0, 36, 0.70) 24%,
    rgba(16, 0, 36, 0.32) 43%,
    rgba(16, 0, 36, 0.06) 68%,
    rgba(16, 0, 36, 0) 100%
  );

  pointer-events: none;
}

/* =====================================================
   LARGE DESKTOP
   ===================================================== */

@media (min-width: 1600px) {

  .workcast-sector-rotator .workcast-hero-inner {
    min-height: 700px;
    padding-left: 75px;
  }

  .workcast-sector-rotator .workcast-hero-heading {
    font-size: 58px;
  }

  .workcast-sector-rotator .workcast-hero-visual {
    min-height: 700px;
  }
}

/* =====================================================
   TABLET
   ===================================================== */

@media (max-width: 1100px) {

  .workcast-sector-rotator .workcast-hero-inner {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(0, 1fr);

    min-height: 580px;
    padding-left: 30px;
  }

  .workcast-sector-rotator .workcast-hero-content {
    padding: 45px 25px 50px 0;
  }

  .workcast-sector-rotator .workcast-hero-heading {
    font-size: 44px;
  }

  .workcast-sector-rotator .workcast-hero-description {
    font-size: 16px;
  }

  .workcast-sector-rotator .workcast-rotating-text {
    font-size: 22px;
  }

  .workcast-sector-rotator .workcast-hero-visual {
    min-height: 580px;
  }
}

/* =====================================================
   MOBILE
   ===================================================== */

@media (max-width: 767px) {

  .workcast-sector-rotator .workcast-hero-inner {
    display: flex;
    flex-direction: column;

    min-height: 0;
    padding: 0;
  }

  .workcast-sector-rotator .workcast-hero-content {
    width: 100%;
    max-width: none;

    padding: 40px 20px 35px;
  }

  .workcast-sector-rotator .workcast-hero-heading {
    margin-bottom: 20px;
    font-size: 38px;
    line-height: 1.15;
  }

  .workcast-sector-rotator .workcast-hero-description {
    margin-bottom: 22px;
    font-size: 16px;
    line-height: 1.55;
  }

  .workcast-sector-rotator .workcast-rotating-text {
    width: 100%;
    max-width: 100%;

    margin-bottom: 25px;
    font-size: 20px;
  }

  .workcast-sector-rotator .rotating-words {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  .workcast-sector-rotator .rotating-word {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
  }

  .workcast-sector-rotator .workcast-hero-buttons {
    gap: 10px;
  }

  .workcast-sector-rotator .workcast-button {
    min-height: 52px;
    padding: 0 21px;
    font-size: 16px;
  }

  .workcast-sector-rotator .workcast-hero-visual {
    width: 100%;
    min-height: 330px;
  }

  .workcast-sector-rotator .workcast-hero-visual::after {
    background: linear-gradient(
      180deg,
      #100024 0%,
      rgba(16, 0, 36, 0.22) 22%,
      rgba(16, 0, 36, 0) 55%
    );
  }
}

/* =====================================================
   SMALL MOBILE
   ===================================================== */

@media (max-width: 480px) {

  .workcast-sector-rotator .workcast-hero-content {
    padding-top: 35px;
  }

  .workcast-sector-rotator .workcast-hero-heading {
    font-size: 34px;
  }

  .workcast-sector-rotator .workcast-hero-buttons {
    width: 100%;
  }

  .workcast-sector-rotator .workcast-button {
    flex: 1 1 auto;
    min-width: 135px;
  }

  .workcast-sector-rotator .workcast-hero-visual {
    min-height: 280px;
  }
