.employee-grid {
    padding: 96px 0;
    background: #fff;
}

.employee-grid__inner {
    max-width: 1240px;
}

.employee-grid__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 38px;
}

.employee-card {
    border-radius: 15px;
    display: flex;
    overflow: hidden;
    min-height: 220px;
}

/* Desktop (2 cols):
   row 1 = lys, mørk
   row 2 = mørk, lys
   row 3 = lys, mørk
   ... → posisjon 1,4 = lys og 2,3 = mørk i hver 4-card-blokk */
.employee-card:nth-child(4n+1) .employee-card__info,
.employee-card:nth-child(4n) .employee-card__info {
    background: #006179;
}

.employee-card:nth-child(4n+2) .employee-card__info,
.employee-card:nth-child(4n+3) .employee-card__info {
    background: #02364B;
}

.employee-card__image {
    flex-shrink: 0;
    width: 265px;
    min-height: 280px;
}

.employee-card__image picture {
    display: block;
    width: 100%;
    height: 100%;
}

.employee-card__image img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    display: block;
}

.employee-card__info {
    flex: 1;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
}

.employee-card__name {
    font-family: 'Nunito Sans', sans-serif !important;
    font-weight: 700 !important;
    font-style: normal !important;
    font-size: 30px !important;
    line-height: 100% !important;
    letter-spacing: 0 !important;
    color: #FBFCFC !important;
    text-align: left !important;
    margin: 0 0 16px;
    leading-trim: cap;
    text-box-trim: trim-both;
    text-box-edge: cap alphabetic;
}

.employee-grid .employee-card .employee-card__title {
    font-family: 'Nunito Sans', sans-serif !important;
    font-weight: 400 !important;
    font-style: italic !important;
    font-size: 23.45px !important;
    line-height: 31.27px !important;
    letter-spacing: 0 !important;
    color: #FBFCFC !important;
    text-box-trim: none;
    margin: 0 0 20px;
}

.employee-card__contact {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: auto;
}

.employee-card__phone,
.employee-card__email {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 16px;
    line-height: 21.8px;
    color: #FBFCFC;
    text-decoration: none;
}

.employee-card__phone:hover,
.employee-card__email:hover {
    color: #ACEDD9;
}

.employee-card__icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
}

.employee-card__phone .employee-card__icon {
    width: 19px;
    height: 19px;
}

.employee-card__email .employee-card__icon {
    width: 17px;
    height: auto;
}

@media (max-width: 1200px) {
    /* Tablet and below: cards always stacked (image on top, info below) with
       a 298 / 189 image-to-info height ratio matching the design. */
    .employee-card {
        flex-direction: column;
    }

    .employee-card__image {
        width: 100%;
        height: 298px;
        min-height: 0;
    }

    .employee-card__image img {
        min-height: 0;
    }

    .employee-card__info {
        min-height: 189px;
    }
}

@media (max-width: 1200px) and (min-width: 769px) {
    .employee-card__name {
        font-family: 'Nunito', sans-serif !important;
        font-weight: 700 !important;
        font-style: normal !important;
        font-size: 26px !important;
        line-height: 35.5px !important;
        letter-spacing: 0 !important;
    }

    .employee-grid .employee-card .employee-card__title {
        font-family: 'Nunito Sans', sans-serif !important;
        font-weight: 400 !important;
        font-style: italic !important;
        font-size: 18px !important;
        line-height: 24.6px !important;
        letter-spacing: 0 !important;
    }

    .employee-card__phone,
    .employee-card__email {
        font-family: 'Nunito Sans', sans-serif;
        font-weight: 700;
        font-style: normal;
        font-size: 16px;
        line-height: 21.8px;
        letter-spacing: 0;
    }
}

@media (max-width: 768px) {
    .employee-grid__grid {
        grid-template-columns: 1fr;
    }

    .employee-grid {
        padding: 48px 0;
    }

    /* Mobile: every other card alternates (single column) */
    .employee-card:nth-child(odd) .employee-card__info {
        background: #006179;
    }

    .employee-card:nth-child(even) .employee-card__info {
        background: #02364B;
    }

    .employee-card__name {
        font-family: 'Nunito', sans-serif !important;
        font-weight: 700 !important;
        font-style: normal !important;
        font-size: 24px !important;
        line-height: 32.7px !important;
        letter-spacing: 0 !important;
        text-box-trim: trim-both;
        text-box-edge: cap alphabetic;
    }

    .employee-grid .employee-card .employee-card__title {
        font-family: 'Nunito Sans', sans-serif !important;
        font-weight: 400 !important;
        font-style: italic !important;
        font-size: 18px !important;
        line-height: 24.8px !important;
        letter-spacing: 0 !important;
        text-box-trim: none;
    }
}

