:root {
    --page-max-width: 1230px;
    --page-min-width: 260px;
    --page-padding-x: 45px;
}


body {
    font-family: Inter;
    min-width: var(--page-min-width);

    overflow: auto;
    overflow-x: hidden;

}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
    
}


main {

    --border: #e2e8f0;
    --text: #0b1220;
    --muted: #6b7280;

        
    /* ===== DEL 2: HERO SECTION ===== */
    .hero {
        background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
        padding: 80px 16px;
        text-align: center;
        border-bottom: 1px solid var(--border);
        line-height: 1.5;
    }

    

    .hero_content {
        max-width: 700px;
        margin: auto;
    }

    .hero h1 {
        font-size: 42px;
        font-weight: 800;
        letter-spacing: -1.5px;
        margin-bottom: 16px;
        color: #0f172a;
    }

    .hero p {
        font-size: 18px;
        color: #64748b;
        margin-bottom: 30px;
    }

    .hero_btns {
        display: flex;
        justify-content: center;
        gap: 12px;
    }

    .hero_btns .btn-hero {
        padding: 12px 28px;
        border-radius: 10px;
        font-weight: 600;
        cursor: pointer;
        transition: .2s;
        font-size: 14px;
        border: 1px solid var(--border);
        background: #fff;
    }

    .hero_btns .btn-hero.primary {
        background: #2563eb;
        color: #fff;
        border: none;
    }

    .hero_btns .btn-hero.primary:hover {
        background: #1d4ed8;
        transform: translateY(-1px);
    }

    /* ===== NY HERO: INTRO (COVER SECTION) ===== */
    .intro {
        background: var(--bg);
        padding: 80px 0px;
        border-bottom: 1px solid rgba(15,23,42,0.08);

        .btn {
            padding: 10px 16px;
            border-radius: 12px;
            border: 1px solid rgba(15,23,42,0.08);
            background: white;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: .2s;
            display: flex;
            align-items: center;
            justify-content: center;
     
        
            
            
            
        }

        .btn.primary {
            background: #111827;
            color: white;
            border: none;
            box-shadow: 0 6px 18px rgba(0,0,0,.12);
            max-width: 148px;
            width: 100%;
        }
    }

    .intro_inner {
        max-width: var(--page-max-width);
        margin: auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 40px;
        padding: 48px var(--page-padding-x) 28px;
    }

    .intro_text {
        max-width: 550px;
    }

    .intro_text h1 {
        font-size: 48px;
        font-weight: 800;
        letter-spacing: -2px;
        line-height: 1.1;
        margin-bottom: 20px;
        color: var(--text);
    }

    .intro_text p {
        font-size: 18px;
        color: var(--muted);
        margin-bottom: 32px;
        line-height: 27px;
        max-width: 500px;
    }

    .intro_ui {
        flex: 1;
        height: 438px;
        max-width: 600px;
        border-radius: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        color: white;
        border: 1px solid var(--line);
        background: url('/images/cover.avif');
        background-size: cover;
        background-position: bottom;
    }



    /*Category block seciton*/

    .categories-block {
        /* Scoped Variables */
        --text-main: #0f172a;
        --text-sub: #475569;
        --brand-accent: #2563eb;
        --border-color: #e2e8f0;
        --bg-page: #f8fafc;

        /* Container Styles */
        display: none;
        flex-direction: column;
        gap: 12px;
        
        padding-top: 21px;
        padding-bottom: 23px;
        margin: 0px var(--page-padding-x);
        border: 1px solid #e2e8f0;
        border-left: none;
        border-right: none;
        border-bottom: none;
        
        
   
        font-family: "Inter", sans-serif;

 
        

        & .categories-label {
            font-size: 0.8rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: var(--text-sub);
        }

        & .categories-list {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        & .category-pill {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 8px 14px;
            background-color: #ffffff;
            border: 1px solid var(--border-color);
            border-radius: 50px;
            color: var(--text-main);
            text-decoration: none;
            font-size: 0.875rem;
            font-weight: 500;
            transition: all 0.2s ease;

            /* 
            Removed the 16px and blue color overrides. 
            The icons will now correctly use the 24px size from your HTML attributes 
            and the dark color from the text.
            */
            & svg {
                display: block;
                stroke:currentcolor;
                stroke: #0078ff;
            }

            &:hover {
                border-color: var(--brand-accent);
                background-color: var(--bg-page);
            }
        }

        /* Desktop grid behavior */
        @media (min-width: 768px) {
            grid-column: 1 / -1;
        }
    }


    /* ===== DEL 3: MAIN CONTAINER GRID ===== */
    .listings-section {
        max-width: var(--page-max-width);
        margin: 48px auto;
        margin-top: 34px;
        padding: 0px calc(var(--page-padding-x) - 8px);

        .section_header {
            padding-left: 4px;
            margin-bottom: 21px;
        }
        
    }

    .section_title {
        font-size: 19.5px;
        font-weight: 600;
        margin-bottom: 7px;
    }

    .section_subtitle {
            
        color: #777773;
        font-size: 14px;
        margin-top: 9px;
        letter-spacing: 0.2px;
    }





}



#loadMoreBtn {
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid rgba(15,23,42,0.08);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
    margin-top: 35px;
    font-family: inherit;
    background: #232e3c;
    color: white;

    &:hover {
        opacity: 95%;
    }
}


