.needz-quick-links {
    --needz-quick-links-gap: 10px;
    --needz-quick-links-card-height: 168px;

    width: 100%;
    margin: var(--needz-quick-links-gap) 0 0;
}

.needz-quick-links,
.needz-quick-links * {
    box-sizing: border-box;
}

.needz-quick-links__inner {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 12px;
    padding-left: 12px;
}

.needz-quick-links--full {
    width: 100vw;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
}

.needz-quick-links--full .needz-quick-links__inner {
    max-width: none;
    padding-right: 0;
    padding-left: 0;
}

.needz-quick-links__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--needz-quick-links-gap);
    width: 100%;
}

.needz-quick-links__card {
    position: relative;
    display: block;
    min-width: 0;
    height: var(--needz-quick-links-card-height);
    overflow: hidden;
    isolation: isolate;
    color: #ffffff;
    text-decoration: none;
    background: #050505;
}

.needz-quick-links__card:hover,
.needz-quick-links__card:focus {
    color: #ffffff;
    text-decoration: none;
}

.needz-quick-links__card:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

.needz-quick-links__image {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transform-origin: center center;
    transition: transform 420ms ease;
}

.needz-quick-links__overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    display: block;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.7) 42%, rgba(0, 0, 0, 0.2) 76%, rgba(0, 0, 0, 0.06) 100%);
}

.needz-quick-links__content {
    position: absolute;
    top: 24px;
    left: 26px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: min(56%, 232px);
    max-width: calc(100% - 52px);
}

.needz-quick-links__title,
.needz-quick-links__subtitle {
    display: -webkit-box;
    max-width: 100%;
    overflow: hidden;
    -webkit-box-orient: vertical;
}

.needz-quick-links__title {
    -webkit-line-clamp: 2;
    overflow-wrap: anywhere;
    color: #ffffff;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.08;
}

.needz-quick-links__subtitle {
    -webkit-line-clamp: 3;
    margin-top: 10px;
    overflow-wrap: anywhere;
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.24;
}

.needz-quick-links__arrow {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-top: 16px;
    color: #ffffff;
    font-size: 19px;
    font-weight: 600;
    line-height: 1;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    background-color: rgba(0, 0, 0, 0.14);
    transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.needz-quick-links__card:hover .needz-quick-links__image,
.needz-quick-links__card:focus-visible .needz-quick-links__image {
    transform: scale(1.055);
}

.needz-quick-links__card:hover .needz-quick-links__arrow,
.needz-quick-links__card:focus-visible .needz-quick-links__arrow {
    transform: translateX(4px);
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.14);
}

@media (min-width: 576px) {
    .needz-quick-links--container .needz-quick-links__inner {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .needz-quick-links--container .needz-quick-links__inner {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .needz-quick-links--container .needz-quick-links__inner {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .needz-quick-links--container .needz-quick-links__inner {
        max-width: 1320px;
    }
}

@media (min-width: 1400px) {
    .needz-quick-links--container .needz-quick-links__inner {
        max-width: 1760px;
    }
}

@media (max-width: 991.98px) {
    .needz-quick-links__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .needz-quick-links__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
