/* ============================================= */
/* 1. RESET & GRUNNSTILLINGER                    */
/* ============================================= */

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

html,
body{
    min-height:100%;
}

body{
    min-height:100vh;
    font-family:Arial, Helvetica, sans-serif;
    line-height:1.6;
    color:#262626;
//    background:#F8F7F4;
    background:#fdfaf5;
}

.container{
    max-width:1000px;
    margin:0 auto;
    padding:0 25px;
}

a{
    color:#262626;
    text-decoration:none;
}

a:hover{
    text-decoration:underline;
}


/* ============================================= */
/* 2. TOPPMENY                                   */
/* ============================================= */

.top-header{
    background:#F5F2ED;
    padding:20px 0;
    border-top: 0px solid rgba(0,0,0,.18);
    border-bottom: 1px solid rgba(0,0,0,.18);
}

.main-nav ul{
    list-style:none;
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:24px;
}

.main-nav li a{
    font-size:15px;
    font-weight:400;
    color:#262626;
}


/* ============================================= */
/* 3. FELLES SEKSJONER                           */
/* ============================================= */

.news-section{
    padding:70px 0;
}

.section-title{
    font-size:2rem;
    font-weight:400;
    color:#262626;
    padding-bottom:18px;
    margin-bottom:40px;
    border-bottom:1px solid #3A3A3A;
}


/* ============================================= */
/* NYHETSGRID                                    */
/* ============================================= */

.news-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}

.news-card{
    background:#FFFFFF;
}

.news-card img{
    width:100%;
    aspect-ratio:16/9;
    object-fit:cover;
    display:block;
    border:1px solid #3A3A3A;
}

.news-card h4{
    margin-top:18px;
    font-size:1.05rem;
    font-weight:400;
    line-height:1.45;
}

.news-card h4 a{
    color:#262626;
}

.news-card h4 a:hover{
    text-decoration:underline;
}


/* ============================================= */
/* QUICK LINKS                                   */
/* ============================================= */

.quick-links-bar{
    margin:35px 0;
    padding:18px 0;
    border-top:1px solid #3A3A3A;
    border-bottom:1px solid #3A3A3A;
    background:transparent;
}

.quick-links-bar ul{
    list-style:none;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:28px;
    overflow-x:auto;
    white-space:nowrap;
}

.quick-links-bar a{
    font-size:15px;
    font-weight:400;
    color:#262626;
}

.quick-links-bar a:hover{
    text-decoration:underline;
}


/* ============================================= */
/* PIL MELLOM SEKSJONER                          */
/* ============================================= */

.center-divider{
    display:flex;
    justify-content:center;
    margin:35px 0;
}


/* ============================================= */
/* ARTIKKELKORT                                  */
/* ============================================= */

.post-item{

    background:#FFFFFF;

    padding:55px;

    margin-bottom:50px;

    border:1px solid #D8D8D8;

    box-shadow:0 2px 8px rgba(0,0,0,.04);

}

.post-header{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:20px;
}

.post-header h3{
    flex:1;
    margin:0;
}

.post-item h3{
    font-size:2rem;
    font-weight:400;
    margin-bottom:18px;
    color:#262626;
}

.post-item h3 a{
    color:#262626;
}

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

.post-meta{
    display:flex;
    flex-direction:column;
    gap:4px;
    margin-bottom:25px;
    font-size:.9rem;
    color:#666666;
}

.tags{
    color:#666666;
}


/* ============================================= */
/* BILDER                                        */
/* ============================================= */

.banner-img{
    width:100%;
    display:block;
    margin-bottom:30px;
    border:1px solid #D8D8D8;
}

/* ============================================= */
/* 5. FOOTER                                     */
/* ============================================= */

.site-footer{
    margin-top:70px;
    padding:28px 0;
    background:#F2F1EE;
    border-top:1px solid #3A3A3A;
}

.footer-grid{
    max-width:1000px;
    margin:0 auto;
    padding:0 25px;
    display:flex;
    justify-content:space-between;
    gap:40px;
    align-items:flex-start;
}

.footer-grid h4{
    margin-bottom:15px;
    font-size:1rem;
    font-weight:400;
    color:#262626;
}

.category-list{
    list-style:none;
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:10px 25px;
}

.category-list a{
    color:#262626;
    font-size:15px;
}

.category-list a:hover{
    text-decoration:underline;
}


/* ============================================= */
/* 6. ADMIN                                      */
/* ============================================= */

.admin-bar{
    display:flex;
    justify-content:flex-end;
    gap:10px;
    margin-bottom:30px;
}

.btn{
    display:inline-block;
    padding:8px 16px;
    border:1px solid #3A3A3A;
    background:#FFFFFF;
    color:#262626 !important;
    font-size:14px;
    font-weight:400;
    cursor:pointer;
    transition:.15s ease;
}

.btn:hover{
    background:#F5F2ED !important;
    text-decoration:none;
}

.btn-edit{

    border-color:#1D5FBF !important;
    color:#1D5FBF !important;

}

.btn-edit:hover{

    background:#EDF4FD !important;

}

.btn-delete{

    border-color:#B94040 !important;
    color:#B94040 !important;

}

.btn-delete:hover{

    background:#FDEEEE !important;

}


/* ============================================= */
/* 7. TABELLER                                   */
/* ============================================= */

.article-content table{

    width:100%;
    border-collapse:collapse;
    margin:35px 0;
    background:#FFFFFF;

}

.article-content th,
.article-content td{

    border:1px solid #CFCFCF;
    padding:12px 14px;
    text-align:left;

}

.article-content th{

    background:#F5F5F5;
    font-weight:600;
    color:#262626;

}

.article-content tr:nth-child(even){

    background:#FAFAFA;

}

.article-content tr:hover{

    background:#F3F3F3;

}


/* ============================================= */
/* 8. SITATBOKS                                  */
/* ============================================= */

.quote-box{

    max-width:900px;
    margin:40px auto;

    padding:30px;

    background:#262626;

    color:#FFFFFF;

    border:1px solid #3A3A3A;

    font-family:Georgia, serif;

    font-size:1.15rem;

    line-height:1.8;

    text-align:center;

}


/* ============================================= */
/* 9. RESPONSIV                                  */
/* ============================================= */

@media (max-width:900px){

.news-grid{

grid-template-columns:1fr 1fr;

}

.footer-grid{

flex-direction:column;

}

.category-list{

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

}

.post-item{

padding:40px;

}

}


@media (max-width:768px){

.top-header{

padding:20px 0;

}

.main-nav ul{

gap:16px;

}

.section-title{

font-size:1.7rem;

}

.news-section{

padding:50px 0;

}

.news-grid{

grid-template-columns:1fr;

gap:35px;

}

.post-item{

padding:30px;

margin-bottom:35px;

}

.quick-links-bar ul{

gap:18px;

justify-content:flex-start;

}

}


@media (max-width:500px){

.container{

padding:0 18px;

}

.main-nav li a{

font-size:13px;

}

.post-item{

padding:22px;

}

.post-item h3{

font-size:1.5rem;

}

.section-title{

font-size:1.5rem;

}

.category-list{

grid-template-columns:1fr;

}

.footer-grid{

padding:0 18px;

}

.quote-box{

padding:20px;
font-size:1rem;

}

}





