.featured-posts .top-line {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    column-gap: 3.2rem;
    margin: 0 0 3.2rem;
}

.featured-posts .top-left-block {
    flex: 1 1 auto;
    max-width: 90.8rem;
    max-width: 62rem;
}

.featured-posts .top-left-block .manchet {
    max-width: 62rem;
}

.featured-posts .top-right-block {
    flex: 0 0 auto;
}

.featured-posts .top-right-block a {
    color: var(--Color-Brand-Blue-Core, #08006f);
    font-size: var(--Typeface-Size-Miscellaneous-Button-large, 18px);
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-decoration: underline;
}

.top-line__title {
    margin: 0;
}

.top-line__title + * {
    margin-top: 0.8rem;
}

.featured-posts .columns-3 {
    row-gap: 2.4rem;
}

.featured-posts .item {
    background-color: var(--Color-Brand-Light, #fff);
    position: relative;
}

.featured-posts .item:has(a:focus-visible) {
    outline: auto;
}

.featured-posts .media-top {
    position: relative;
    flex: 0 0 auto;
}

.card-badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    top: 2.4rem;
    position: absolute;
    right: 2.4rem;
    left: 2.4rem;
    justify-content: flex-end;
}

.card-badge-list .card-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 6rem;
    background: var(--Color-Brand-Light, #fff);
    z-index: 2;
    color: var(--Color-Brand-Blue-Core, #08006f);
    font-size: var(--Typeface-Size-Miscellaneous-Caption, 12px);
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.featured-posts .itemtext {
    padding: 2.4rem;
    display: flex;
    flex-direction: column;
    row-gap: 1.6rem;
    flex: 1 1 auto;
}

.featured-posts .itemtext .h4 {
    margin: 0;
    font-weight: 600;
}

.featured-posts .itemtext .h4 a {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
}

.featured-posts .itemtext .h4 a::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}

.featured-posts .itemtext p {
    font-family: var(--font-secondary);
    margin: 0 0 2.8rem;
}

.card-foot-row {
    display: flex;
    align-items: center;
    column-gap: 0.8rem;
    margin: auto 0 0;
}

.card-fading-text {
    font-family: var(--font-secondary);
    font-size: var(--Typeface-Size-Miscellaneous-Button-small, 14px);
    line-height: normal;
    font-weight: 500;
}

/* Hviletilstand — fuld cirkel */
.icon-circle {
    fill: none;
    stroke: currentColor; /* sæt farve via stroke: #08006F / #0A63FA / #ffffff */
    stroke-width: 4;
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
    transform-origin: center;
    transform: rotate(-90deg);
}

.featured-posts .icon-circle {
    stroke: var(--clr1);
}

.featured-posts .item img,
.featured-posts .item video {
    transform: scale(1);
    transform-origin: center;
    transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    backface-visibility: hidden;
}

.top-right-block--twin {
    display: flex;
    column-gap: 1rem;
    align-items: flex-end;
    justify-content: flex-end;
}

.featured-posts .top-right-block--twin {
    flex: 1 1 auto;
    max-width: 50%;
}

.top-right-block--twin .slider-navigation {
    flex: 0 0 auto;
}

.featured-posts .swiper .item .media,
.featured-posts .swiper .item .media figure {
    height: 77.5rem;
}

.featured-posts .swiper .itemtext {
    position: absolute;
    bottom: 5.6rem;
    left: 4rem;
    padding: 2.4rem;
    width: 35.3rem;
    border-radius: 2.4rem;
    background: rgba(255, 255, 255, 0);
    /* box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25); */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 2;
    color: var(--Color-Brand-Light, #fff);
}

.featured-posts .swiper .itemtext p {
    margin: 0;
}

.featured-posts .swiper .icon-circle {
    stroke: var(--Color-Brand-Light, #fff);
}

.featured-posts .swiper .media {
    margin: 0;
}

.featured-posts .swiper .itemtext .h4 a::after {
    inset: -99999px;
}

@media (hover: hover) {
    .featured-posts .top-right-block a:hover {
        text-decoration: none;
    }

    .card-fading-text {
        opacity: 0;
        transform: translateX(-0.8rem);
    }

    /* Hover — trigger animation på forælderen */
    .featured-posts .item:hover .icon-circle {
        animation:
            draw-circle 0.5s cubic-bezier(0.76, 0, 0.24, 1) forwards,
            open-gaps 0.2s 0.5s ease-out forwards;
    }

    .featured-posts .item:hover .card-fading-text {
        animation: fade-slide-in 0.3s 0.5s ease-out forwards;
    }

    .featured-posts .item:hover img,
    .featured-posts .item:hover video {
        transform: scale(1.04);
    }
}

@keyframes fade-slide-in {
    from {
        opacity: 0;
        transform: translateX(-0.8rem);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Fase 1: tegner cirklen op fra 12 o'clock */
@keyframes draw-circle {
    0% {
        stroke-dasharray: 1;
        stroke-dashoffset: 1;
    }
    100% {
        stroke-dasharray: 1;
        stroke-dashoffset: 0;
    }
}

/* Fase 2: åbner gab svarende til DI bomærket */
@keyframes open-gaps {
    0% {
        stroke-dasharray: 0.16 0 0.84 0;
        stroke-dashoffset: 0.08;
    }
    100% {
        stroke-dasharray: 0.16 0.038 0.764 0.038;
        stroke-dashoffset: 0.08;
    }
}

/* ************* old */
.featured-posts .container.reverse .right-side {
    padding-left: 0;
    padding-right: 2rem;
}
.featured-posts .left-side {
    width: 66%;
    padding-right: 0rem;
}

.featured-posts .right-side {
    width: 34%;
    display: flex;
    flex-direction: column;
    row-gap: 2rem;
    padding-left: 2rem;
}

.search-results .media-container {
    margin-bottom: 1.5rem;
}

.featured-posts .post {
    cursor: pointer;
}

.featured-posts .post h3,
.search-results .itemtext h3 {
    margin-top: 0.2rem;
}

.featured-posts .post h3 a {
    text-decoration: none;
}

.featured-posts .post h3 span,
.search-results .itemtext h3 span:not(.highlighted) {
    font-weight: 700;
}

.categories-line .category {
    background: transparent;
    padding: 0 !important;
    color: var(--textclr4);
    text-align: left;
    margin-bottom: -0.5rem;
    text-transform: uppercase;
    font-size: 1.1rem;
}

.featured-posts .left-side .post h3 {
    font-size: 3.5rem;
    line-height: normal;
}

.featured-posts .container.top .right-side {
    width: 100%;
    padding-left: 0;
    order: 1;
    padding-right: 0;
    display: grid;
    column-gap: 2rem;
    grid-template-columns: 1fr 1fr;
}

.featured-posts .container.top .left-side {
    order: 2;
    width: 100%;
}

.featured-posts .container .right-side + .posts-slider {
    margin-top: 4rem;
}
.featured-posts .container .posts-slider {
    width: 100%;
    overflow: hidden;
}
body.archive .featured-posts .container .posts-slider {
    overflow: unset;
}

.featured-posts .container .posts-slider .swiper-slide .media {
    height: 22.1rem;
    width: 100%;
    position: relative;
}

.featured-posts .container .posts-slider .swiper-slide .media figure {
    height: 100%;
    width: 100%;
    position: relative;
}

.featured-posts .container .posts-slider .swiper-slide .media figure img,
.featured-posts .container .posts-slider .swiper-slide .media figure video {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    object-fit: cover;
    object-position: center;
}

.featured-posts .container.top {
    flex-direction: column;
    row-gap: 4rem;
}

.featured-posts .container.top .left-side .media {
    height: 44rem;
    width: 100%;
    position: relative;
}

.featured-posts .container.top .left-side .media figure {
    position: relative;
    width: 100%;
    height: 100%;
}

.featured-posts .container.top .left-side .media figure img,
.featured-posts .container.top .left-side .media figure video {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    object-fit: cover;
    object-position: center;
}

.featured-posts .container.top.reverse {
    flex-direction: column-reverse;
}

.swiper-pagination {
    position: relative !important;
    bottom: unset !important;
    width: auto !important;
}

.swiper-pagination-bullet-active {
    background: var(--clr1) !important;
}

h2.module-title {
    margin-top: 0;
    font-weight: bold;
}

.posts-list .container.grid .swiper-wrapper {
    display: grid;
    column-gap: 2rem;
    grid-template-columns: 1fr 1fr 1fr;
    row-gap: 4rem;
}

.posts-list .container.grid {
    flex-direction: column;
}

.categories-line {
    display: flex;
    flex-wrap: wrap;
    column-gap: 1.5rem;
}

.load-more-container.post {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 2rem;
}

@media screen and (max-width: 1000px) {
    .card-fading-text {
        display: none;
    }

    .featured-posts .top-line {
        margin: 0 0 2.4rem;
        flex-direction: column;
        row-gap: 0.8rem;
        align-items: flex-start;
        justify-content: flex-start;
    }

    .featured-posts .top-right-block--twin {
        flex-direction: column;
        row-gap: 1.6rem;
        align-items: flex-start;
        justify-content: flex-start;
        max-width: 100%;
    }

    .featured-posts--slider .top-line {
        margin: 0 0 1.6rem;
    }
}

@media screen and (max-width: 767px) {
    .featured-posts .itemtext p {
        margin: 0;
    }

    .card-foot-row svg {
        height: 1.6rem;
        width: 1.6rem;
    }

    .featured-posts .swiper .item .media,
    .featured-posts .swiper .item .media figure {
        height: 45.1rem;
    }

    .featured-posts .swiper .itemtext {
        width: calc(100% - 2rem);
        left: 1rem;
        bottom: 1rem;
        padding: 1.6rem;
    }
}
