/* ==================================================
   NEWS.CSS — NYHEDER OG ARRANGEMENTER
   ================================================== */

.news-page {
    min-height: 100vh;
}

.news-page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.24;
    background-image:
            radial-gradient(
                    rgba(18, 63, 53, 0.16) 1px,
                    transparent 1px
            );
    background-size: 24px 24px;
}

.news-main {
    width: min(1240px, calc(100% - 36px));
    margin: 0 auto;
    padding: 46px 0 80px;
}


/* ==================================================
   HERO
   ================================================== */

.news-hero {
    position: relative;
    min-height: 530px;
    overflow: hidden;
    padding: clamp(42px, 6vw, 72px);
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
    gap: 58px;
    border-radius: 42px;
    background:
            radial-gradient(
                    circle at 88% 11%,
                    rgba(255, 214, 79, 0.2),
                    transparent 28%
            ),
            linear-gradient(
                    135deg,
                    var(--candy-forest-dark),
                    var(--candy-forest)
            );
    box-shadow: 0 30px 80px rgba(8, 43, 37, 0.22);
}

.news-hero::before {
    content: "";
    position: absolute;
    right: -170px;
    bottom: -205px;
    width: 430px;
    height: 430px;
    border: 78px solid rgba(255, 255, 255, 0.045);
    border-radius: 50%;
}

.news-hero-copy {
    position: relative;
    z-index: 3;
}

.news-kicker {
    width: fit-content;
    margin-bottom: 18px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--candy-yellow);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.news-hero h1 {
    max-width: 720px;
    margin: 0 0 23px;
    color: white;
    font-size: clamp(52px, 7vw, 84px);
    line-height: 0.96;
    letter-spacing: -4.5px;
}

.news-hero h1 span {
    position: relative;
    display: inline-block;
    color: var(--candy-yellow);
}

.news-hero h1 span::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -6px;
    left: 0;
    height: 8px;
    border-radius: 999px;
    background: var(--candy-pink);
    transform: rotate(-2deg);
}

.news-hero-description {
    max-width: 620px;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 16px;
    line-height: 1.75;
}

.news-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
}