/* ===== CIRCULAR AUTHORITY HUB ===== */
.circular-hub {
    background-color: #ffffff;
    padding: 120px 0px;
    border-top: 1px solid #e2e8f0;
    font-family: 'Inter', sans-serif;
}

/* Säkerställer att länkar i texten ser proffsiga ut */
.circular-hub .hub-seo-grid a {
    color: #4281ff;
    text-decoration: none;
}

.circular-hub a:hover {
    color: #2563eb; /* Din accentblå färg vid hover */
}

.hub-container {
    max-width: var(--page-max-width);
    margin: 0 auto;
    padding: 0px var(--page-padding-x);
}

.hub-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;

}

/* Mission Side (Left) */
.hub-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #2563eb;
    margin-bottom: 20px;
}

.hub-mission h2 {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: #0b1220; /* Din --text variabel */
    margin-bottom: 24px;
}

.hub-mission p {
    font-size: 18px;
    line-height: 1.6;
    color: #6b7280; /* Din --muted variabel */
    margin-bottom: 40px;
}

.mission-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.m-feat {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.m-feat i {
    color: #059669;
    font-size: 18px;
    margin-top: 3px;
}

.m-feat span {
    font-size: 15px;
    color: #0b1220;
    line-height: 1.5;
}

.m-feat strong {
    font-weight: 700;
}

/* SEO Grid (Right) */
.hub-seo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.seo-card {
    padding: 30px;
    background: #f8fafc;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
}

.seo-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #0b1220;
}

.seo-card p {
    font-size: 14px;
    line-height: 1.6;
    color: #6b7280;
}

