:root {
    --primary-body-background-color: white;
    --primary-header-background-color: #002640;
    --primary-header-color: #002640;
    --primary-text-color: #002640;
}

body {

    font-family: "Montserrat", Arial, sans-serif;
    font-weight: 400;
    line-height: 1.8;
    font-size: 15px;
    overflow-x: hidden;
    background-color: var(--primary-body-background-color);
    color: var(--primary-text-color);
}

img {
    width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5 {
    color: var(--primary-text-color);
}

footer h1, footer h2, footer h3, footer h4, footer h5 {
    color: whitesmoke;
}

footer .menu-item > a {
    color:white;
}

footer {
    min-height: 25vh;
}

footer .footer-heading, h2.services  {
    font-size: 16px;
    margin-bottom: 30px;
    font-weight: 600;
    text-transform: uppercase;
}

footer a.nav-link {
    padding-right: 1rem !important;
    padding-left: 0 !important;
}

.form-group {
    margin-bottom: 1rem;
}

/*
.nav-link {
    color: #1f2937 !important;
}
*/

.text-xs {
    font-size:0.75rem;
}


/*
    Grid system
 */
.wp-block-post-template.is-layout-grid.columns-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card .wp-block-post-featured-image img {
    /* Gjør alle SVG hvite */
    /* filter: brightness(0) invert(1); */
}

.service-card .wp-block-post-featured-image img {
    object-fit: contain !important; /* Viser hele ikonet uten beskjæring */
    padding: 1rem; /* Luft rundt ikonet */
    border-radius: 0% !important;

    /* Hvit farge på SVG */
    /* filter: brightness(0) invert(1);*/
}


/* Style "Les mer" knappen - SR Gull */
.service-card .wp-block-post-excerpt__more-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #F9D48C; /* SR Gull */
    color: #324A5D; /* SR Blå tekst */
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.service-card .wp-block-post-excerpt__more-link:hover {
    background-color: #f7c765; /* Litt mørkere gull på hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.service-card .wp-block-post-featured-image {
    background-color: #F9D48C !important; /* SR Gull */
    border-radius: 50% !important;
}

/* Grid container - stretch items */
.wp-block-post-template.is-layout-grid {
    align-items: stretch; /* Strekker alle items til samme høyde */
}

/* Kortene tar full høyde */
.service-card {
    display: flex;
    flex-direction: column;
    height: 100%; /* Tar full høyde av grid-cellen */
}

/* Push "Les mer" til bunnen */
.service-card .wp-block-post-excerpt {
    margin-top: auto; /* Skyver excerpt/knapp til bunnen */
}

.service-header {
    padding-bottom: 0.25rem;
}

.service-icon img {
    max-width: 64px;
    height: auto;
    border-radius: 8px;
}
