/**
* Theme Name: 433 Tema
* Description: Et uavhengig tema for fotballnyheter.
* Author: cr8
* Version: 1.2.8
*/

/* ==========================================================================
   Generell Styling og Nullstilling
   ========================================================================== */
body {
    background-color: #f4f4f4;
    overflow-x: hidden;
    overflow-x: clip;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

p {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    font-size: 1.175rem;
    margin-bottom: 1.4rem;
}

ul li {
    margin: 0;
    font-family: sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Skjuler tekst visuelt, men holder den tilgjengelig for skjermlesere */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* ==========================================================================
   Header, Meny og Navigasjon
   ========================================================================== */

/* Egendefinert Header-bjelke */
.header-433 {
    background-color: #0a0a0a;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 1001;
    min-height: 60px;
    display: flex;
    align-items: center;
    transition: padding 0.3s ease;
}

.header-433__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.header-433__logo img {
    height: 35px;
    width: auto;
    display: block;
}

/* NYTT: Container for navigasjonselementer (knapper) */
.header-433__navigation {
    display: flex;
    align-items: center;
    gap: 20px; /* Mellomrom mellom "Logg inn" og meny-knapp */
}

/* NYTT: Styling for "Logg inn" / "Min Side"-knapp */
.header-433__user-navigation .user-nav-link {
    color: #ffffff;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap; /* Forhindrer at teksten brekker */
}

.header-433__user-navigation .user-nav-link:hover {
    background-color: #ffffff;
    color: #0a0a0a;
    border-color: #ffffff;
}

/* Meny-knapp (Hamburger) */
.custom-menu-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 100001;
    position: relative;
    width: 44px;
    height: 44px;
}

.line {
    position: absolute;
    left: 10px;
    display: block;
    width: 24px;
    height: 3.5px;
    background-color: #ffffff;
    transition: all 0.2s ease-in-out;
}

.line1 { top: 13.5px; }
.line2 { top: 20px; }
.line3 { top: 26.5px; }

body.menu-is-open .line1 { transform: translateY(6.5px) rotate(45deg); }
body.menu-is-open .line2 { opacity: 0; }
body.menu-is-open .line3 { transform: translateY(-6.5px) rotate(-45deg); }

/* ==========================================================================
   Fullskjermsmeny (Responsiv)
   ========================================================================== */

.fullscreen-menu {
    position: fixed;
    top: 60px; /* Høyden på headeren din */
    left: 0;
    width: 100vw;
    max-width:100%;
    height: calc(100vh - 60px);
    background-color: #0a0a0a;
    z-index: 1000;
    display: none;
    overflow-y: auto;
    color: #ffffff;
}

body.menu-is-open .fullscreen-menu { display: block; }
body.menu-is-open { overflow: hidden; }

.fullscreen-menu__inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1.5rem; /* Mer luft på sidene for mobil */
}

.fullscreen-menu__grid {
    display: flex;
    flex-direction: column; /* Stabler kolonner på mobil */
    gap: 2rem;
}

.fullscreen-menu h3 {
    font-family: 'Geist',sans-serif;
    font-size: 1.5rem; /* Mindre overskrift på mobil */
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #333;
    color: white;
}

.menu-section {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem; /* Mer kontrollert avstand */
}

.menu-pill {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem; /* Bedre lesbarhet på mobil */
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.menu-pill:hover {
    color: #ffffff;
}

.fullscreen-menu__right {
    border-top: 1px solid #333;
    padding-top: 2rem;
}

.menu-link-right {
    display: block;
    font-family: 'Inter', sans-serif;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
}

.menu-link-right:hover {
    color: #ffffff;
}

/* Søkefelt i menyen */
.menu-search-form {
    margin-bottom: 2.5rem;
}

.menu-search-form form {
    display: flex;
    width: 100%;
    align-items: center;
    border-bottom: 1px solid #555;
    transition: border-color 0.2s;
}
.menu-search-form form:focus-within {
    border-bottom-color: #fff;
}

.menu-search-form input[type="text"] {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    font-family: 'Inter', sans-serif;
    padding: 10px 5px;
    border-radius: 0;
    outline: none;
}

.menu-search-form button[type="submit"] {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 12px;
    color: #fff;
}

/* -----------------------------------------
   Desktop & Større Skjermer
----------------------------------------- */
@media (min-width: 768px) {
    .fullscreen-menu__inner {
        padding: 3rem 2rem;
    }

    .fullscreen-menu__grid {
        display: grid;
        grid-template-columns: 3fr 1fr; /* Tilbake til grid på større skjermer */
        gap: 4rem;
    }

    .fullscreen-menu h3 {
        font-size: 2.1rem;
    }
    
    .menu-pill, .menu-link-right {
        font-size: 1.4rem;
    }

    .fullscreen-menu__right {
        border-top: none;
        border-left: 1px solid #333;
        padding-top: 0;
        padding-left: 2rem;
    }
}

/* ==========================================================================
   Kategorimeny (Oppdatert med slide-funksjonalitet)
   ========================================================================== */

/* Hovedcontainer for menyen */
.category-menu {
    background: #0d1365;
    padding: 10px 0;
    overflow: hidden;
}

/* Container for å håndtere scroll. */
.category-menu-container {
    display: flex;
    /* ENDRING: Endret fra 'center' til 'flex-start' for å alltid starte fra venstre. */
    justify-content: flex-start;
    margin: 0 auto;
    padding: 0 15px; /* Gir litt luft på sidene */
    overflow-x: auto; /* Tillater horisontal scrolling */
    -webkit-overflow-scrolling: touch; /* For jevn scrolling på iOS */
    scrollbar-width: none; /* Skjuler scrollbar i Firefox */
    -ms-overflow-style: none; /* Skjuler scrollbar i IE */
}

/* Skjuler scrollbar i Chrome, Safari, etc. */
.category-menu-container::-webkit-scrollbar {
    display: none;
}

/* Selve listen med lenker */
.category-menu-list {
    display: flex;
    flex-wrap: nowrap; /* Viktig: Forhindrer at elementene stables */
    padding: 0;
    margin: 0;
    list-style: none;
}

/* Styling av hver lenke */
.category-menu-list a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 5px 15px;
    display: block;
    white-space: nowrap; /* Sørger for at teksten ikke brekker */
    color: #ffffff; /* Hvit tekstfarge */
    transition: opacity 0.2s ease-in-out;
}

/* Fjerner den gamle separasjonslinjen */
.category-menu-list li:first-child::after {
    display: none;
}

/* Hover-effekt */
.category-menu-list a:hover {
    opacity: 0.8;
    color: #ffffff;
}

/* Fjerner unødvendig media query */
@media (min-width: 1024px) {
    .category-menu-container {
        margin-left: calc(50% - 36vw);
        max-width: 100%;
    }
}


/* Breaking News Banner */
.news-banner {
    background: linear-gradient(to right, #7d0303, #9c0101);
    color: white;
    padding: 10px;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 0px;
    font-family: sans-serif;
}

.news-banner-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.news-banner-inner a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    text-align: left;
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    margin-right: 12px;
}

.pulse {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #e80f0f;
    animation: pulse-animation 1.5s infinite !important;
}

