ul.carousel img {
    width: 70px;
    position: absolute;
    top: -40px; /* NB behaves differently for admin users due to contextual links */
    left: calc(50% - 35px);
}

section.blue .govuk-heading-l {
    color: white;
    text-align: center;
}

section.blue .govuk-\!-margin-top-6.govuk-button-group {
    display: flex
;
    justify-content: center;
}

section.blue {
    margin-bottom: 2rem;
}

.benefits-carousel {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 2rem 50px;
    background:white;
}

.carousel-wrapper {
    width: 100%;
    overflow: hidden;
}

.carousel {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    \ transition: transform 0.3s ease-in-out;
}

.blue {
    background-color: #003078;
}

.carousel li {
    flex: 0 0 100%;
    padding: 20px 15px;
    box-sizing: border-box;
    text-align: center;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 40px 10px 10px;
    font-size: 1.25rem;
    line-height: 1.5;
    font-weight: 500;
    font-family: Arial,sans-serif;
    position: relative;
}

.carousel li svg {
    width: 48px;
    height: 48px;
    stroke: currentColor;
    background: white;
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
}

.carousel li p {
    margin: 0;
}

@media (min-width: 768px) {
    .carousel li {
        flex:0 0 50%;
    }
}

@media (min-width: 1024px) {
    .carousel li {
        flex:0 0 33.333%;
    }
}

.prev,.next {
    background: #fff;
    border: 1px solid #ddd;
    cursor: pointer;
    padding: 15px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    z-index: 2;
}

.prev:hover,.next:hover {
    background: #f5f5f5;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.prev svg,.next svg {
    width: 20px;
    height: 20px;
    stroke: #333;
    display: block;
}
