/* Steps Section Utilities */
.steps-topper {
    font-size: clamp(0.8125rem, 1.6vw, 1rem);
    line-height: 1.2em;
    text-transform: uppercase;
    text-align: inherit;
    letter-spacing: .1em;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
    display: block;
}

.steps-title {
    font-size: clamp(1.9375rem, 3.9vw, 3.0625rem);
    font-weight: 900;
    line-height: 1.2em;
    text-align: inherit;
    max-width: 43.75rem;
    margin: 0 0 1rem 0;
    color: var(--color-white);
    position: relative;
}

.steps-text {
    font-size: 1.3rem;
    line-height: 1.8;
    font-weight: 300;
    margin-bottom: 1.5rem;
    color: var(--color-white) !important;
    font-family: 'Open Sans', 'Rubik', Arial, sans-serif;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

@media only screen and (min-width: 0rem) {
    .steps-section {
        padding: clamp(0.5rem, 4vw, 1.5rem) 1rem;
        padding-left: 0;
        padding-right: 0;
    }

    .steps-container {
        width: 100%;
        max-width: 36.5rem;
        margin: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: clamp(2.25rem, 4.5vw, 3rem);
    }

    .steps-content {
        text-align: center;
        width: 100%;
        padding: 0 1rem;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .steps-text {
        max-width: 32.625rem;
    }

    .steps-card-group {
        margin: 0;
        padding: 0;
        display: grid;
        justify-items: center;
        align-items: stretch;
        grid-auto-flow: row;
    }

    .steps-item {
        list-style: none;
        box-sizing: border-box;
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        position: relative;
    }

    .steps-item::after {
        content: "";
        width: 100%;
        height: 1px;
        background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, #bababa 50%, rgba(255, 255, 255, 0) 100%);
        opacity: .6;
        position: absolute;
        bottom: 0;
        left: 0;
    }

    .steps-item:first-of-type {
        padding-top: 0;
    }

    .steps-item:last-of-type {
        padding-bottom: 0;
    }

    .steps-item:last-of-type::after {
        content: none;
    }

    .steps-number {
        font-size: clamp(5.5rem, 1.25vw, 6.5rem);
        font-weight: 900;
        line-height: 1.2em;
        color: var(--primary);
        opacity: 0.80;
        display: block;
        z-index: 0;
        /* Text border effect */
        text-shadow:
            0 0 2px #fff,
            0 2px 8px rgba(50,150,165,0.25),
            0 0 8px var(--primary);
        /* Fade towards bottom using a mask gradient */
        -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
        mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
    }

    .steps-h3 {
        font-size: clamp(1.25rem, 2vw, 1.5625rem);
        font-weight: 700;
        line-height: 1.2em;
        margin: -1.9375rem 0 1rem 0;
        color: var(--color-white);
        z-index: 1;
    }

    .steps-item-text {
        font-size: clamp(0.875rem, 2vw, 1rem);
        line-height: 1.5em;
        text-align: left;
        margin: 0;
        color: var(--color-white);
        z-index: 1;
    }

    .steps-btn-solid {
        font-size: 1rem;
        line-height: clamp(2.875rem, 5.5vw, 3.5rem);
        text-decoration: none;
        font-weight: 700;
        text-align: center;
        margin: 0;
        color: var(--color-white);
        min-width: 9.375rem;
        padding: 0 1.5rem;
        background-color: var(--primary);
        border-radius: 0.25rem;
        display: inline-block;
        position: relative;
        z-index: 1;
        box-sizing: border-box;
    }

    .steps-btn-solid:before {
        content: "";
        position: absolute;
        height: 100%;
        width: 0%;
        background: var(--black);
        opacity: 1;
        top: 0;
        left: 0;
        z-index: -1;
        border-radius: 0.25rem;
        transition: width 0.3s;
    }

    .steps-btn-solid:hover:before {
        width: 100%;
    }
}

@media only screen and (min-width: 48rem) {
    .steps-container {
        max-width: 120rem;
    }

    .steps-card-group {
        grid-template-columns: repeat(5, 1fr);
        gap: 0;
    }

    .steps-item {
        padding: clamp(1.5rem, 3vw, 3.75rem);
    }

    .steps-item::after {
        width: 1px;
        height: 100%;
        background: linear-gradient(0deg, rgba(255, 255, 255, 0) 0%, #bababa 50%, rgba(255, 255, 255, 0) 100%);
        opacity: .6;
        right: 0;
        left: initial;
    }

    .steps-item:first-of-type,
    .steps-item:last-of-type {
        padding: clamp(1.5rem, 3vw, 3.75rem);
    }
}

@media (max-width: 600px) {
    .steps-card-group {
        display: block;
    }

    .steps-item {
        padding-left: 2rem;
        padding-right: 2rem;
        align-items: flex-start;
        width: 100%;
        box-sizing: border-box;
    }

    .steps-number {
        display: block;
        margin-left: 0;
        margin-bottom: -2rem;
        padding-bottom: 0;
    }

    .steps-h3,
    .steps-item-text {
        margin-left: 0;
        padding-left: 0;
    }

    .steps-h3 {
        margin-top: 0;
    }
}