@keyframes pulse-animation {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.news-banner-inner h2 {
    margin: 0;
    font-size: 0.95em;
    line-height: 1.3;
}

.news-banner-inner .news-meta {
    display: block;
    font-size: 0.6em;
    color: #ffffff;
}

.news-banner-inner .news-description {
    display: block;
    font-size: 0.95em;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Geist',sans-serif;
}

/* ==========================================================================
   Enkeltartikkel (single.php)
   ========================================================================== */

/* Hovedcontainer for artikkelen */
.entry-single-article .entry-container {
    max-width: 800px;
    margin: 1em auto 2em auto;
    padding: 0 15px;
    background-color: transparent;
    box-shadow: none;
}

.entry-single-article .entry-header {
    margin-bottom: 1.5em;
    padding-top: 0em;
    text-align: left;
}

.entry-single-article .entry-title {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Geist',sans-serif;
    line-height: 1.05;
    margin-bottom: 0.5em;
}

.entry-single-article .entry-excerpt p {
    font-size: 1.175rem;
    font-weight: 500;
    font-family: 'Inter';
    font-style: normal;
    color: #333;
    margin: 0;
    line-height: 1.6;
}

.entry-single-article .entry-featured-image {
    margin-bottom: 1.5em;
}

.entry-single-article .entry-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.entry-meta-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1em;
    padding-bottom: 1em;
    margin-bottom: 1.5em;
    border-bottom: 1px solid #ddd;
    font-family: 'Inter', sans-serif;
    font-size: 0.9em;
    color: #555;
}

.entry-meta-left {
    display: flex;
    flex-direction: column;
    gap: 0.3em;
}

.meta-item a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}
.meta-item a:hover {
    text-decoration: underline;
}

.entry-tags-wrapper {
    margin-bottom: 1em;
}

.entry-tags a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #e9e9e9;
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85em;
    color: #333;
    margin-right: 8px;
    margin-bottom: 8px;
    transition: background-color 0.2s ease;
    white-space: nowrap; /* FIKS: Forhindrer at teksten brekker */
}

.entry-tags a:hover {
    background-color: #d8d3d3;
}

.entry-tags img.tag-logo {
    height: 16px !important;
    aspect-ratio: 0;
}

.entry-content {
    font-size: 1.1rem;
    line-height: 1.2;
}

/* NYTT: Styling for eksterne lenker i artikkelinnhold */
.entry-content a[target="_blank"],
.entry-content a[rel~="external"] {
    color: #000 !important; /* Svart tekstfarge */
    text-decoration: underline;
    text-decoration-color: blue;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

.entry-footer {
    margin-top: 3em;
    padding-top: 2em;
    border-top: 2px solid #e9e9e9;
}

/* Relaterte artikler */
.custom-related-posts-grid {
    width: 100%;
    margin-top: 40px;
    border-top: 2px solid #eee;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.custom-related-posts-grid h2 {
    margin-bottom: 10px;
    font-size: 18px;
    width: 100%;
    padding: 1px 1px 1px 10px;
}

.related-post-item {
    background-color: #f9f9f9;
    border-radius: 4px;
    display: flex;
    overflow: hidden;
    padding: 15px;
    align-items: center;
}

.related-post-content {
    flex: 1;
    padding-right: 15px;
}

.related-post-image-link {
    flex-basis: 120px;
    flex-shrink: 0;
}

.related-post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

.related-pre-title {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 13px;
    color: #666;
    margin: 0;
}

.related-post-title {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 15px;
    font-weight: bold;
    line-height: 1.2;
    margin: 5px 0 0 0;
    position: relative;
    padding-left: 12px;
}

.related-post-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1px;
    bottom: 1px;
    width: 3px;
    background-color: #0011d9;
    border-radius: 2px;
}

.related-post-item a {
    text-decoration: none;
    color: #1a1a1a;
}

.related-post-item a:hover .related-post-title {
    text-decoration: underline;
}

/* ==========================================================================
   Desktop og større skjermer (media queries)
   ========================================================================== */

/* Nettbrett og mindre desktops */
@media (min-width: 768px) {
    .fp-top-story .fp-post-title {
        font-size: 4rem;
    }
    .fp-post-item .fp-post-title {
        font-size: 2.2rem;
    }
    .fp-landscape-item .fp-post-title {
        font-size: 2rem;
    }
    .fp-landscape-item .fp-landscape-content,
    .fp-post-item .fp-post-content {
        padding: 20px;
    }
    .fpl-title {
        font-size: 3rem;
    }
    .vm-focus-grid {
        grid-template-columns: 55% 1fr;
    }
    .vm-focus-featured-title {
        font-size: 1.8rem;
    }
    .vm-focus-list-title {
        font-size: 1.1rem;
    }
    .entry-single-article .entry-title {
        font-size: 2.2rem;
    }
    .entry-single-article .entry-excerpt p {
        font-size: 1.3rem;
    }
    .entry-content {
        font-size: 1.2rem;
        max-width: 100%;
        margin: 0 auto;
    }
    .related-post-image-link {
        flex-basis: 150px;
    }
    .related-post-title {
        font-size: 16px;
    }
}

/* Full desktop */
@media (min-width: 992px) {
    .frontpage-container {
        grid-template-columns: 1fr 325px;
    }
    .latest-mobile-section {
        display: none;
    }
    .frontpage-sidebar {
        display: block;
    }
    .fp-top-story .fp-post-title {
        font-size: 5rem;
    }
    .fp-post-item .fp-post-title {
        font-size: 2.8rem;
    }
}

/* Justering av header padding på store skjermer */
@media (min-width: 1200px) {
    .header-433 {
        padding-left: 260px;
        padding-right: 260px;
    }
}

/* Justering av meny-layout på nettbrett */
@media (max-width: 768px) {
    .fullscreen-menu__grid {
        grid-template-columns: 1fr;
    }
    .fullscreen-menu__right {
        border-left: none;
        border-top: 1px solid #333;
        padding-left: 0;
        padding-top: 2rem;
        margin-top: 2rem;
    }
}

a:-webkit-any-link {
    cursor: pointer;
    text-decoration: none;
}

/* ==========================================================================
   Paginering (Sidenummerering)
   ========================================================================== */

.pagination {
    margin-top: 2.5em;
    font-family: 'Geist',sans-serif;
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.nav-links .page-numbers {
    display: inline-block;
    padding: 10px 18px;
    border: 1px solid #ddd;
    background-color: #fff;
    text-decoration: none;
    color: #333;
    border-radius: 8px;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
    font-weight: 500;
}

.nav-links .page-numbers:hover {
    background-color: #f0f0f0;
    border-color: #ccc;
}

.nav-links .page-numbers.current {
    background-color: #0a0a0a;
    color: #fff;
    border-color: #0a0a0a;
    font-weight: 700;
}

.nav-links .dots {
    padding: 10px 5px;
    color: #999;
}

/* ==========================================================================
   Desktop-layout for Arkivsider (min-width: 992px)
   ========================================================================== */
@media (min-width: 992px) {
    .archive-container {
        flex-direction: row;
        align-items: flex-start;
    }

    .archive-main {
        flex: 1;
    }

    .archive-sidebar {
        flex-basis: 320px;
        flex-shrink: 0;
    }

    .archive-post-link {
        flex-direction: row;
        align-items: center;
    }

    .archive-post-image {
        flex: 0 0 200px;
    }

    .archive-post-image img {
        aspect-ratio: 4 / 3;
    }

    .archive-post-content {
        padding: 25px;
    }

    .archive-post-title {
        font-size: 1.8rem;
    }
}

/* ==========================================================================
   Kommentarfelt Styling (Versjon 3 - Integrert)
   ========================================================================== */

/* Hovedcontainer - Fjerner boks-utseendet for å integrere med artikkelen */
.comments-area-wrapper {
    margin: 4em 0 2em 0; /* Mer luft over, mindre under */
    padding-top: 2em;
    border-top: 2px solid #e9e9e9; /* Tydelig skille fra artikkelinnhold */
    display: flex;
    flex-direction: column;
    gap: 3em; /* Luft mellom kommentarfeltet og skjemaet */
}

/* Fjerner individuell bakgrunn og skygge fra list/form wrappers */
.comment-list-wrapper,
.comment-form-wrapper {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.comments-title {
    font-family: 'Geist', sans-serif;
    font-size: 2rem; /* Litt større tittel */
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 1.5em;
    padding-bottom: 0;
    border-bottom: none; /* Fjerner unødvendig linje */
}

/* Eksisterende kommentarer (små justeringer) */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.comment-list ol { list-style: none; }
.comment-body {
    display: flex;
    gap: 15px;
    padding: 1.5em 0;
    border-top: 1px solid #f0f0f0;
}
.comment-list > .comment:first-child > .comment-body {
    border-top: none;
    padding-top: 0;
}
.comment-list .children {
    padding-left: 20px;
    margin-left: 25px;
    border-left: 2px solid #e9e9e9;
}
.comment-avatar img { border-radius: 50%; }

/* --- Styling for Kommentarskjema --- */
.comment-form-wrapper #reply-title {
    font-family: 'Geist', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 1em;
}

/* Melding til innloggede brukere */
.comment-form-notice {
    font-size: 0.9rem;
    color: #555;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 0.8em 1em;
    border-radius: 6px;
    margin-bottom: 1em;
}

/* Tekstfeltet for kommentar */
.comment-form textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box;
    min-height: 120px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.comment-form textarea:focus {
    border-color: #0a0a0a;
    box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.1);
    outline: none;
}