.news-hero-highlights {
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.news-hero-highlights div {
    padding-left: 13px;
    border-left: 2px solid rgba(120, 223, 192, 0.65);
}

.news-hero-highlights strong,
.news-hero-highlights span {
    display: block;
}

.news-hero-highlights strong {
    margin-bottom: 4px;
    color: white;
    font-size: 12px;
}

.news-hero-highlights span {
    color: rgba(255, 255, 255, 0.53);
    font-size: 10px;
    line-height: 1.4;
}


/* ==================================================
   HERO-ILLUSTRATION
   ================================================== */

.news-hero-visual {
    position: relative;
    min-height: 385px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.news-board {
    position: relative;
    z-index: 3;
    width: 285px;
    min-height: 325px;
    padding: 37px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 7px solid rgba(255, 255, 255, 0.88);
    border-radius: 38px;
    background:
            linear-gradient(
                    145deg,
                    #fffdf7,
                    #ffe8ef
            );
    color: var(--candy-forest);
    text-align: center;
    box-shadow: 0 32px 68px rgba(0, 0, 0, 0.28);
    transform: rotate(3deg);
}

.news-board-label {
    width: fit-content;
    margin: 0 auto 18px;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--candy-forest);
    color: white;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.news-board > strong {
    color: var(--candy-pink);
    font-size: 62px;
    line-height: 0.95;
    letter-spacing: -4px;
}

.news-board > p {
    max-width: 190px;
    margin: 16px auto 0;
    color: var(--candy-muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.5;
}

.news-board-lines {
    margin-top: 25px;
    display: grid;
    gap: 8px;
}

.news-board-lines span {
    height: 6px;
    border-radius: 999px;
    background: #e9e1d4;
}

.news-board-lines span:nth-child(2) {
    width: 78%;
}

.news-board-lines span:nth-child(3) {
    width: 54%;
}

.news-visual-ring {
    position: absolute;
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 50%;
}

.news-visual-ring-large {
    width: 390px;
    height: 390px;
}

.news-visual-ring-small {
    width: 305px;
    height: 305px;
    transform: rotate(35deg);
}

.news-shape {
    position: absolute;
    z-index: 4;
    border: 5px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 11px 24px rgba(8, 43, 37, 0.23);
    animation: news-float 4s ease-in-out infinite;
}

.news-shape-pink {
    top: 15px;
    left: 8%;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: var(--candy-pink);
}

.news-shape-yellow {
    top: 40px;
    right: 1%;
    width: 68px;
    height: 42px;
    border-radius: 999px;
    background: var(--candy-yellow);
    transform: rotate(24deg);
    animation-delay: -1.1s;
}

.news-shape-purple {
    right: 7%;
    bottom: 14px;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--candy-purple);
    transform: rotate(17deg);
    animation-delay: -2.2s;
}

.news-shape-mint {
    bottom: 9px;
    left: 3%;
    width: 72px;
    height: 42px;
    border-radius: 50%;
    background: var(--candy-mint);
    transform: rotate(-18deg);
    animation-delay: -2.8s;
}

@keyframes news-float {
    0%,
    100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -13px;
    }
}


/* ==================================================
   NYHEDSOVERSIGT
   ================================================== */

.news-overview {
    margin-top: 35px;
    padding: clamp(30px, 5vw, 55px);
    border: 1px solid var(--candy-border);
    border-radius: 38px;
    background: rgba(255, 253, 247, 0.93);
    box-shadow: var(--candy-shadow);
    backdrop-filter: blur(14px);
}

.news-section-heading {
    margin-bottom: 29px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 28px;
}

.news-section-heading h2 {
    max-width: 760px;
    margin: 0 0 10px;
    color: var(--candy-forest);
    font-size: clamp(38px, 5vw, 57px);
    line-height: 1;
    letter-spacing: -3px;
}

.news-section-heading > div:first-child > p:not(.section-kicker) {
    color: var(--candy-muted);
    font-size: 14px;
}

.news-admin-shortcut {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.news-admin-shortcut a {
    padding: 11px 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--candy-border);
    border-radius: 999px;
    background: white;
    color: var(--candy-forest);
    font-size: 11px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(18, 63, 53, 0.07);
}

.news-admin-shortcut a:hover {
    border-color: var(--candy-pink);
    color: var(--candy-pink-dark);
    transform: translateY(-2px);
}


/* ==================================================
   SØGNING
   ================================================== */

.news-search-panel {
    margin-bottom: 30px;
    padding: 11px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--candy-border);
    border-radius: 22px;
    background: #f4eee3;
}

.news-search-field {
    position: relative;
}

.news-search-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    z-index: 2;
    width: 21px;
    height: 21px;
    color: var(--candy-muted);
    transform: translateY(-50%);
    pointer-events: none;
}

.news-search-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.news-page #search {
    min-height: 52px;
    margin: 0;
    padding: 13px 48px;
    border: 1px solid rgba(18, 63, 53, 0.12);
    border-radius: 15px;
    background: white;
    color: var(--candy-text);
    box-shadow: none;
}

.news-page #search:focus {
    border-color: var(--candy-pink);
    box-shadow: var(--focus-ring);
}

.news-search-clear {
    position: absolute;
    top: 50%;
    right: 11px;
    width: 31px;
    height: 31px;
    min-height: 0;
    padding: 0;
    border: none;
    border-radius: 9px;
    background: #f2ece2;
    color: var(--candy-muted);
    font-size: 20px;
    line-height: 1;
    box-shadow: none;
    transform: translateY(-50%);
}

.news-search-clear:hover {
    background: #ffe4ec;
    color: var(--candy-pink-dark);
    transform: translateY(-50%);
}

.news-search-status {
    min-width: 170px;
    padding: 0 11px;
    display: flex;
    align-items: center;
    gap: 9px;
}

.news-status-dot {
    width: 9px;
    height: 9px;
    flex: 0 0 auto;
    border: 2px solid var(--candy-forest);
    border-radius: 50%;
    background: var(--candy-mint);
}

.news-search-status p {
    color: var(--candy-muted);
    font-size: 10px;
    font-weight: 900;
}


