/* Common software challenges and a direct invitation to talk. */
.software-challenges-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
    align-items: center;
    gap: 0 40px;
}

.software-challenges-layout>h2 {
    grid-column: 1 / -1;
}

.software-challenges-intro {
    margin: 0 0 16px;
    font-size: clamp(22px, 2.1vw, 29px);
    line-height: 1.4;
}

.software-challenges-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.software-challenges-list li {
    display: flex;
    align-items: center;
    gap: 26px;
    margin: 0;
    padding: 15px 0;
    border-bottom: 1px solid #d5dee7;
    background: none;
    font-size: clamp(1rem, 1.05vw, 1.25rem);
    line-height: 1.4;
}

.software-challenges-list li:last-child {
    border-bottom: 0;
}

.software-challenges-card {
    position: relative;
    isolation: isolate;
    container-type: inline-size;
    width: 24vw;
    max-width: 100%;
    aspect-ratio: 255 / 300;
    color: #20264f;
    filter: drop-shadow(0 14px 14px rgb(24 31 74 / 18%));
}

.challenges-hex {
    position: absolute;
}

.challenges-hex use {
    fill: none;
    stroke-width: 3px;
}

.challenges-hex-border use {
    fill: #f4f4f4;
    stroke-width: 5px;
}

svg.challenges-hex,
.challenges-hex-border {
    overflow: visible;
    pointer-events: none;
}

.challenges-hex-border {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
}

.challenges-hex--navy {
    width: 36%;
    height: 35%;
    top: 0;
    right: 2%;
}

.challenges-hex--blue {
    width: 25%;
    height: 26%;
    top: 51%;
    left: 0;
}

.challenges-hex--heading {
    z-index: 2;
    top: 5%;
    left: 13%;
    width: 72%;
    height: 69%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.challenges-chat-icon {
    width: 16cqw;
    height: 16cqw;
    margin: 0 0 3cqw;
    color: #22c7ce;
}

.software-challenges-card h3 {
    margin: 0;
    color: inherit;
    font-size: 10cqw;
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -.04em;
    text-align: center;
}

.challenges-contact-button {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    white-space: normal;
    text-align: center;
}

.challenges-contact-button > .btn {
    max-width: 100%;
    white-space: normal;
}

@media (max-width: 991px) {
    .software-challenges-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .software-challenges-card {
        width: 100%;
    }
}

@media (min-width: 576px) and (max-width: 767px) {
    .container.software-challenges-layout {
        max-width: 100%;
    }
}

@media (max-width: 575px) {
    .software-challenges-list li {
        gap: 16px;
        padding: 16px 0;
    }
}

.software-challenges .quote {
    font-size: 3rem;
    /* Keep oversized quotation marks from increasing the surrounding line height. */
    line-height: 0;
    vertical-align: -0.9rem;
    font-family: sans-serif;
    color: #23a0b1;
}

.software-challenges,
.software-challenges p {
    font-family: "univia-pro", sans-serif;
}

.software-challenges .software-challenges-layout {
    margin-top: 0;
    /* The shared container's overflow-x: hidden also makes overflow-y auto,
       creating a scrollbar when the illustration's shadow extends below it. */
    overflow: visible;
}

.software-challenges > .grey-banner-hexpattern {
    inset: 0;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to right, #000 0%, rgb(0 0 0 / 20%) 18%, rgb(0 0 0 / 20%) 83%, #000 100%);
    mask-image: linear-gradient(to right, #000 0%, rgb(0 0 0 / 20%) 18%, rgb(0 0 0 / 20%) 83%, #000 100%);
}

.software-challenges > .grey-banner-hexpattern::before {
    content: none;
}

.software-challenges h2 {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
}

.software-challenges h2 span {
    font-size: inherit;
    font-weight: inherit;
}

.challenges-contact-button .btn-primary {
    background-image: linear-gradient(to right, #23a0b1 0%, #28316b 50%, #23a0b1 100%);
    background-size: 200% 100%;
    background-position: right center;
    transition: background-position 400ms ease;
    color: #fff;
}

.challenges-contact-button .btn-primary:is(:hover, :focus-visible) {
    background-color: transparent;
    background-position: left center;
    color: #fff;
}

@media (max-width: 767px) {
    .software-challenges h2 {
        font-size: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .challenges-contact-button .btn-primary {
        transition: none;
    }
}
