* {
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
}

/* --- GRUNDSTYLING --- */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 100%;
    background-color: rgb(204, 236, 255);
    /* width: 1000px;
    margin: auto; */
}

header {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1000px;
    padding: 0 10px;
    margin: auto;
    /* background-color: lightgray; */
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* padding: 1rem; */
    /* background-color: #bbb; */
    color: white;
    position: relative;
}

.logo {
    padding: 8px 0 5px 0;
}

.logo img {
    display: flex;
    max-width: 357px;
}

/* --- Nav-länkar (Dölj dropdown på mobil initialt) --- */
.nav-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1rem;
}

.nav-links a {
    text-decoration: none;
    font-size: 0.9rem;
    margin: 0;
    padding: 0;
    color: black;
    display: block;
    /* padding: 0.5rem; */
}

/* Göm hamburgerknappen på breda skärmar */

.menu-toggle {
    display: none;
    background: none;
    border: none;
    /* color: white; */
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- MOBILSTYLING (< 768px) --- */
@media screen and (max-width: 768px) {
    .navbar {
        flex-direction: column; /* Stapla logga och meny */
        /* align-items: flex-start; */
    }

    .menu-toggle {
        display: block; /* Visa knappen */
        font-size: 0.9rem;
        padding: 0.7rem;
        margin-bottom: 1rem;
        width: 95%;
        background-color: #ddd;
        /* position: absolute;
        top: 1rem;
        right: 1rem; */
    }

    .menu-toggle.active {
        display: flex;
        border: solid black 2px;
        border-radius: 4px;
    }

    .nav-links {
        display: none; /* Dölj menyn som standard */
        width: 100%;
        /* margin-top: 1rem; */
        margin-bottom: 1.2rem;
    }

    .nav-links.active {
        display: flex; /* Visa menyn när togglad */
    }

    .nav-links ul {
        flex-direction: column; /* Vertikal meny */
        width: 100%;
    }

    .nav-links li {
        border-bottom: 1px solid #ddd;
        margin: 0 0 0 1.2rem;
        padding: 0 0 1rem 1rem;
    }
}

/* --- DESKTOPSTYLING (> 768px) --- */
@media screen and (min-width: 769px) {
    .nav-links {
        display: flex !important; /* Säkerställ att den syns */
    }

    .nav-links li {
        padding: 0 4px;
    }
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

}

section {
    background-image: url('Bilder/sunset_wide.png');
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    height: 549px;
    /* background-color: lightgray; */
}

.intro-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1000px;
    /* padding: 0 10px; */
    /* background-color: lightskyblue; */
}

.intro-box #p1 {
    display: flex;
    font-size: 3rem;
    padding: 0px 20px 10px 20px;
    margin: 80px 0 20px 0;
    border-radius: 10px;
    text-align: center;
    color: white;
    background-color: rgba(94, 105, 125 ,0.8);
}

.intro-box #p2 {
    display: flex;
    font-size: 1.2rem;
    padding: 10px 5px;
    border-radius: 10px;
    margin: 0 28px;
    text-align: center;
    color: white;
    background-color: rgba(94, 105, 125 ,0.8);
}

article {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    padding: 5px;
    max-width: 1000px;
    /* background-color: lightgray; */
}

article .aktuellt {
    font-size: 27px;
    color: rgb(1, 1, 112);
    padding: 20px 0 20px 25px;
}

article .rubrik {
    font-size: 18px;
    color: rgb(40, 40, 177);
    padding: 0 20px;
}

.text-box {
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    text-align: center;
    padding: 5px;
    max-width: 1000px;
    /* background-color: lightskyblue; */
}

.text-box p {
    display: flex;
    text-align: left;
    /* align-content: center;
    justify-content: center; */
    padding: 15px;
    /* background-color: pink; */
}

/* --- SIDFOT --- */
.sidfot {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0 20px 0;
}

.sidfot h4 {
    font-size: 1.4rem;
    padding: 5px;
}

.sidfot a {
    text-decoration: none;
    font-size: 0.9rem;
    margin: 0;
    padding: 5px;
    color: black;
}