/* Publiser-knapp */
.form-submit button.submit {
    background-color: #0a0a0a;
    color: #ffffff;
    border: none;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 50px; /* Mer moderne, avrundet knapp */
    cursor: pointer;
    transition: background-color 0.2s;
}
.form-submit button.submit:hover {
    background-color: #333;
}

/* --- Boks for brukere som ikke er logget inn --- */
.must-log-in-box {
    text-align: center;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 2em;
    border-radius: 8px;
}
.must-log-in-box p {
    margin-top: 0;
    margin-bottom: 1em;
    font-weight: 600;
    font-size: 1.1rem;
}
.must-log-in-box .login-button {
    display: inline-block;
    background-color: #0a0a0a;
    color: #ffffff;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: bold;
    transition: background-color 0.2s;
}
.must-log-in-box .login-button:hover {
    background-color: #333;
}

/* ==========================================================================
   Styling for Svar-på-kommentar (Ny)
   ========================================================================== */

/* "Svarer til"-boksen som vises over kommentaren */
.comment-reply-to-box {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 0.5em 0.8em;
    margin-bottom: 1em;
    font-size: 0.9em;
    color: #495057;
}

.comment-reply-to-box a {
    font-weight: 600;
    color: #0a0a0a;
    text-decoration: none;
}

.comment-reply-to-box a:hover {
    text-decoration: underline;
}

/* Forbedrer den eksisterende linjen for svar-kommentarer */
.comment-list .children {
    padding-left: 20px;
    margin-left: 25px; 
    border-left: 2px solid #e9ecef; /* Tydeligere linje */
}

/* ==========================================================================
   Kommentar-moderering (Ny)
   ========================================================================== */

/* Container for handlinger som Svar og Slett */
.comment-actions {
    display: flex;
    align-items: center;
    gap: 1em; /* Mellomrom mellom knappene */
    margin-top: 0.5em;
}

/* Fjerner ekstra div rundt svar-knappen for enklere flexbox-justering */
.comment-actions .reply {
    margin: 0;
}

/* Styling for Slett-lenken */
.comment-delete-link {
    font-size: 0.9em;
    font-weight: bold;
    color: #d32f2f; /* Rødfarge for sletting */
    text-decoration: none;
    transition: color 0.2s;
}

.comment-delete-link:hover {
    color: #b71c1c; /* Mørkere rødfarge ved hover */
    text-decoration: underline;
}

/* Stil for "Slettet"-meldingen */
.comment-text p em {
    color: #6c757d; /* Grå og kursiv tekst */
}

/* ==========================================================================
   ENDELIG LAYOUT FOR ENKELTARTIKKEL (SINGLE.PHP) V2.5
   ========================================================================== */

/* -----------------------------------------
   Generell Grid & Sidebar
----------------------------------------- */
.single-grid-container {
    max-width: 1100px; margin: 0em auto; padding: 0 10px;
    display: grid; grid-template-columns: 1fr; gap: 40px; align-items: flex-start;
}
.single-main-content { min-width: 0; }
.single-sidebar { display: none; } /* Skjult på mobil */

.sidebar-sticky-content {
    position: sticky; top: 80px; display: flex; flex-direction: column; gap: 25px;
}

/* -----------------------------------------
   Moderne stil for bokser (Widgets)
----------------------------------------- */
.sidebar-widget {
    /* background: #fff; */
    /* border: 1px solid #e9ecef; */
    /* border-radius: 12px; */
    padding: 20px;
    /* box-shadow: 0 4px 15px rgba(0, 0, 0, .04); */
}

.sidebar-widget-title {
    font-size: 1.25rem; font-weight: 800; font-family: 'Geist', sans-serif;
    margin: 0 0 15px 0; padding-bottom: 15px; display:none; border-bottom: 1px solid #e9ecef;
}

/* -----------------------------------------
   Ny "Siste Artikler" Widget
----------------------------------------- */
.siste-artikler-widget { display: flex; flex-direction: column; gap: 15px; }
.artikkel-kort {
    display: flex; gap: 15px; align-items: center; text-decoration: none;
    color: inherit; border-radius: 8px; transition: background-color 0.2s;
}
.artikkel-kort:hover { background-color: #f8f9fa; }
.artikkel-bilde { flex-shrink: 0; }
.artikkel-bilde img {
    width: 65px; height: 65px; object-fit: cover; border-radius: 6px; display: block;
}
.artikkel-innhold { flex-grow: 1; }
.artikkel-tittel {
    font-family: 'Geist', sans-serif; font-size: 1rem; font-weight: 700;
    line-height: 1.3; margin: 0 0 4px 0; color: #212529;
}
.artikkel-tid { font-size: 0.8rem; color: #6c757d; }


/* ==========================================================================
   Styling for annonser
   ========================================================================== */

/* 1. Annonse i SIDEBAR (beholder din opprinnelige stil) */
.sidebar-ad-placeholder {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    display: block;
    text-align: center;
    color: #adb5bd;
    font-weight: 700;
    border-radius: 8px; /* Behold runde kanter her */
    box-sizing: border-box;
    min-height: 250px;
    margin: 0;
}

.ad-container-full-width {
    /* Strekker boksen til full bredde. Juster "-15px" om nødvendig. */
    margin: 2em -15px; 
    padding: 0;
    background-color: transparent; /* Usynlig som standard */
    border: none;
    min-height: 0; /* Lar den kollapse når den er tom */
    overflow: hidden; /* NY: Forhindrer innholdet i å gå utenfor */
}

/* 3. Selve "Annonse"-etiketten (skjult som standard) */
.ad-container-full-width::before {
    display: none; /* Skjult som standard */
    content: 'Annonse';
    text-transform: uppercase;
    font-size: 11px;
    font-family: 'Inter', sans-serif;
    color: #555;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 10px 15px;
    border-bottom: 1px solid #e5e5e5;
}

/* 4. MAGIEN: Viser alt KUN når Google har plassert en annonse */
.ad-container-full-width:has(ins.adsbygoogle[data-ad-status="filled"]) {
    background-color: #f1f1f1; /* Lys grå bakgrunn */
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 15px; /* Luft under annonsen */
}

/* Viser "Annonse"-etiketten når en annonse er lastet */
.ad-container-full-width:has(ins.adsbygoogle[data-ad-status="filled"])::before {
    display: block; /* Gjør etiketten synlig */
}

/* ==========================================================================
   Artikkel Sidebar V2 - Siste Artikler Widget
   ========================================================================== */

/* Container for den nye widgeten, arver fra forsidens .aside-post-list */
.siste-artikler-widget-v2 {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Luft mellom hver artikkel */
}

/* Gjenbruker forsidens .aside-article-item for konsistens */
.siste-artikler-widget-v2 .aside-article-item {
    background-color: transparent; /* Ingen egen bakgrunn, smelter inn med widget-bakgrunn */
    padding: 0;
    border-radius: 0;
    border-bottom: 1px solid #f0f0f0; /* Subtil linje mellom artikler */
    padding-bottom: 1rem; /* Avstand under linjen */
}

.siste-artikler-widget-v2 .aside-article-item:last-child {
    border-bottom: none; /* Fjerner linjen på siste element */
    padding-bottom: 0;
}

.siste-artikler-widget-v2 .aside-article-link {
    display: flex;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    align-items: center; /* Vertikal sentrering */
    transition: opacity 0.2s ease;
}

.siste-artikler-widget-v2 .aside-article-link:hover {
    opacity: 0.8;
}

.siste-artikler-widget-v2 .aside-article-image {
    flex-shrink: 0;
    width: 70px; /* Litt mindre bilder for smalere sidebar */
    height: 70px;
    aspect-ratio: 1 / 1;
}

.siste-artikler-widget-v2 .aside-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px; /* Mykere kanter */
    display: block;
}

.siste-artikler-widget-v2 .aside-article-content {
    min-width: 0;
}

.siste-artikler-widget-v2 .aside-article-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem; /* Mindre font for meta-info */
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: #4b4b4b;
    text-transform: uppercase; /* Gir et strammere, redaksjonelt preg */
    letter-spacing: 0.5px;
}

