*,
*::before,
*::after {
    box-sizing: border-box;
}


body {
    background: #0F172A;
    color: white;
    margin: 0;
    padding: 0;
}


/* HEADER */


.site-header {
    background: #0F172A;
    text-align: center;
    padding: 2rem 1rem;
}


.logo {
    width: min(90%, 800px);
    height: auto;
    display: block;
    margin: 0 auto;
}



/* NAVIGATION */


.navbar {
    background: #a8e3ea;

    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    gap: 2rem;
    padding: 24px;

    margin-bottom: 15px;

    font-family: "Montserrat", sans-serif;
}


.navbar a {
    color: #0F172A;
    text-decoration: none;

    font-size: 20px;

    position: relative;
}


.navbar a::after {
    content: "";

    position: absolute;

    width: 0;
    height: 2px;

    background: #0F172A;

    bottom: -6px;
    left: 0;

    transition: width .3s ease;
}


.navbar a:hover::after {
    width: 100%;
}




/* LAYOUT */


.innehall {

    max-width: 1400px;

    margin: 0 auto;

    padding: 15px;

    display: grid;

    gap: 1.5rem;
}



.news-card {

    display: block;

    text-decoration: none;

    color: inherit;

}



/* TEXT */


p {

    color: #D1D5DB;

    font-family: "Poppins", sans-serif;

    font-size: 16px;

}



.date {

    color: #D1D5DB;

    font-family: "Montserrat", sans-serif;

    font-size: 14px;

}



h2 {

    margin-top: 0;

}




/* HUVUDNYHET */


.main-news {

    border-radius: 8px;

    overflow: hidden;

    border: 2px solid rgba(168, 227, 234, .3);

    box-shadow: 0 15px 40px rgba(0, 0, 0, .4);

    display: flex;

    flex-direction: column;

}



.main-news-image {

    height: clamp(280px, 40vw, 420px);

}



.main-news-text {

    padding: 1rem;

}



.main-heading {

    color: white;

    font-family: "Montserrat", sans-serif;

    font-size: clamp(1.8rem, 5vw, 2rem);

}





/* MELLANSTORA NYHETER */


.large-grid {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 1.5rem;

}



.large-news {

    display: flex;

    flex-direction: column;

    height: 100%;


    border-radius: 8px;

    overflow: hidden;

    border: 2px solid rgba(168, 227, 234, .3);

    box-shadow: 0 15px 40px rgba(0, 0, 0, .4);

}



.large-news-image {

    height: 250px;

}



.large-news-text {

    padding: 1rem;

    display: flex;

    flex-direction: column;

    flex: 1;

}



.large-news-heading {

    color: white;

    font-family: "Montserrat", sans-serif;

    font-size: clamp(1.2rem, 4vw, 1.5rem);

    line-height: 1.3;

}




/* SMÅ NYHETER */


.small-grid {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 1.5rem;

}



.small-news {

    display: flex;

    flex-direction: column;

    height: 100%;


    border-radius: 8px;

    overflow: hidden;

    border: 2px solid rgba(168, 227, 234, .3);

    box-shadow: 0 15px 40px rgba(0, 0, 0, .4);

}



.small-news-image {

    height: 220px;

}



.small-news-text {

    padding: 1rem;

    display: flex;

    flex-direction: column;

    flex: 1;

}



.small-news-heading {

    color: white;

    font-family: "Montserrat", sans-serif;

    font-size: 1.1rem;

    line-height: 1.3;

}





/* BILDER */


img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

    transition: transform .4s ease;

}



.main-news:hover img,
.large-news:hover img,
.small-news:hover img {

    transform: scale(1.05);

}




/* FOOTER */


.footer {

    background: #a8e3ea;

    display: flex;

    justify-content: space-between;

    align-items: center;

    height: 200px;

    padding: 60px;

    margin-top: 40px;

}



.copy {

    color: #0F172A;

    font-family: "Montserrat", sans-serif;

    font-size: 18px;

}



.social-media {

    display: flex;

    gap: 12px;


}




/* TABLET */


@media(max-width:900px) {


    .large-grid {

        grid-template-columns: 1fr;

    }



    .small-grid {

        grid-template-columns: repeat(2, 1fr);

    }

}




/* MOBIL */


@media(max-width:600px) {


    .navbar {

        flex-direction: column;

        align-items: center;

    }



    .small-grid {

        grid-template-columns: 1fr;

    }



    .footer {

        flex-direction: column;

        justify-content: center;

        text-align: center;

        height: auto;

        gap: 1rem;

        padding: 2rem;

    }

}