/* ==================================================
   KORT
   ================================================== */

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.news-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--candy-border);
    border-radius: 27px;
    background: white;
    box-shadow: 0 14px 35px rgba(18, 63, 53, 0.085);
    transition:
            transform 190ms ease,
            box-shadow 190ms ease,
            border-color 190ms ease;
}

.news-card:hover {
    border-color: rgba(255, 91, 141, 0.27);
    transform: translateY(-6px);
    box-shadow: 0 25px 52px rgba(18, 63, 53, 0.14);
}

.news-card-featured {
    grid-column: 1 / -1;
    min-height: 390px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.8fr);
}

.news-card-media {
    position: relative;
    min-height: 235px;
    overflow: hidden;
    background:
            radial-gradient(
                    circle at 25% 35%,
                    var(--candy-yellow) 0 10%,
                    transparent 11%
            ),
            radial-gradient(
                    circle at 67% 62%,
                    var(--candy-pink) 0 15%,
                    transparent 16%
            ),
            radial-gradient(
                    circle at 80% 25%,
                    var(--candy-purple) 0 9%,
                    transparent 10%
            ),
            radial-gradient(
                    circle at 32% 77%,
                    var(--candy-mint) 0 13%,
                    transparent 14%
            ),
            #f4eee3;
}

.news-card-media img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    display: block;
    object-fit: cover;
    transition: transform 320ms ease;
}

.news-card:hover .news-card-media img {
    transform: scale(1.035);
}

.news-card-placeholder {
    min-height: inherit;
    display: flex;
    justify-content: center;
    align-items: center;
}

.news-placeholder-board {
    width: 145px;
    height: 145px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 5px solid rgba(255, 255, 255, 0.8);
    border-radius: 38px;
    background: linear-gradient(
            145deg,
            var(--candy-pink),
            var(--candy-purple)
    );
    color: white;
    font-size: 54px;
    font-weight: 900;
    box-shadow: 0 18px 38px rgba(18, 63, 53, 0.16);
    transform: rotate(-4deg);
}

.news-card-content {
    flex: 1;
    padding: 26px;
    display: flex;
    flex-direction: column;
}

.news-card-featured .news-card-content {
    padding: clamp(32px, 5vw, 50px);
    justify-content: center;
}

