.timeline-tabs {
  & .sec-heading {
    max-width: 1156px;
    margin: 0 auto;
    margin-bottom: 64px;
    padding-top: 64px;
  }

  & .tabtimeline {
    padding-bottom: 12px;

    & .tabtimeline-tabs {
      display: flex;
      gap: 12px;
      position: relative;
      background: white;
      width: 100%;
      padding-bottom: 4px;

      & .gradient-overlay {
        position: absolute;
        left: 0;
        right: 0;
        width: auto;
        height: 100%;
        min-width: 100%;
        background: linear-gradient(90deg, rgba(33, 82, 115, 1) 0%, rgba(0, 163, 152, 1) 100%);
        mix-blend-mode: screen;
        pointer-events: none;
        z-index: 2;
      }

      & .tabtimeline-tab {
        background: #000;
        width: 100%;
        padding: 8px;
        border-radius: 12px 12px 0 0;
        user-select: none;
        cursor: pointer;
        transition:
          filter 0.2s ease-in-out,
          opacity 0.2s ease-in-out;
        position: relative;
        margin-top: 38px;
        font-size: 36px;
        font-weight: 700;
        line-height: 100%;
        letter-spacing: -0.005em;
        font-family: "Roboto", sans-serif;
        opacity: 0.6;

        &:focus-visible {
          outline: 2px solid white;
          outline-offset: -4px;
        }

        > span {
          color: white;
          opacity: 0.5;
          z-index: 3;
        }

        &::before {
          background: #000;
          content: "";
          display: block;
          position: absolute;
          bottom: 100%;
          left: 0;
          height: 14px;
          width: 14px;
          border-radius: 40px;
          margin-bottom: 24px;
          transition:
            filter 0.2s ease-in-out,
            opacity 0.2s ease-in-out;
          opacity: 0.6;
        }

        & .tabtimer,
        & .tabtimeroverlay {
          background: #000;
          display: block;
          position: absolute;
          bottom: 100%;
          right: 0;
          height: 6px;
          width: calc(100% - 24px);
          border-radius: 40px;
          margin-bottom: 28px;
          transition:
            filter 0.2s ease-in-out,
            opacity 0.2s ease-in-out;
          opacity: 0.6;
        }

        & .tabtimeroverlay {
          opacity: 0;
          background: linear-gradient(to right, black 50%, transparent 50%);
          background-size: 200% 100%;
          background-position: right center;
        }

        &.active {
          opacity: 1;

          &::before {
            opacity: 0.36;
          }

          > span {
            opacity: 1;
          }

          & .tabtimer {
            opacity: 0.36;
          }
        }

        &.swipe {
          & .tabtimeroverlay {
            animation: swipe 3s linear forwards;
            opacity: 1;
          }

          &::before {
            opacity: 1;
          }
        }

        &.swipe .tabtimeroverlay {
          animation: swipe 3s linear forwards;
          opacity: 1;
        }

        &:not(.active):hover {
          opacity: 0.5;
        }
      }
    }

    & .tabtimeline-top.is-paused:not(.out-of-view) .tabtimeline-tab.active .tabtimer,
    & .tabtimeline-top.is-paused:not(.out-of-view) .tabtimeline-tab.active::before {
      opacity: 1;
    }

    & .tabtimeline-gradients {
      position: relative;
      height: 24px;
      width: 100%;
      margin-top: 4px;
      background: linear-gradient(90deg, #0e838a 0%, #079391 100%);
      border-radius: 4px 4px 0 0;
      overflow: hidden;

      > div {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 24px;
        width: auto;
        opacity: 0;
        transition: opacity 0.2s ease-in-out;

        &:nth-child(1) {
          background: linear-gradient(90deg, #215273 0%, #1b637b 100%);
        }
        &:nth-child(2) {
          background: linear-gradient(90deg, #1b637b 0%, #147382 100%);
        }
        &:nth-child(3) {
          background: linear-gradient(90deg, #147382 0%, #0e838a 100%);
        }
        &:nth-child(4) {
          background: linear-gradient(90deg, #0e838a 0%, #079391 100%);
        }
        &:nth-child(5) {
          background: linear-gradient(90deg, #079391 0%, #00a398 100%);
        }
        &:nth-child(6) {
          background: linear-gradient(90deg, #00a398 0%, rgba(0, 163, 152, 0.7) 100%);
        }

        &.active {
          opacity: 1;
        }
      }
    }

    & .tabtimeline-panels {
      & .tabtimeline-panel {
        display: none;
        border-radius: 0 0 16px 16px;
        background: rgba(33, 82, 115, 0.05);
        padding: 24px 35px 40px 35px;
        margin-top: 8px;

        &.active {
          display: block;
        }
      }
    }

    & .tabtimeline-tabs,
    & .tabtimeline-gradients,
    & .tabtimeline-panels {
      max-width: 1156px;
      margin-left: auto;
      margin-right: auto;
    }

    & .tabtimeline-grid {
      display: grid;
      grid-template-columns: 1fr;
      width: 100%;
      gap: 20px;
    }
  }

  & .tabcontent {
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 0 22px rgba(4, 4, 4, 0.1);
    padding: 24px;
    color: var(--color-text-gray);
    font-family: "Roboto", sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.3;
    
    &.has-border {
        position: relative;
        overflow: hidden;
        
        &::before {
            content: "";
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            padding: 2px;
            background: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(9,140,141,1) 99%);
            border-radius: inherit;
            -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            -webkit-mask-composite: destination-out;
            mask-composite: exclude;
            pointer-events: none;
        }
    }

    p,
    li {
      color: var(--color-text-gray);
      font-family: "Roboto", sans-serif;
      font-size: 18px;
      font-weight: 400;
      line-height: 1.3;
    }

    p {
      margin: 0;
      &:not(:first-child) {
        margin-top: 12px;
      }
      &.title,
      strong {
        color: #343a40;
        font-size: 20px;
        font-weight: 600;
        line-height: 1.25;
      }
      &.kicker {
        color: #215273;
        font-size: 15px;
        font-weight: 600;
        line-height: 1.25;
        margin-bottom: 20px;
      }
    }

    ul,
    ol {
      margin: 0;
      margin-top: 3px;
    }
    li {
      margin-top: 12px;
      padding: 0;
    }

    ol {
      list-style: none;
      padding-left: 0;
      li {
        position: relative;
        padding-left: 28px;
        &::before {
          content: "";
          position: absolute;
          left: 0;
          top: 0;
          width: 20px;
          height: 21px;
          background-repeat: no-repeat;
          background-size: contain;
          background-image: url('data:image/svg+xml;utf8,<svg width="20" height="21" viewBox="0 0 20 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10 0.5C8.022 0.5 6.089 1.086 4.444 2.185 2.8 3.284 1.518 4.846.761 6.673-.0 8.5-.194 10.511.192 12.451c.386 1.939 1.338 3.721 2.737 5.12C4.327 18.97 6.109 19.922 8.049 20.308c1.94.386 3.95.188 5.777-.569 1.827-.756 3.389-2.038 4.488-3.683C19.413 14.411 20 12.478 20 10.5c-.003-2.651-1.058-5.193-2.933-7.068C15.193 1.557 12.651.503 10 .5zm4.39 8.237L9.006 14.12a.738.738 0 0 1-.787.167.738.738 0 0 1-.302-.167L5.61 11.814a.77.77 0 0 1 0-1.089.77.77 0 0 1 1.088 0l1.764 1.764 4.84-4.84a.77.77 0 0 1 1.089 0 .77.77 0 0 1 0 1.089z" fill="%2300A398"/></svg>');
        }
      }
    }
  }

  & div > .container {
    padding-left: 3.13rem;
    padding-right: 3.13rem;
  }

  & p {
    strong {
      margin-right: 20px;
    }
    strong + a {
      line-height: 2;
    }
  }

    .bottom-group {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-auto-rows: auto;
        gap: 20px;
        margin-top: 20px;
    }
    .bottom-group > .tabcontent { grid-column: 1; }

    .bottom-group > .cta-card  {
        grid-column: 2;
        grid-row: 1/3;
        width: 344px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .bottom-group:not(:first-child) {
        margin-top: 20px;
    }

    .cta-card {
        text-align: center;
        padding: 32px;
        background-size: cover;

        & img { 
            max-height: 208px;
            text-align: center;
            object-fit: cover;
            border-radius: 8px;
            box-shadow: 0px 2.853px 11.411px 0px rgba(0, 0, 0, 0.20);

            &:not(:first-child) {
                margin-top: 24px;
            }
            &:not(:last-child) {
                margin-bottom: 24px;
            }
        }

        .btn {
            text-align: center;
            width: 100%;
            padding-left: 6px !important;
            padding-right: 6px !important;
        }

        p.title {
            font-size: 24px;
            font-style: normal;
            font-weight: 600;
            line-height: 1.2;
        }

        &.cta-no-img {
            text-align: left;
            padding: 24px;
            align-items: flex-start;

            & .btn {
                margin-top: 24px;
                width: auto;
                padding-left: 32px !important;
                padding-right: 32px !important;
            }
        }
    }
}

@media (max-width: 991px) {
  .timeline-tabs {
    & div > .container {
      padding-left: 2.19rem;
      padding-right: 2.19rem;
    }
  }
}

@media (max-width: 860px) {
  .timeline-tabs {
    & .tabtimeline {
      & .tabtimeline-tab {
        min-width: 19.5vw;
      }
      & .tabtimeline-tabs {
        width: max-content;
      }

      & .tabtimeline-panels .tabtimeline-panel {
        padding: 20px 20px 30px;
        margin-top: 4px;
      }

      & .tabtimeline-gradients,
      & .tabtimeline-gradients > div {
        height: 12px;
      }

      & .tabtimeline-top {
        position: relative;

        & .container {
          overflow-x: scroll;
          max-width: 100vw;
          box-sizing: border-box;
          scroll-behavior: smooth;
          padding-right: 0;
          scroll-padding-inline-end: 0;
          scroll-padding-right: 0;

          &::after {
            position: absolute;
            content: "";
            top: 0;
            right: 0;
            height: 100%;
            background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, #fff 100%);
            width: 2.19rem;
            pointer-events: none;
          }

          &.scrolled::after {
            display: none;
          }
        }
      }

      & .tabtimeline-tabs::after {
        content: "";
        flex: 0 0 calc(2.19rem - 12px);
      }

      & .tabtimeline-grid {
        grid-template-columns: 1fr;
      }
      strong {
        width: 100%;
        display: block;
      }
    }

    .bottom-group {
        grid-template-columns: 1fr;

        > .cta-card {
            grid-row: unset !important;
            grid-column: unset !important;
        }
    }
  }
}

@media (max-width: 600px) {
  .timeline-tabs {
    & .tabtimeline {
      & .tabtimeline-tabs {
        gap: 8.78px;
        width: max-content;

        &::after {
          flex: 0 0 calc(2.19rem - 8.78px);
        }

        & .tabtimeline-tab {
          min-width: 110px;
          font-size: 26px;
          margin-top: 22.2px;

          & .tabtimer, & .tabtimeroverlay {
            margin-bottom: 12px;
            width: calc(100% - 16.25px);
          }

          &::before {
            height: 10.25px;
            width: 10.25px;
            margin-bottom: 10px;
          }
        }
      }

      & .tabcontent {
          padding: 16px;

          p, li {
            font-size: 16px;
          }

          & p.title {
            font-size: 18px;
          }

          & p.kicker {
            font-size: 15px;
          }
      }
    }

    .bottom-group {
        > .cta-card {
            width: 100%;
        }
    }
  }
}

.timeline-tabs div:not(.subnav-content) > .container {
  padding-left: 3.13rem;
  padding-right: 3.13rem;
}

.max-1156px .wp-block-column {
  max-width: 1156px;
  margin-left: auto;
  margin-right: auto;
}
.max-1156px .wp-block-columns {
  padding-left: 3.13rem;
  padding-right: 3.13rem;
}

@media (max-width: 991px) {
  .timeline-tabs div:not(.subnav-content) > .container {
    padding-left: 2.19rem;
    padding-right: 2.19rem;
  }
  .max-1156px .wp-block-columns {
    padding-left: 2.19rem;
    padding-right: 2.19rem;
  }
}

@keyframes swipe {
  from {
    background-position: right center;
  }
  to {
    background-position: left center;
  }
}
