.quicklinks-wrapper {
    background: #eeece7;
}

.quicklinks-image img {
    width: 100%;
}

.quicklinks-container {
    display: flex;
    flex-wrap: wrap;
    margin-left: auto;
    /* Fixed margin on the left */
    margin-right: auto;
    /* Fixed margin on the right */
    padding-left: 10px;
    /* Replace with the fixed margin you want */
    padding-right: 10px;
    /* Replace with the fixed margin you want */
    max-width: 1365px;
    /* Adjust max width as needed */
    background: #eeece7;
    margin-top: clamp(-300px, -17vw, -30px);
    z-index: 2;
    min-width: 335px;
}

.quicklink {
    background: #ffffff;
    flex-grow: 1;
    /* Allows quicklink to grow and fill available space */
    border-radius: 0px;
    padding: 2rem 4rem 2rem 4rem;
    box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.1);
    flex-basis: calc(33.333% - 4rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: background-color 0.3s;
    /* Added for smooth color transition */
    z-index: 2;
    min-width: 335px;
}

#quicklink-intro {
    background: #c0002a;
    transition: background-color 0.3s;
    /* Glat overgang for baggrundsfarveændring */
}

#quicklink-intro .link {
    color: #ffffff;
    font-weight: 400;
    text-decoration: none;
    font-size: 18px;
}

.quicklink:hover {
    background: #c0002a;
    /* This will turn the background red on hover */

}

.quicklink:hover span {
    color: #ffffff;
}


.quicklink .icon {
    /* Placeholder for actual SVG icon */
    width: 65px;
    height: 10px;
    margin-bottom: 0.3rem;
    background: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}


.quicklink h2 {
    font-size: 1.54286rem;
    text-align: left;
    margin-bottom: 1rem;
    width: 100%;
    font-weight: 600;
    margin: 0 0 0 0px;
    color: #212125;
}

.quicklink:hover h2 {
    color: #ffffff;
    /* Sets the heading text color to white on hover */
}

.quicklink:hover h1 {
    color: #ffffff;
    /* Sets the heading text color to white on hover */
}

.quicklink:hover p {
    color: #ffffff;
    /* Sets the heading text color to white on hover */
}

.quicklink:hover .arrow-icon g {
    stroke: #ffffff;
    /* Changes the SVG stroke to white on hover */
}

.quicklink ul {
    list-style: none;
    padding: 0;
    width: 100%;
    margin-bottom: 5px;
    margin-top: 1rem;
}

.link {
    color: #2b2b2a;
    font-weight: 400;
    text-decoration: none;
    font-size: 18px;
}

.link:hover {
    font-weight: 400;
    text-decoration: none;
    font-size: 1.25rem;
    text-decoration: none;
}

.link--arrowed {
    display: inline-block;

    line-height: 1.3rem;
    display: flex;
    align-items: flex-start;

}

.arrow-icon {
    flex-shrink: 0;
    /* Forhindrer ikonet i at blive skaleret ned */
    margin-right: 6px;
    /* Tilføj mellemrum mellem ikonet og teksten */
}

.link--arrowed:hover .arrow-icon {
    margin-right: 12px;
    /* Øger afstanden, når musen er over linket */
    text-decoration: none;


}


.link--arrowed .arrow-icon {
    position: relative;
    top: -7px;
    -webkit-transition: -webkit-transform 0.3s ease;
    transition: -webkit-transform 0.3s ease;
    transition: transform 0.3s ease;
    transition: transform 0.3s ease, -webkit-transform 0.3s ease;
    vertical-align: middle;
}

.link--arrowed .arrow-icon--circle {
    transition: stroke-dashoffset .3s ease;
    stroke-dasharray: 95;
    stroke-dashoffset: 95;
}

.link--arrowed:hover .arrow-icon {
    transform: translate3d(5px, 0, 0);
}

.link--arrowed:hover .arrow-icon--circle {
    stroke-dashoffset: 0;
}

.quicklinks-image {
    position: relative;
    width: 100vw;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    /* Sikrer at billedet ikke overskrider containerens størrelse */
    max-height: 670px;

}

@media (min-width: 1600px) {

    .quicklinks-image {

        max-height: 800px;

    }

}

.quicklinks-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Sikrer at billedet dækker, men beskæres om nødvendigt for at passe ind */
    object-position: center;
    /* Centrerer billedet */
}





.quicklinks-image__content__title {
    width: 100%;


}