.siste-artikler-widget-v2 .aside-article-term {
    color: #0d1365; /* Bruker sidens hovedfarge for gjenkjennelse */
}

.siste-artikler-widget-v2 .aside-article-title {
    font-family: 'Geist', sans-serif; /* Bruker hovedfonten for titler */
    font-size: 1rem;
    font-weight: 500; /* Litt lettere enn hovedtitler */
    line-height: 1.25;
    margin: 0;
    color: #0a0a0a;
}

/* -----------------------------------------
   Meta-informasjon (Forfatter, dato, knapper)
----------------------------------------- */
.entry-meta-container {
    display: flex; flex-wrap: wrap; justify-content: space-between;
    align-items: center; gap: 1em; padding-bottom: 1em;
    margin-bottom: 1.5em; border-bottom: 1px solid #e9ecef;
}
.entry-meta-left { display: flex; flex-direction: column; gap: 0.3em; }
.meta-item.meta-dates span { display: block; }
.meta-item.meta-dates .meta-update-date { color: #6c757d; }

/* Knapper på mobil */
.entry-meta-right.mobile-buttons {
    display: flex;
    flex-direction: row; /* Setter knappene på linje */
    gap: 0.75rem;
    overflow-x: auto; /* Aktiverer horisontal scroll ved behov */
    padding-bottom: 5px; /* Plass for scrollbar-skyggen */
    scrollbar-width: none; /* Skjuler scrollbar for Firefox */
    -ms-overflow-style: none; /* Skjuler scrollbar for IE */
}
.entry-meta-right.mobile-buttons::-webkit-scrollbar {
    display: none; /* Skjuler scrollbar for Chrome, Safari */
}

/* -----------------------------------------
   Moderne knappe-styling
----------------------------------------- */
.kopier-lenke-wrapper, .google-news-button {
    display: flex; align-items: center; gap: 8px;
    border-radius: 1px; padding: 10px 14px;
    font-family: 'Inter', sans-serif; font-weight: 400; font-size: 14px;
    text-decoration: none; cursor: pointer; transition: all 0.2s ease;
    box-sizing: border-box;
    flex-shrink: 0; /* Forhindrer at knappene krymper */
    white-space: nowrap; /* Holder teksten på én linje */
}
.kopier-lenke-wrapper { background-color: #f8f9fa; color: #495057; border: 1px solid #ebebeb; }
.kopier-lenke-wrapper:hover { background-color: #e9ecef; border-color: #ced4da; color: #212529; }
.kopier-lenke-wrapper.kopiert { background-color: #e8ecec; border-color: #ebebeb; color: #495057; }
.google-news-button { background-color: #1f1f1f; color: #ffffff; border: 1px solid #1f1f1f; }
.google-news-button:hover { background-color: #000; opacity: 0.9; }
.copy-link-icon { width: 16px; height: 16px; flex-shrink: 0; }
.google-news-button img { width: 18px; height: 18px; }

/* -----------------------------------------
   Tag-karusell
----------------------------------------- */
.entry-tags-wrapper { overflow-x: auto; padding: 5px 0 5px 0; scrollbar-width: none; -ms-overflow-style: none; }
.entry-tags-wrapper::-webkit-scrollbar { display: none; }
.entry-tags { display: flex; flex-wrap: nowrap; gap: 8px; width: max-content; }
.entry-tags a { flex-shrink: 0; padding: 10px;}

/* -----------------------------------------
   Desktop & Større Skjermer
----------------------------------------- */
@media (min-width: 992px) {
    .single-grid-container { grid-template-columns: 1fr 320px; }
    .single-sidebar { display: block; margin-top: 15px;}
    .mobile-buttons { display: none; }
    .desktop-buttons { display: flex; } /* Viser desktop-knappene */

    .sidebar-buttons-container.desktop-buttons {
        flex-direction: row; /* Setter knappene ved siden av hverandre */
        gap: 0.75rem;
    }
    .desktop-buttons .kopier-lenke-wrapper,
    .desktop-buttons .google-news-button {
        width: auto; /* Lar knappene tilpasse seg innholdet */
        flex-grow: 1; /* Lar dem dele plassen likt */
    }

    .entry-meta-left { flex-direction: row; gap: 1em; }
    .meta-item.meta-dates .meta-update-date { display: inline; }
}

/* Fjerner padding for annonse-widget for å gi full bredde */
.sidebar-ad-widget {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

/* ==========================================================================
   Stil for "Om Oss"-siden
   ========================================================================== */

.om-oss-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2em 15px;
}

.om-oss-banner {
    margin-bottom: 2.5em;
    border-radius: 12px;
    overflow: hidden;
    line-height: 0;
}

.om-oss-banner img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.om-oss-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2em;
}

.om-oss-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 2em;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}

.om-oss-title {
    font-family: 'Geist',sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 1em 0;
    text-align: center;
}

.om-oss-subtitle {
    font-family: 'Geist',sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1em 0;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 0.5em;
}

.om-oss-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #343a40;
}

.om-oss-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2em;
}

/* Stil for sosiale medier-boksen */
.social-media-card {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
}

.social-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    color: #212529;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
}

.social-links a:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.social-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Stil for redaksjon-boksen */
.editor-card p {
    color: #495057;
    line-height: 1.6;
}
.editor-card a {
    color: #0d1365;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}
.editor-card a:hover {
    border-color: #0d1365;
}
.editor-contact {
    margin-top: 1.5em;
    font-style: italic;
}

/* Desktop-justeringer */
@media (min-width: 768px) {
    .om-oss-grid {
        grid-template-columns: 1fr 1fr; /* To kolonner på større skjermer */
    }
    .om-oss-title {
        font-size: 3rem;
    }
}

/* ==========================================================================
   Stil for "Annonsering"-siden
   ========================================================================== */

/* Generell container-styling */
.annonsering-page .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

/* -----------------------------------------
   Hero Seksjon
----------------------------------------- */
.hero-section-annonsere {
    background-color: #0a0a0a;
    color: #ffffff;
    padding: 5em 0;
    text-align: center;
}

.hero-title {
    font-family: 'Geist',sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    max-width: 700px;
    margin: 0 auto 0.5em auto;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #adb5bd;
    max-width: 600px;
    margin: 0 auto 2em auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2.5em 0;
    flex-wrap: wrap;
}

.stat-item {
    border-left: 2px solid #0d1365;
    padding-left: 1rem;
    text-align: left;
}

.stat-number {
    font-family: 'Geist',sans-serif;
    font-size: 2rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.9rem;
    color: #adb5bd;
}

.hero-cta-button {
    display: inline-block;
    background-color: #0d1365;
    color: #ffffff;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.hero-cta-button:hover {
    background-color: #1c25a3;
    transform: translateY(-2px);
}

/* -----------------------------------------
   Løsninger Seksjon
----------------------------------------- */
.solutions-section-annonsere {
    padding: 5em 0;
    background-color: #f8f9fa;
}

.section-title {
    text-align: center;
    font-family: 'Geist',sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 1.5em 0;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.solution-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.card-image-wrapper img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.card-content {
    padding: 1.5em;
}

.card-content h3 {
    font-family: 'Geist',sans-serif;
    font-size: 1.4rem;
    margin: 0 0 0.5em 0;
}

.card-content p {
    margin: 0;
    color: #495057;
}

/* -----------------------------------------
   Forespørsel Seksjon
----------------------------------------- */
.inquiry-section-annonsere {
    padding: 5em 0;
    background-color: #ffffff;
}

.inquiry-form-box {
    max-width: 700px;
    margin: 0 auto;
    padding: 2.5em;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    text-align: center;
}

.form-benefits {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1.5em 0;
    color: #495057;
    font-weight: 500;
    flex-wrap: wrap;
}

/* Stil for Contact Form 7 (grunnleggende) */
.inquiry-form-box .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.inquiry-form-box .wpcf7-form input,
.inquiry-form-box .wpcf7-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
}
.inquiry-form-box .wpcf7-form .wpcf7-submit {
    background-color: #0a0a0a;
    color: #ffffff;
    border: none;
    padding: 14px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s;
}
.inquiry-form-box .wpcf7-form .wpcf7-submit:hover {
    background-color: #333;
}

/* -----------------------------------------
   Responsivt design
----------------------------------------- */
@media (max-width: 768px) {
    .hero-title { font-size: 2rem; }
    .hero-stats { flex-direction: column; align-items: center; gap: 1.5rem; }
    .stat-item { border-left: none; border-top: 2px solid #0d1365; padding-left: 0; padding-top: 1rem; text-align: center; width: 200px; }
    .form-benefits { flex-direction: column; gap: 0.5rem; }
}

/* ==========================================================================
   Stil for Annonse-produktsider (Digitalt, Innhold etc.)
   ========================================================================== */

.product-page-container {
    background-color: #f8f9fa;
    padding: 4em 0;
}

.product-page-container .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.product-page-header {
    text-align: center;
    margin-bottom: 3em;
}

.product-page-header h1 {
    font-family: 'Geist',sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5em;
}

.product-page-header .product-intro {
    font-size: 1.1rem;
    color: #495057;
    max-width: 700px;
    margin: 0 auto;
}

.product-content-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5em;
    align-items: flex-start;
}

.ad-formats-list {
    display: flex;
    flex-direction: column;
    gap: 2em;
}

.ad-format-item {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
}

.format-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    background-color: #e9ecef;
}

.format-details {
    padding: 2em;
}

.format-details h3 {
    font-family: 'Geist',sans-serif;
    font-size: 1.6rem;
    margin: 0 0 0.5em 0;
}

.format-details p {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 1.5em;
}

.format-specs {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5em 0;
    border-left: 3px solid #0d1365;
    padding-left: 1em;
}

.format-specs li {
    margin-bottom: 0.5em;
    color: #343a40;
}

.price-tag {
    display: inline-block;
    background-color: #e9ecef;
    color: #212529;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-family: 'Geist',sans-serif;
}

.price-tag.contact {
    background-color: #0d1365;
    color: #ffffff;
}

/* Sidebar */
.sticky-sidebar {
    position: sticky;
    top: 80px;
}

.inquiry-form-box {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 2em;
    text-align: center;
}

.inquiry-form-box h3 {
    font-family: 'Geist',sans-serif;
    font-size: 1.6rem;
    margin: 0 0 0.5em 0;
}

.sidebar-contact-button {
    display: block;
    margin-top: 1.5em;
    background-color: #0a0a0a;
    color: #ffffff;
    text-align: center;
    padding: 14px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s;
}

.sidebar-contact-button:hover {
    background-color: #333;
}


/* -----------------------------------------
   Desktop & Større Skjermer
----------------------------------------- */
@media (min-width: 992px) {
    .product-content-layout {
        grid-template-columns: 2fr 1fr; /* To kolonner */
    }
    .ad-format-item {
        flex-direction: row; /* Bilde og tekst ved siden av hverandre */
    }
    .format-image {
        flex: 0 0 40%;
    }
    .format-image img {
        height: 100%;
    }
    .format-details {
        flex: 1 1 auto;
    }
}

/* ==========================================================================
   Stil for "Overganger"-siden
   ========================================================================== */

.overganger-page {
    background-color: #f8f9fa;
}

.overganger-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2em 15px 4em 15px;
}

