.carrusel-container {
    width: 100vw;
    max-width: var(--dl-size-size-maxcontent);
    overflow: hidden;
    padding: 2rem 0;
    background-color: var(--engbakken-trans);
}

.carrusel-container h1 {
    color: white;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
    margin-left: 2rem;
    margin-right: 2rem;
    font-size: 2rem;
    line-height: 1.3;
    white-space: normal;
    /* allow wrapping */
    word-break: break-word;
    /* break long words */
    text-align: left;
    /* or center if you prefer */
    max-width: 95%;
    /* keep it within screen bounds */
}

.carrusel-container h3 {
    margin-left: 2rem;
    margin-right: 2rem;
    white-space: normal;
    word-break: break-word;
    text-align: left;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
}

.carrusel-controller {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-right: 0;
    transform: translateX(-2.5rem);
    pointer-events: none;
    z-index: 2;
}

.carrusel-controller .arrow {
    color: black;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    text-align: center;
    line-height: 2.5rem;
    font-size: 2rem;
    cursor: pointer;
    pointer-events: all;
    user-select: none;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.carrusel-controller .arrow:hover {
    background: white;
    color: var(--logo-color);
    transform: scale(1.4);
}

.carrusel-controller .arrow.left:hover {
    transform: translateX(-0.3rem) scale(1.2);
}

.carrusel-controller .arrow.right:hover {
    transform: translateX(0.3rem) scale(1.2);
}




.carrusel-track {
    display: flex;
    gap: 1rem;
    scroll-behavior: smooth;
    overflow-x: auto;
    padding: 1rem;
    margin-left: 2rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;

    scrollbar-width: none;
    /* Firefox */
}

.carrusel-track::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari */
}

.carrusel-card {
    flex: 0 0 auto;
    width: 30rem;
    max-width: 800px;
    height: auto;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    scroll-snap-align: start;
}

.carrusel-card .icon{
    max-width: 6rem;
    width: 100%;
    display: block;
    justify-self: center;
}

.carrusel-card svg{
    max-width: 6rem;
    width: 100%;
    display: block;
    justify-self: center;
}


.layers {
    color: rgb(156, 103, 5);
}

.grass {
    color: darkgreen;
}

.water {
    color: rgb(35, 115, 207);
}

.sprout {
    color: limegreen;
}

/* --- IMAGE CAROUSEL CARDS --- */
.carrusel-card-image {
    flex: 0 0 auto;
    width: 28rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carrusel-card-image:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Headline text above image */
.carrusel-card-image h2 {
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 1rem;
    line-height: 1.3;
    font-weight: bold;
    color: var(--engbakken-color);
}

.carrusel-card-image h2 .subtext {
    color: black;
    font-weight: normal;
    font-size: 1rem;
}

/* Centered image with max height constraint */
.carrusel-card-image .image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    border-radius: 0.8rem;
    background: #f9f9f9;
}

.carrusel-card-image img {
    width: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .carrusel-card-image {
        width: 90%;
        padding: 0.8rem;
    }

    .carrusel-card-image h2 {
        font-size: 1rem;
    }

    .carrusel-card-image .image-wrapper {
        max-height: 150px;
    }

    .carrusel-card-image img {
        max-height: 150px;
    }
}


.carrusel-container h1 {
    font-size: 2rem;
    /* tilpas som ønsket */
}

.carrusel-container h1 img {
    display: inline;
    vertical-align: middle;
    /* centrer billedet ift. tekstlinjen */
    height: 3.5rem;
    margin-left: 1rem;
    /* lidt afstand fra teksten */
    margin-right: 0rem;
    /* lidt afstand fra teksten */
    margin-bottom: 0.6rem;
}

.center-track {
    justify-content: center;
}



.carrusel-card ul {
    padding: 1rem 1.2rem;
}

.carrusel-card h3 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1rem;
}


.defence-solutions-container .product-grid-button.rotate-down {
    justify-content: center;
    text-align: center;
    color: white;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.271);
    font-weight: 550;
    font-size: 1.5rem;
}