.dept-intro {
    max-width: 700px;
    margin-bottom: 25px;
    color: #555;
    line-height: 1.6;
    font-size: 15px;
}

.dept-intro strong {
    display: block;
    font-size: 16px;
    color: #222;
    margin-bottom: 5px;
}

.bf-ansatte-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
    margin: 24px 0 40px;
}

.bf-ansatt-card {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    height: 100%;
}

.bf-ansatt-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.11);
    border-color: #dcdcdc;
}

.bf-ansatt-image-wrap {
    aspect-ratio: 4 / 4;
    background: linear-gradient(180deg, #f7f7f7 0%, #efefef 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bf-ansatt-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bf-ansatt-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bf-ansatt-initials {
    width: 78px;
    height: 78px;
    border-radius: 999px;
    background: #1f3c88;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.bf-ansatt-content {
    padding: 24px 22px 20px;
    text-align: center;
}

.bf-ansatt-name {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.bf-ansatt-stilling {
    font-size: 18px;
    line-height: 1.35;
    font-weight: 700;
    color: #111111;
    margin-bottom: 8px;
}

.bf-ansatt-avdeling {
    font-size: 14px;
    line-height: 1.4;
    color: #7b7b7b;
    margin-bottom: 16px;
}

.bf-ansatt-contact {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #eeeeee;
}

.bf-ansatt-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 15px;
    line-height: 1.45;
    margin-top: 8px;
    overflow-wrap: anywhere;
}

.bf-ansatt-meta:first-child {
    margin-top: 0;
}

.bf-ansatt-meta a {
    text-decoration: none;
    color: inherit;
}

.bf-ansatt-meta a:hover {
    text-decoration: underline;
}

.bf-ansatt-icon {
    font-size: 15px;
    line-height: 1;
    flex: 0 0 auto;
}

.bf-ansatte-message {
    padding: 16px 18px;
    background: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 12px;
    margin: 20px 0;
}

@media (max-width: 1280px) {
    .bf-ansatte-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .bf-ansatte-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    .bf-ansatt-name {
        font-size: 24px;
    }
}

@media (max-width: 560px) {
    .bf-ansatte-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .bf-ansatt-content {
        padding: 20px 18px 18px;
    }

    .bf-ansatt-name {
        font-size: 22px;
    }

    .bf-ansatt-stilling {
        font-size: 17px;
    }
}