.news-card-meta {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.news-card-type,
.news-date {
    width: fit-content;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 900;
}

.news-card-type {
    background: #ffe5ed;
    color: var(--candy-pink-dark);
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.news-date {
    background: #f1ece3;
    color: var(--candy-muted);
}

.news-card h3 {
    margin: 0 0 12px;
    color: var(--candy-forest);
    font-size: clamp(22px, 3vw, 31px);
    line-height: 1.12;
    letter-spacing: -0.8px;
}

.news-card-featured h3 {
    font-size: clamp(32px, 5vw, 50px);
    letter-spacing: -2px;
}

.news-card-text {
    overflow-wrap: anywhere;
    color: var(--candy-muted);
    font-size: 12px;
    line-height: 1.72;
    white-space: pre-line;
}

.news-card-featured .news-card-text {
    font-size: 13px;
}

.news-card-accent {
    width: 53px;
    height: 6px;
    margin-top: auto;
    padding-top: 22px;
    border-bottom: 6px solid var(--candy-yellow);
    border-radius: 999px;
}


/* ==================================================
   STATES
   ================================================== */

.news-loading-state,
.news-empty-state,
.news-error-state {
    grid-column: 1 / -1;
    min-height: 260px;
    padding: 45px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px dashed var(--candy-border);
    border-radius: 24px;
    background: #faf6ee;
    color: var(--candy-muted);
    text-align: center;
}

.news-loading-state strong,
.news-empty-state strong,
.news-error-state strong {
    margin-bottom: 5px;
    color: var(--candy-forest);
    font-size: 17px;
}

.news-loading-state p,
.news-empty-state p,
.news-error-state p {
    max-width: 410px;
    color: var(--candy-muted);
    font-size: 11px;
    line-height: 1.55;
}

.news-loading-spinner {
    width: 43px;
    height: 43px;
    margin-bottom: 16px;
    border: 5px solid rgba(18, 63, 53, 0.11);
    border-top-color: var(--candy-pink);
    border-radius: 50%;
    animation: news-spin 730ms linear infinite;
}

.news-state-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 19px;
    background: linear-gradient(145deg, #ffe5ed, #ece8ff);
    color: var(--candy-pink-dark);
    font-size: 25px;
    font-weight: 900;
}

.news-state-button {
    margin-top: 16px;
    padding: 10px 15px;
    border-radius: 12px;
    background: var(--candy-forest);
    color: white;
    font-size: 10px;
    font-weight: 900;
    box-shadow: none;
}

.news-state-button:hover {
    background: var(--candy-pink);
}

@keyframes news-spin {
    to {
        transform: rotate(360deg);
    }
}


/* ==================================================
   BUND-CTA
   ================================================== */

.news-bottom-cta {
    margin-top: 35px;
    padding: clamp(30px, 5vw, 51px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 35px;
    border-radius: 35px;
    background:
            linear-gradient(
                    110deg,
                    #ffe4ed,
                    #ece8ff
            );
    box-shadow: var(--candy-shadow);
}

.news-bottom-cta h2 {
    margin: 0 0 10px;
    color: var(--candy-forest);
    font-size: clamp(34px, 5vw, 51px);
    line-height: 1;
    letter-spacing: -2.5px;
}

.news-bottom-cta > div:first-child > p:not(.section-kicker) {
    max-width: 660px;
    color: var(--candy-muted);
    font-size: 13px;
}

.news-bottom-actions {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
}


/* ==================================================
   RESPONSIVE
   ================================================== */

@media (max-width: 1000px) {
    .news-hero {
        grid-template-columns: 1fr;
    }

    .news-hero-copy {
        text-align: center;
    }

    .news-kicker {
        margin-inline: auto;
    }

    .news-hero-description {
        margin-inline: auto;
    }

    .news-hero-actions {
        justify-content: center;
    }

    .news-hero-highlights {
        max-width: 700px;
        margin-inline: auto;
        margin-top: 32px;
        text-align: left;
    }

    .news-hero-visual {
        min-height: 390px;
    }

    .news-card-featured {
        grid-template-columns: 1fr;
    }

    .news-card-featured .news-card-media {
        min-height: 310px;
    }
}

@media (max-width: 760px) {
    .news-main {
        width: min(100% - 22px, 1240px);
        padding-top: 20px;
    }

    .news-hero {
        min-height: auto;
        padding: 44px 21px;
        border-radius: 28px;
    }

    .news-hero h1 {
        font-size: clamp(47px, 15vw, 67px);
        letter-spacing: -3px;
    }

    .news-hero-description {
        font-size: 14px;
    }

    .news-hero-actions {
        flex-direction: column;
    }

    .news-hero-highlights {
        grid-template-columns: 1fr;
    }

    .news-hero-visual {
        min-height: 335px;
    }

    .news-board {
        width: 225px;
        min-height: 270px;
        padding: 29px 21px;
    }

    .news-board > strong {
        font-size: 50px;
    }

    .news-visual-ring-large {
        width: 305px;
        height: 305px;
    }

    .news-visual-ring-small {
        width: 245px;
        height: 245px;
    }

    .news-overview {
        padding: 28px 16px;
        border-radius: 28px;
    }

    .news-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .news-section-heading h2 {
        font-size: 40px;
        letter-spacing: -2px;
    }

    .news-admin-shortcut {
        width: 100%;
    }

    .news-admin-shortcut a {
        width: 100%;
        justify-content: center;
    }

    .news-search-panel {
        grid-template-columns: 1fr;
    }

    .news-search-status {
        min-width: 0;
        padding: 2px 7px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-card-featured {
        grid-column: auto;
    }

    .news-card-featured .news-card-media {
        min-height: 225px;
    }

    .news-card-featured .news-card-content {
        padding: 26px;
    }

    .news-card-featured h3 {
        font-size: 31px;
        letter-spacing: -1.2px;
    }

    .news-bottom-cta {
        padding: 30px 22px;
        align-items: stretch;
        flex-direction: column;
        border-radius: 28px;
    }

    .news-bottom-cta h2 {
        font-size: 39px;
    }

    .news-bottom-actions {
        flex-direction: column;
    }
}