/* Ufaglært Partnere - same look as the job board's employer box (.ujb-b2b) */

.upa {
    margin: 32px 0;
    font-family: inherit;
}

.upa__label {
    display: inline-block;
    margin-bottom: 8px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #383051;
    background: #fff;
    border: 1px solid #d8cdec;
    border-radius: 6px;
}

.upa a.upa__card,
.upa a.upa__card:link,
.upa a.upa__card:visited {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: linear-gradient(160deg, #f7f4fc 0%, #e9e2f4 100%);
    border: 1px solid #d8cdec;
    border-radius: 14px;
    color: #383051;
    text-decoration: none;
    transition: box-shadow 200ms ease, transform 200ms ease;
}

.upa a.upa__card + a.upa__card {
    margin-top: 12px;
}

.upa a.upa__card:hover {
    color: #383051;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -16px rgba(56, 48, 81, .5);
}

.upa a.upa__card:focus-visible {
    outline: 2px solid #383051;
    outline-offset: 2px;
}

.upa__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 132px;
    height: 52px;
    padding: 6px 10px;
    box-sizing: border-box;
    background: #fff;
    border-radius: 11px;
    box-shadow: 0 1px 2px rgba(56, 48, 81, .08);
}

.upa__logo img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 40px;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.upa__text {
    flex: 1;
    min-width: 0;
}

.upa__title {
    display: block;
    margin-bottom: 2px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}

.upa__sub {
    display: block;
    font-size: 14px;
    line-height: 1.5;
    color: #4b5563;
}

.upa__go {
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    color: #5b4b86;
    transition: color 200ms ease;
}

.upa a.upa__card:hover .upa__go {
    color: #ed7d5b;
}

.upa__sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 600px) {
    .upa a.upa__card,
    .upa a.upa__card:link,
    .upa a.upa__card:visited {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .upa__go {
        white-space: normal;
    }
}