/* Category Nav (Bottom Bar) */
.hub-category-nav {
    border-top: 1px solid #e2e8f0;
    padding-top: 40px;
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.nav-title {
    font-size: 13px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hub-cat-list {
    display: flex;
    gap: 20px;
    list-style: none;
    flex-wrap: wrap;
    padding: 0;
}

.hub-cat-list a {
    font-size: 15px;
    font-weight: 600;
    color: #0b1220;
    text-decoration: none;
    transition: color 0.2s;
}

.hub-cat-list a:hover {
    color: #2563eb;
}






/* ============================================================
   RESPONSIVE OVERRIDES (Exact Selector Matching)
   ============================================================ */

/* 1. LARGE TABLETS / SMALL LAPTOPS (max-width: 1100px) */


/* 2. TABLETS & HUB LAYOUT (max-width: 1024px) */
@media (max-width: 1024px) {
    /* Hub selectors are flat in your original CSS, not inside main */
    .hub-layout { 
        grid-template-columns: 1fr; 
        gap: 60px; 
    }
    .hub-mission h2 { 
        font-size: 32px; 
    }
    .hub-seo-grid { 
        grid-template-columns: 1fr; 
    }

}

/* 3. SMALL TABLETS (max-width: 850px) */
@media (max-width: 850px) {
 
    .hub-layout {
        gap: 40px;
    }
}




/* ============================================================
   MOBILE HERO — EDITORIAL / FLOATING CTA
   ============================================================ */
@media (max-width: 1150px) {

    main .intro {
        position: relative;

        padding: 0;
        min-height: auto;

        display: block;

        background: #fff;

        border: 0;
        overflow: hidden;
    }


    /* ========================================================
       IMAGE
       ======================================================== */

    main .intro::before {
        content: '';

        display: block;

        width: 100%;
        height: 58svh;
        max-height: 260px;

        background:
            url('/images/cover.avif')
            center / cover no-repeat;
        background-position: center 18%;
    }


    /* No overlay whatsoever */
    main .intro::after {
        display: none;
    }


    /* ========================================================
       CONTENT
       ======================================================== */

    main .intro_inner {
        position: relative;

        background: #fff;

     
    }


    /* ========================================================
       FLOATING CIRCLE
       ======================================================== */

    main .intro_inner::before {
        content: '↓';

        position: absolute;

        top: -31px;
        left: 50%;

        width: 62px;
        height: 62px;

        transform: translateX(-50%);

        display: flex;
        align-items: center;
        justify-content: center;

        border-radius: 50%;

        background: var(--blue, #1769ff);
        

        color: #fff;

        font-size: 22px;
        font-weight: 400;

        border: 6px solid #fff;

        box-shadow:
            0 8px 25px rgba(0, 0, 0, 0.15);
    }


    /* ========================================================
       TEXT
       ======================================================== */

    main .intro_text {
        max-width: 620px;
    }


    main .intro_text h1 {
        margin: 0;

        color: #111;

        font-size: clamp(34px, 9vw, 47px);

        line-height: 1.02;

        letter-spacing: -0.05em;

        font-weight: 800;

        text-wrap: balance;
    }


    main .intro_text p {
        max-width: 500px;

        margin: 15px 0 0;

        color: #6a6a6a;

        font-size: 16px;

        line-height: 1.5;
    }


    /* ========================================================
       CTA
       ======================================================== */

    main .intro_actions {
        display: flex;
        width: 100%;
        max-width: 500px;
        margin-top: 23px;
        gap: 9px;
    }


    main .intro_actions .btn {
        flex: 1;

        min-height: 54px;

        padding: 15px 18px !important;

        border-radius: 12px;

        justify-content: center;

        font-size: 15px;

        font-weight: 700;

        
    }


    main .intro_actions .btn.primary {
        background: var(--blue, #1769ff) !important;

        color: #fff !important;

        border: 1px solid var(--blue, #1769ff);


    }


    main .intro_actions .btn:not(.primary) {
            background-color: #f1f5f9;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    }


    main .intro_ui {
        display: none;
    }

    main .intro .btn.primary {
        max-width: none;
    }

    .categories-block {
        display: flex !important;
    }
}


/* ============================================================
   SMALL PHONES
   ============================================================ */
@media (max-width: 400px) {

    main .intro::before {
        height:36svh;
    }

    main .intro_inner {
        
    }

    main .intro_inner::before {
        width: 56px;
        height: 56px;

        top: -28px;

        border-width: 5px;
    }

    main .intro_text h1 {
        font-size: clamp(31px, 9.5vw, 40px);
    }

 

    main .intro_actions {
        flex-direction: column;
    }
}



/* 4. MOBILE STANDARD (max-width: 600px) */
@media (max-width: 600px) {

    :root {
        --page-padding-x: 23px;
    }

    main .listings-section {
        margin: 13px auto;
        
    }

    .section_header {
        margin-bottom: 20px !important;
    }


    
    
}

@media (max-width: 420px) {
    :root {
        --page-padding-x: 20px;
    }
}