.page-header {
    text-align: center;
    margin-bottom: 2.5em;
}

.page-header h1 {
    font-family: 'Geist',sans-serif;
    font-size: 2.1rem;
    font-weight: 700;
    margin-bottom: 0.25em;
}

.page-header p {
    font-size: 1.1rem;
    color: #495057;
    max-width: 600px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Geist',sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 1.5em 0;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5em;
}

/* -----------------------------------------
   Toppsak
----------------------------------------- */
.overganger-toppsak {
    margin-bottom: 3em;
}

.toppsak-link {
    display: block;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    color: #ffffff;
    text-decoration: none;
}

.toppsak-bilde img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.toppsak-link:hover .toppsak-bilde img {
    transform: scale(1.05);
}

.toppsak-innhold {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2em;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
}

.toppsak-meta {
    display: inline-block;
    background-color: #0d1365;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.75em;
}

.toppsak-tittel {
    font-family: 'Geist',sans-serif;
    font-size: 2.2rem;
    line-height: 1.2;
    margin: 0;
}

/* -----------------------------------------
   Hotlist Seksjon (Karusell på mobil)
----------------------------------------- */
.hotlist-section {
    margin-bottom: 3em;
}

.hotlist-players-container {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1.5em; /* Plass for scrollbar */
    scrollbar-width: thin;
    scrollbar-color: #ced4da #f8f9fa;
}
.hotlist-players-container::-webkit-scrollbar { height: 8px; }
.hotlist-players-container::-webkit-scrollbar-track { background: #f8f9fa; border-radius: 4px; }
.hotlist-players-container::-webkit-scrollbar-thumb { background-color: #ced4da; border-radius: 4px; }

.hotlist-player-card {
    flex: 0 0 280px; /* Fast bredde for hvert kort */
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5em;
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.player-identity { display: flex; align-items: center; gap: 12px; }
.player-image img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.player-name { font-size: 1.2rem; margin: 0; font-family: 'Geist'; }
.player-transfer-details label { font-size: 0.8rem; font-weight: 600; color: #6c757d; display: block; margin-bottom: 0.5em; }

.probability-bar-bg { background-color: #e9ecef; border-radius: 50px; height: 24px; overflow: hidden; }
.probability-bar-fill {
    background: linear-gradient(90deg, #0d1365 0%, #3461ff 100%);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 8px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    box-sizing: border-box;
}

.club-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.club-tag { background-color: #e9ecef; color: #495057; padding: 4px 10px; border-radius: 50px; font-size: 0.8rem; }

/* -----------------------------------------
   Eldre innlegg
----------------------------------------- */
.older-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.older-post-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.older-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.07);
}
.older-post-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}
.older-post-content { padding: 1.5em; }
.older-post-title { font-family: 'Geist', sans-serif; font-size: 1.2rem; margin: 0; line-height: 1.3; }

/* -----------------------------------------
   Responsivt design
----------------------------------------- */
@media (min-width: 768px) {
    .page-header h1 { font-size: 3.5rem; }
    .toppsak-bilde img { height: 500px; }
    .toppsak-tittel { font-size: 2.8rem; }
    .hotlist-players-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        overflow-x: visible;
        padding-bottom: 0;
    }
}

@media (min-width: 1024px) {
    .hotlist-players-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================================================
   Stil for Søkeresultat-siden (search.php)
   ========================================================================== */

.search-container {
    max-width: 900px; /* Litt smalere enn arkiv for bedre fokus */
    margin: 2em auto 4em auto;
    padding: 0 15px;
}

.search-header {
    margin-bottom: 2em;
    text-align: center;
}

.search-title {
    font-family: 'Geist',sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
}

.search-title span {
    color: #0d1365; /* Fremhever søkeordet */
}

.search-results-count {
    text-align: center;
    font-size: 1.1rem;
    color: #495057;
    margin-bottom: 2em;
    padding-bottom: 1.5em;
    border-bottom: 1px solid #e9ecef;
}

/* Gjenbruker stiler fra archive.php for resultatlisten */
.search-container .archive-posts-list {
    gap: 1.5rem;
}

/* Stil for "Ingen treff"-meldingen */
.no-results {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 3em 2em;
    text-align: center;
    margin-top: 2em;
}

.no-results h2 {
    font-family: 'Geist',sans-serif;
    font-size: 1.8rem;
    margin: 0 0 0.5em 0;
}

.no-results p {
    color: #495057;
    margin-bottom: 2em;
}

/* Stil for søkeskjemaet i "Ingen treff" */
.no-results .search-form {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
    border: 1px solid #ced4da;
    border-radius: 50px;
    overflow: hidden;
}

.no-results .search-field {
    flex-grow: 1;
    border: none;
    padding: 14px 20px;
    font-size: 1rem;
    outline: none;
}

.no-results .search-submit {
    background-color: #0a0a0a;
    color: #ffffff;
    border: none;
    padding: 0 25px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s;
}

.no-results .search-submit:hover {
    background-color: #333;
}

@media (max-width: 768px) {
    .search-title {
        font-size: 2rem;
    }
}

/* Fiks for stor avstand under innebygd innhold (embeds) */
.wp-block-embed {
    margin-bottom: -6em !important; /* Juster "1.5em" opp eller ned etter ønske */
}

/* ==========================================================================
   Fotball Ticker V3 (Story Karusell)
   ========================================================================== */

.proff-ticker-karusell-wrapper {
    margin: 2em 0;
}

/* Du kan gjenbruke .ticker-title fra forrige versjon om du vil */
.proff-ticker-karusell-wrapper .ticker-title {
    font-family: 'Geist',sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 1.5em 0;
    text-align: left; /* Eller center om du foretrekker det */
}

.proff-ticker-karusell {
    display: flex;
    overflow-x: auto; /* Aktiverer horisontal scrolling */
    gap: 20px;
    padding: 10px 0 20px 0; /* Gir litt luft, spesielt under for scrollbar */
    scrollbar-width: none; /* Skjuler scrollbar i Firefox */
    -ms-overflow-style: none; /* Skjuler i IE */
}

.proff-ticker-karusell::-webkit-scrollbar {
    display: none; /* Skjuler i Chrome/Safari */
}

.spiller-story-item {
    flex: 0 0 100px; /* Gir hvert element en fast bredde */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.spiller-bilde-wrapper {
    position: relative;
    width: 90px;
    height: 90px;
}

.spiller-bilde-rund {
    width: 100%;
    height: 100%;
    border-radius: 50%; /* Gjør bildet helt rundt */
    object-fit: cover;
    border: 3px solid transparent; /* Gjennomsiktig kant for å gi plass til gradienten */
    background-clip: padding-box; /* Sørger for at bakgrunnen ikke går under kanten */
    padding: 2px; /* Plass mellom bilde og story-ringen */
}

/* "Story"-ringen med gradient */
.spiller-bilde-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
}


/* Kamp-info boksen som ligger over bildet */
.kamp-info-boks {
    position: absolute;
    bottom: -10px; /* Plasseres litt nedenfor midten */
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    width: max-content; /* Boksen tilpasser seg innholdet */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.kamp-logo {
    height: 18px;
}

.kamp-tid-karusell {
    font-size: 0.8rem;
    font-weight: 700;
    color: #000;
}

.spiller-navn-karusell {
    font-size: 0.85rem;
    font-weight: 500;
    color: #343a40;
    text-align: center;
}

/* Styling for Proff-ticker plassert øverst på forsiden */
.proff-ticker-karusell-wrapper {
    background-color: #ffffff;
    padding: 2em 15px; /* Gir litt luft rundt */
    margin-bottom: 2em; /* Avstand ned til resten av innholdet */
    border-bottom: 1px solid #e9ecef; /* En diskret skillelinje */
}

/* På større skjermer ønsker vi kanskje mer padding på sidene */
@media (min-width: 768px) {
    .proff-ticker-karusell-wrapper {
        padding: 2em 30px;
    }
}

/* ==========================================================================
   Forside V2 Template (Mobil-først)
   ========================================================================== */
.frontpage-v2 {
    font-family: 'Geist', sans-serif;
    background-color: #f4f4f4;
    max-width: 100vw; /* Setter et makstak for bredden */
    overflow-x: hidden; /* Forhindrer horisontal scroll */
}

/* Toppseksjon */
.fp-v2-top-story {
    background: linear-gradient(135deg, #000851, #001d36);
    color: #ffffff;
    margin: 15px 15px 0px 15px;
}

.top-story-article {
    border-radius: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.top-story-image-link {
    flex-grow: 1;
}

.top-story-image-link img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 0;
}

.top-story-content {
    padding: 1.5rem 1rem;
}

.top-story-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.live-tag {
    background-color: #d1971a;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 10px;
    line-height: 1;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ffffff;
    animation: pulse-animation 1.5s infinite;
}

@keyframes pulse-animation {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.top-story-category {
    color: #a0a0a0;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.top-story-category:hover {
    color: #ffffff;
}

.top-story-title {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.05;
    margin: 0;
    color: #fff;
}

.top-story-title a {
    color: inherit;
    text-decoration: none;
}

/* Sidekolonne med siste saker */
.fp-v2-latest-aside {
    padding: 2rem 1rem;
    background-color: transparent; /* Containeren er gjennomsiktig */
}

.aside-post-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.aside-article-item {
    background-color: #ffffff; /* Hvert element får sin egen hvite boks */
    padding: 1rem;
    border-radius: 0;
    display: flex;
    overflow: hidden; /* Sørger for at innhold holder seg innenfor */
}

.aside-article-link {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    width: 100%;
    align-items: center; /* Sentrerer innholdet vertikalt */
}

.aside-article-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    aspect-ratio: 1 / 1; /* Sikrer kvadratisk form */
}

.aside-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    display: block;
}

.aside-article-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 0;
}

.aside-article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.aside-article-term {
    color: #555;
}

.aside-article-time {
    color: #4b4b4b;
}

.aside-article-title {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.25;
    margin: 0;
    color: #0a0a0a;
}

.aside-article-link:hover .aside-article-title {
    text-decoration: underline;
}


/* Desktop-justeringer */
@media (min-width: 992px) {
    .fp-v2-main-grid {
        display: grid;
        grid-template-columns: 1.5fr 0.8fr; /* Endret fordeling */
        gap: 2rem;
        max-width: 1050px;
        margin: 2rem auto;
        padding: 0 1rem;
        align-items: start; /* Justerer elementene til toppen */
    }

    .fp-v2-top-story {
        display: flex;
        margin: 0px 0px 0px 0px;
    }
    
    .top-story-content {
        padding: 2rem;
    }
    
    .top-story-title {
        font-size: 2.2rem;
    }
    
    .fp-v2-latest-aside {
        padding: 0;
        display: flex;
    }
}

@media (min-width: 1200px) {
    .top-story-title {
        font-size: 2.2rem; /* Justert størrelse */
    }
    
    .aside-article-title {
        font-size: 1rem; /* Justert størrelse */
    }
}

/* ==========================================================================
   Nyhetskarusell (Seksjon 2)
   ========================================================================== */

.news-carousel-section {
    padding: 2rem 0;
    background-color: #ffffff;
}

.news-carousel-container {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding: 0 1rem; /* Luft på sidene */
    scroll-snap-type: x mandatory; /* For jevn scrolling på mobil */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Skjuler scrollbar */
    margin-left: 15px;
}

.news-carousel-container::-webkit-scrollbar {
    display: none;
}

.carousel-article-item {
    flex: 0 0 85%; /* Hver artikkel tar 85% av bredden på mobil */
    scroll-snap-align: start; /* Sørger for at scrollingen "snapper" til starten av et element */
    background-color: #1c1c78;
    padding: 1.5rem;
}

.carousel-article-link {
    text-decoration: none;
    color: inherit;
}

.carousel-article-title {
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.3;
    margin: 0;
    color:#ffffff;
}

.carousel-article-tag {
    color: #ffc95a;
    font-weight: 700;
    margin-right: 0.5em;
}

/* Desktop-justeringer for karusell */
@media (min-width: 992px) {
    .news-carousel-section .carousel-wrapper {
        max-width: 1050px;
        margin: 0 auto;
    }

    .carousel-article-item {
        flex-basis: calc(25% - (1.5rem * 3 / 4)); /* Regner ut bredden for 4 elementer med gap */
    }
}

/* ==========================================================================
   FPL Seksjon (Seksjon 3)
   ========================================================================== */

.fpl-v2-section {
    padding: 2rem 1rem;
}

.fpl-v2-container {
    max-width: 1050px;
    margin: 0 auto;
}

.fpl-v2-card {
    display: block;
    background-color: #38003c;
    color: #fff;
    overflow: hidden;
    border-radius: 12px;
}

.fpl-v2-image img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.fpl-v2-card:hover .fpl-v2-image img {
    opacity: 1;
}

.fpl-v2-content {
    padding: 2rem;
    position: relative;
    text-align: center;
}

.fpl-v2-logo-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #fff;
    color: #000;
    border-radius: 10px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 600;
    font-size: .8rem;
}

.fpl-v2-logo-tag img {
    height: 24px;
    width: auto;
}

.fpl-v2-title {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 1rem 0 0 0;
}

@media (min-width: 992px) {
    .fpl-v2-card {
        display: flex;
        align-items: center;
    }

    .fpl-v2-image {
        flex: 0 0 52%;
    }

    .fpl-v2-content {
        flex: 1;
        text-align: left;
        padding: 3rem;
    }

    .fpl-v2-logo-tag {
        position: static;
        transform: none;
        display: inline-flex; /* Sørger for at den ikke tar full bredde */
        margin-bottom: 1.5rem;
    }

    .fpl-v2-title {
        font-size: 2.5rem;
        margin: 0;
    }
}

/* ==========================================================================
   Transfer Hotlist Carousel (Seksjon 4)
   ========================================================================== */

.transfer-hotlist-section {
    padding: 2rem 0;
}

.transfer-hotlist-container {
    max-width: 1050px;
    margin: 0 auto;
    padding: 0 1rem;
}

.transfer-hotlist-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 1rem;
}

.transfer-hotlist-header .section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.transfer-hotlist-header .section-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: #004e92;
    text-decoration: none;
    white-space: nowrap;
}

.transfer-hotlist-header .section-link:hover {
    text-decoration: underline;
}

.hotlist-carousel-container {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding-bottom: 1rem; /* Plass for scrollbar */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Skjuler scrollbar */
}

.hotlist-carousel-container::-webkit-scrollbar {
    display: none;
}

.hotlist-player-card-v2 {
    flex: 0 0 280px;
    scroll-snap-align: start;
    background-color: #fff;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-radius: 10px;
}

.hotlist-player-card-v2 .player-identity {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hotlist-player-card-v2 .player-image img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.hotlist-player-card-v2 .player-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    font-family: 'Geist', SANS-SERIF;
}

.hotlist-player-card-v2 .player-transfer-details label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6c757d;
    display: block;
    margin-bottom: 0.5em;
}