.quicklinks-image__content__title h1 {
    font-size: clamp(2.1rem, 1.7907rem + 1.3196vw, 2.9rem);
    line-height: clamp(2.3rem, 1.7907rem + 1.3196vw, 3.1rem);
    font-weight: 800;
    color: #EFEFE9;
}

.quicklinks-image__content__text {
    width: 100%;


}

.quicklinks-image__content__text p {

    font-size: clamp(1.27rem, 1.1927rem + 0.3299vw, 1.47rem);
    line-height: 1.5;
    color: #EFEFE9;


}




#quicklink-intro h1,
#quicklink-intro p,
#quicklink-intro span {
    transition: color 0.3s;
    /* Glat overgang for tekstfarveændring */
}


@media (max-width: 768px) {

    .quicklink:hover {
        background: #ffffff;
        /* This will turn the background red on hover */

    }

    .quicklink:hover span {
        color: #212125;
    }

    .quicklink:hover h2 {
        color: #212125;
        /* Sets the heading text color to white on hover */
    }

    .quicklink:hover h1 {
        color: #212125;
        /* Sets the heading text color to white on hover */
    }

    .quicklink:hover p {
        color: #212125;
        /* Sets the heading text color to white on hover */
    }

    .quicklink:hover .arrow-icon g {
        stroke: #212125;
        /* Changes the SVG stroke to white on hover */
    }


    #quicklink-intro:hover {
        background: #c0002a;
        /* This will turn the background red on hover */

    }

    #quicklink-intro:hover span {
        color: #EFEFE9;
    }

    #quicklink-intro:hover h2 {
        color: #EFEFE9;
        /* Sets the heading text color to white on hover */
    }

    #quicklink-intro:hover h1 {
        color: #EFEFE9;
        /* Sets the heading text color to white on hover */
    }

    #quicklink-intro:hover p {
        color: #EFEFE9;
        /* Sets the heading text color to white on hover */
    }

    #quicklink-intro:hover .arrow-icon g {
        stroke: #EFEFE9;
        /* Changes the SVG stroke to white on hover */
    }



    .quicklink {

        cursor: pointer;
        overflow: hidden;
        transition: all 0.3s ease;
        /* Glat overgang */
        flex-basis: calc(100% - 2rem);
        padding: 1rem 2rem 1rem 2rem;
    }

    .quicklink h2 {
        font-size: 1.24286rem;
        text-align: left;
        margin-bottom: 1rem;
        width: 100%;
        font-weight: 400;
        margin: 0 0 0 0px;
        position: relative;
        padding-right: 20px;
        /* Giver plads til pil-ikonet */
    }

    .quicklink h2::after {
        content: '\f078';
        position: absolute;
        right: 0;
        top: 0;
        font-weight: 200;
        font-size: 1.24286rem;
        transition: transform 0.3s ease;
        font-family: 'FontAwesome';

    }

    .quicklink.active h2::after {
        transform: rotate(180deg);
        /* Drejer pilen, når sektionen er aktiv */
    }

    .quicklink:not(.active) ul {
        display: none;
        /* Skjul ul elementer når quicklink ikke er aktiv */
        max-height: 0;
        /* Hjælper med at sikre at indholdet er skjult */
    }

    .quicklink.active ul {
        display: block;
        /* Vis ul elementer når quicklink er aktiv */
        max-height: 500px;
        /* Antag en maksimal højde */
        transition: max-height 0.3s ease-out;
        /* Glat ekspansion */
    }

    .link,
    #quicklink-intro .link {
        font-size: 16px;
    }
}

/* Job List */
.job-section {
    max-width: 1345px;
    margin: 0 auto;
    padding: 3rem;
    padding-top: 100px;
    padding-bottom: 170px;
}
.page__resume {
    max-width: 800px;
    padding-bottom: 20px;
}
.job-intro {
    border-bottom: .1875rem solid #000;
}
.job-intro:after {
    clear: both;
}

.job-intro:after, .page-header:before {
    content: "";
    display: table;
}
.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    padding-top: 15px;
}
.card {
    background-color: #ffffff00;
     padding: 1.75rem 1.75rem 1.75rem 0;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
  
}
.card:hover {
    background-color: #f8f8f800;
    transform: translateY(-2px);
}
.card-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 0.75rem;
}
.card-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    color: #000;
    padding-right: 6px;
}
.card-header .arrow-icon {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: #000;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.card-description {
    font-size: 1.19rem;
    margin: 0;
    color: #333;
    flex-grow: 1;
}
@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
    .job-section {
        padding: 2rem;
    }
    h1 {
        font-size: 2.25rem;
    }
}