.hotlist-player-card-v2 .probability-bar-bg {
    background-color: #e9ecef;
    border-radius: 50px;
    height: 20px;
    overflow: hidden;
}

.hotlist-player-card-v2 .probability-bar-fill {
    background: linear-gradient(90deg, #000428 0%, #004e92 100%);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 8px;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    box-sizing: border-box;
    text-align: right;
    white-space: nowrap;
}

@media (min-width: 992px) {
    .transfer-hotlist-section {
        padding: 3rem 0;
    }
    .hotlist-player-card-v2 {
         flex-basis: calc(25% - (1.5rem * 3 / 4));
    }
}

/* ==========================================================================
   Carousel Scroll Indicator
   ========================================================================== */

.carousel-wrapper {
    position: relative;
}

.carousel-scroll-indicator {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 80px; /* Justert bredde for fade-effekt */
    pointer-events: none;
    transition: opacity 0.3s ease; /* Lagt til overgang */
}

/* Gradient for hvit bakgrunn */ /*
.news-carousel-section .carousel-scroll-indicator {
    background: linear-gradient(to left, #ffffff 30%, rgba(255, 255, 255, 0) 100%);
}
*/
/* Gradient for grå bakgrunn */ /*
.transfer-hotlist-section .carousel-scroll-indicator {
    background: linear-gradient(to left, #f4f4f4 30%, rgba(244, 244, 244, 0) 100%);
}
*/

.carousel-arrow {
    background-color: #004e92;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: all;
    margin-right: 1rem; /* Justert for bedre plassering */
    transition: background-color 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.carousel-arrow:hover {
    background-color: #000428;
}

.carousel-arrow svg {
    width: 20px;
    height: 20px;
}

@media (min-width: 992px) {
    .carousel-arrow {
         box-shadow: none; /* Fjerner skygge når gradient er til stede */
    }
}

/* ==========================================================================
   Forside V2 - Mikset Grid Seksjon (Revidert)
   ========================================================================== */

.fp-v2-mixed-grid-section {
    padding: 0.7rem 1rem;
    background-color: #f4f4f4;
    border-top: 1px solid #e9ecef;
}

.fp-v2-mixed-grid-section .fp-v2-container {
    max-width: 1050px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mixed-grid-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

/* --- Topprad (mobiloptimalisert) --- */
.mixed-grid-top-row {
    background-color: #f7e6aa;
    padding: 15px;
}

.mixed-grid-top-row .mixed-grid-link {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mixed-grid-top-image {
    flex: 0 0 100px;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
}

.mixed-grid-top-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mixed-grid-top-content {
    padding: 0.5rem 0;
}

.mixed-grid-title {
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.25;
    margin: 0 0 0.4rem 0;
    color: #18156f;
}

.mixed-grid-tag {
    font-size: 0.8rem;
    font-weight: 500;
    color: #555;
    letter-spacing: 0.5px;
}


/* --- Bunn-område (Stor + 2 små) --- */
.mixed-grid-bottom {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* Stor artikkel - Gjenbruker stiler fra toppsaken */
.mixed-grid-large-item {
    background: linear-gradient(135deg, #000851, #001d36);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mixed-grid-large-item .top-story-title a {
    color: inherit;
}

/* Liten artikkel-wrapper */
.mixed-grid-small-items-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: stretch; /* Sørger for at grid items fyller høyden */
}

.mixed-grid-small-item {
    background-color: #ffffff;
    display: flex; /* Nøkkelen for lik høyde */
    flex-direction: column;
}

.mixed-grid-small-item .mixed-grid-link {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Sørger for at lenken fyller hele kortet */
}

.mixed-grid-small-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    border-radius: 3px;
    margin-bottom: 0.75rem;
}

.mixed-grid-small-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Lar denne boksen vokse */
    justify-content: space-between; /* Skyver taggen til bunnen */
    padding: 10px;
}

.mixed-grid-title-small {
    font-size: 1.5em;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 0.4rem 0;
}

.mixed-grid-tag-small {
    font-size: 0.75rem;
    font-weight: 500;
    color: #555;
    margin-top: 0.5rem; /* Gir litt luft over taggen */
}


/* --- Desktop & Større Skjermer --- */
@media (min-width: 768px) {
    .mixed-grid-top-image {
        flex-basis: 220px;
    }

    .mixed-grid-title {
        font-size: 1.8rem;
    }

    .mixed-grid-bottom {
        grid-template-columns: 2fr 1fr;
    }

    .mixed-grid-small-items-wrapper {
        display: flex;
        flex-direction: column;
    }
}

/* ==========================================================================
   Sticky Mobile Navigation
   ========================================================================== */
.sticky-mobile-container {
    display: none; /* Skjult på desktop som standard */
}

@media (max-width: 768px) {
    .sticky-mobile-container {
        display: block;
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 2147483647;
        width: 100vw;
        background: #000428; /* Mørkeblå bakgrunn */
        border-top: 1px solid #004e92; /* Mørkere blå kantlinje */
    }

/* Legg til overgang for jevn animasjon */
    .sticky-mobile-container {
        transition: transform 0.3s ease-in-out;
    }

    /* Klassen som skjuler menyen ved å skyve den ned */
    .sticky-mobile-container.is-hidden {
        transform: translateY(100%);
    }

    .mobile-nav-bar {
        width: 100%;
        overflow-x: auto;
        font-weight: 500;
        font-size: 10px;
        line-height: 1.2;
        padding-bottom: 10px;
    }

    .mobile-nav-list {
        display: flex;
        align-items: stretch;
        justify-content: space-between;
        width: 100%;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .mobile-nav-item {
        flex: 1; /* Gir lik bredde til hvert element */
        text-align: center;
    }

    .mobile-nav-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        padding: 6px 4px;
        text-decoration: none;
        color: #ffffff; /* Hvit tekst */
        font-family: 'Inter', sans-serif;
    }
    
    .mobile-nav-link:hover,
    .mobile-nav-link:focus {
        background-color: #004e92;
    }

    .mobile-nav-icon {
        flex: none;
        width: 24px;
        height: 24px;
        margin-bottom: 2px;
        color: #FFD700; /* Gullfarge for ikoner */
    }

    .mobile-nav-icon svg {
        max-width: 100%;
        max-height: 100%;
        fill: currentColor; /* Sørger for at SVG-en arver fargen */
    }
    
    .mobile-nav-text {
        font-size: 9px; /* Mindre tekststørrelse */
    }
}

/* ==========================================================================
   Arkivside V3 - Ny Layout
   ========================================================================== */

.archive-v3-container {
    max-width: 1050px; /* Samme bredde som forside-innhold */
    margin: 0 auto;
    padding: 2rem 1rem;
}

.archive-v3-header {
    background-color: #1c1e71;
    padding: 1rem;
    margin-bottom: 2.5rem;
    margin-left: 15px;
    margin-right: 15px;
}

.archive-v3-bottom-grid .fp-post-content {
    padding:8px;
}

.archive-v3-header-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.archive-v3-logo-wrapper {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.archive-v3-title {
    font-family: 'Geist', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 0.25em 0;
    line-height: 1.1;
    color: #fff;
}

.archive-v3-description {
    color: #495057;
}

/* Rutenett for de resterende artiklene */
.archive-v3-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* To kolonner på mobil */
    gap: 1.5rem;
    margin: 15px;
}

/* Gjenbruker forside-stil for konsistens */
.archive-v3-bottom-grid .fp-post-item {
    background-color: #ffffff;
    border-radius: 2px;
    overflow: hidden;
}

.archive-v3-bottom-grid .fp-post-image {
    aspect-ratio: 16 / 10;
}

.archive-v3-bottom-grid .fp-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.archive-v3-bottom-grid .fp-post-title {
    font-size: 1.2rem;
    line-height: 1.3;
    color: #000;
}

/* Desktop-justeringer */
@media (min-width: 992px) {
    .archive-v3-bottom-grid {
        grid-template-columns: 1fr 1fr 1fr; /* Tre kolonner på desktop */
    }

    .archive-v3-title {
        font-size: 3rem;
    }
}

/* ==========================================================================
   Stil for 404 (Side Ikke Funnet)
   ========================================================================== */

.error-404-container {
    max-width: 1100px;
    margin: 2em auto 4em auto;
    padding: 2em 15px;
    text-align: center; /* Sentrerer på mobil */
}

.error-404-main {
    display: flex;
    flex-direction: column; /* Stabler vertikalt på mobil */
    align-items: center;
    gap: 2em;
}

.error-404-content {
    max-width: 500px;
}

.error-404-title {
    font-family: 'Geist', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 0.5em 0;
    color: #0a0a0a;
}

.error-404-text {
    font-size: 1.1rem;
    color: #495057;
    line-height: 1.7;
}

.error-404-button {
    display: inline-block;
    margin-top: 1.5em;
    background-color: #0a0a0a;
    color: #ffffff;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.error-404-button:hover {
    background-color: #333;
    transform: translateY(-2px);
}

.error-404-image-wrapper {
    max-width: 450px;
    width: 100%;
}

.error-404-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Desktop-justeringer */
@media (min-width: 768px) {
    .error-404-main {
        flex-direction: row; /* Side om side på større skjermer */
        justify-content: space-between;
        text-align: left; /* Venstrejusterer teksten */
    }

    .error-404-content {
        flex-basis: 50%;
    }

    .error-404-image-wrapper {
        flex-basis: 45%;
    }

    .error-404-title {
        font-size: 3.5rem;
    }
}