/* =========================================================
   THE CORTS FOUNDATION
   ========================================================= */


/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

html {
    min-height: 100%;
}


/* =========================================================
   BODY
   ========================================================= */

body {
    min-height: 100vh;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.55;

    color: #333;

    background:
        linear-gradient(
            to bottom,
            #ffffff 0,
            #ffffff 250px,
            #4d62bd 250px,
            #4d62bd 565px,
            #ffffff 565px,
            #ffffff 100%
        );

    background-repeat: no-repeat;
}


/* =========================================================
   PAGINA
   ========================================================= */

#page {
    width: 1024px;
    max-width: calc(100% - 30px);

    margin: 0 auto;
}


/* =========================================================
   HEADER
   ========================================================= */

#header {
    width: 100%;

    display: flex;
    justify-content: center;
    align-items: flex-start;

    padding: 0 0 20px;
}

.logo {
    display: block;

    width: 958px;
    max-width: 100%;
    height: auto;

    text-decoration: none;
}

.logo img {
    display: block;

    width: 100%;
    max-width: 958px;
    height: auto;

    margin: 0 auto;
}


/* =========================================================
   CONTENT
   ========================================================= */

#content {
    width: 100%;

    padding: 18px 20px 35px;

    background: #ffffff;

    border: 1px solid #d4d4d4;
    border-radius: 9px;

    box-shadow:
        0 1px 6px rgba(0, 0, 0, 0.22);
}


/* =========================================================
   WELKOMSTBLOK
   ========================================================= */

.intro-block {
    width: 100%;

    margin: 0 0 25px;
    padding: 24px 28px;

    background:
        linear-gradient(
            to bottom,
            #ffffff 0%,
            #fafafa 100%
        );

    border: 1px solid #d5d9e3;
    border-left: 5px solid #405694;

    border-radius: 7px;

    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.10);
}

.intro-block h1 {
    margin: 0 0 14px;

    color: #2f467e;

    font-size: 27px;
    line-height: 1.25;
    font-weight: 700;
}

.intro-block h2 {
    margin: 0 0 12px;

    color: #2f467e;

    font-size: 23px;
    line-height: 1.3;
    font-weight: 700;
}

.intro-block h3 {
    margin: 20px 0 8px;

    color: #2f467e;

    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
}

.intro-block p {
    margin: 0 0 15px;

    color: #444;

    font-size: 15px;
    line-height: 1.65;
}

.intro-block p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   AFBEELDINGEN IN ARTIKELEN
   ========================================================= */

.article-image {
    float: right;

    width: auto;
    max-width: 600px;
    height: auto;

    margin: 0 0 15px 20px;

    display: block;
}


/* =========================================================
   WELKOMSTAFBEELDING - OUDE CLASS
   ========================================================= */

.welkomimage {
    float: right;

    width: 130px;
    height: auto;

    margin: 0 0 15px 20px;

    display: block;
}

.intro-block p::after {
    content: "";
    display: table;
    clear: both;
}


/* =========================================================
   ARTIKELAFBEELDING LINKS
   ========================================================= */

.article-image-left {
    width: 300px;
    max-width: 100%;
    height: auto;
}


/* =========================================================
   GROTE PROJECTEN - HOMEPAGE
   ========================================================= */

.feature-grid {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 25px;

    margin: 0;
}


/* =========================================================
   GROTE PROJECTKAART - HOMEPAGE
   ========================================================= */

.feature-card {
    overflow: hidden;

    display: flex;
    flex-direction: column;

    min-width: 0;

    background: #ffffff;

    border: 1px solid #d2d6df;
    border-radius: 7px;

    box-shadow:
        0 2px 7px rgba(0, 0, 0, 0.12);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-2px);

    box-shadow:
        0 5px 14px rgba(0, 0, 0, 0.16);
}


/* =========================================================
   GROTE PROJECTAFBEELDING
   ========================================================= */

.feature-image {
    width: 100%;
    height: 230px;

    overflow: hidden;

    background: #eeeeee;
}

.feature-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* =========================================================
   GROTE PROJECT CONTENT
   ========================================================= */

.feature-content {
    display: flex;
    flex-direction: column;

    flex: 1;

    padding: 20px 22px 22px;
}

.feature-content h2 {
    margin: 0 0 9px;

    color: #2f467e;

    font-size: 21px;
    line-height: 1.3;
    font-weight: 700;
}

.feature-content p {
    margin: 0 0 20px;

    color: #444;

    font-size: 14px;
    line-height: 1.6;
}


/* =========================================================
   VIER KLEINE BLOKKEN - HOMEPAGE
   DEZE STYLING BLIJFT ONGEWIJZIGD
   ========================================================= */

.small-feature-grid {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;

    margin-top: 25px;
    margin-bottom: 40px;
}


/* =========================================================
   KLEINE KAART - HOMEPAGE
   ========================================================= */

.small-feature-card {
    min-width: 0;

    overflow: hidden;

    display: flex;
    flex-direction: column;

    background: #ffffff;

    border: 1px solid #d2d6df;
    border-radius: 7px;

    box-shadow:
        0 2px 7px rgba(0, 0, 0, 0.12);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.small-feature-card:hover {
    transform: translateY(-2px);

    box-shadow:
        0 5px 13px rgba(0, 0, 0, 0.16);
}


/* =========================================================
   KLEINE AFBEELDING - HOMEPAGE
   ========================================================= */

.small-feature-image {
    width: 100%;
    height: 105px;

    overflow: hidden;

    background: #eeeeee;
}

.small-feature-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* =========================================================
   KLEINE KAART CONTENT - HOMEPAGE
   ========================================================= */

.small-feature-content {
    display: flex;
    flex-direction: column;

    flex: 1;

    padding: 13px 14px 15px;
}

.small-feature-content h2 {
    margin: 0 0 6px;

    color: #2f467e;

    font-size: 17px;
    line-height: 1.3;
    font-weight: 700;
}

.small-feature-content p {
    margin: 0 0 13px;

    color: #444;

    font-size: 12.5px;
    line-height: 1.5;
}


/* =========================================================
   HARTA KARUN - 8 BLOKKEN NAAST ELKAAR
   ========================================================= */

.harta-karun-grid {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(8, minmax(0, 1fr));

    gap: 10px;

    margin-top: 25px;
    margin-bottom: 40px;
}


/* =========================================================
   HARTA KARUN KAART
   ========================================================= */

.harta-karun-card {
    min-width: 0;

    overflow: hidden;

    display: flex;
    flex-direction: column;

    background: #ffffff;

    border: 1px solid #d2d6df;
    border-radius: 5px;

    box-shadow:
        0 1px 4px rgba(0, 0, 0, 0.10);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.harta-karun-card:hover {
    transform: translateY(-2px);

    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.15);
}


/* =========================================================
   HARTA KARUN AFBEELDING
   ========================================================= */

.harta-karun-image {
    width: 100%;
    height: 85px;

    overflow: hidden;

    background: #eeeeee;
}

.harta-karun-image a {
    display: block;

    width: 100%;
    height: 100%;
}

.harta-karun-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* =========================================================
   HARTA KARUN CONTENT
   ========================================================= */

.harta-karun-content {
    display: flex;
    flex-direction: column;

    flex: 1;

    padding: 7px 7px 8px;
}

.harta-karun-content h2 {
    margin: 0 0 3px;

    color: #2f467e;

    font-size: 11px;
    line-height: 1.25;
    font-weight: 700;
}

.harta-karun-content p {
    margin: 0;

    color: #444;

    font-size: 9px;
    line-height: 1.3;
}


/* =========================================================
   LEES VERDER KNOP
   ========================================================= */

.read-more {
    display: inline-block;

    align-self: flex-start;

    margin-top: auto;

    padding: 7px 14px;

    color: #ffffff !important;

    background:
        linear-gradient(
            to bottom,
            #5067a5 0%,
            #3d5390 100%
        );

    border: 1px solid #34487e;
    border-radius: 4px;

    font-size: 12px;
    font-weight: bold;

    line-height: 1.4;

    text-decoration: none;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18);

    transition:
        background 0.2s ease;
}

.read-more:hover {
    color: #ffffff !important;

    background:
        linear-gradient(
            to bottom,
            #405694 0%,
            #30457d 100%
        );

    text-decoration: none;
}


/* =========================================================
   FOOTER
   ========================================================= */

#footer {
    width: 100%;

    padding: 30px 10px 35px;

    color: #777;

    text-align: center;

    font-size: 12px;
}

.footer-image {
    display: block;

    width: auto;
    max-width: 100%;
    height: auto;

    margin: 0 auto 15px;
}

.footer-copyright {
    color: #777;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    #page {
        max-width: calc(100% - 24px);
    }

    .feature-grid {
        gap: 20px;
    }

    /* Homepage: oorspronkelijke 4-blokken behouden */
    .small-feature-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 18px;
    }

    .small-feature-image {
        height: 130px;
    }

    /* Harta Karun */
    .harta-karun-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));

        gap: 12px;
    }

    .harta-karun-image {
        height: 100px;
    }

    .harta-karun-content h2 {
        font-size: 13px;
    }

    .harta-karun-content p {
        font-size: 10px;
    }

    .article-image {
        max-width: 50%;
    }

    .article-image-left {
        width: 40%;
        max-width: 350px;
    }
}


/* =========================================================
   MOBIEL
   ========================================================= */

@media (max-width: 650px) {

    body {
        background:
            linear-gradient(
                to bottom,
                #ffffff 0,
                #ffffff 115px,
                #4d62bd 115px,
                #4d62bd 370px,
                #ffffff 370px
            );
    }

    #page {
        width: 100%;
        max-width: none;

        padding: 0 8px;
    }


    /* Header */

    #header {
        padding-bottom: 10px;
    }

    .logo,
    .logo img {
        width: 100%;
    }


    /* Content */

    #content {
        padding: 12px;
    }


    /* Introductie */

    .intro-block {
        margin-bottom: 18px;

        padding: 18px 19px;

        border-left-width: 4px;
    }

    .intro-block h1 {
        font-size: 23px;
    }

    .intro-block h2 {
        font-size: 21px;
    }

    .intro-block p {
        font-size: 14px;
        line-height: 1.6;
    }


    /* Artikelafbeelding */

    .article-image {
        max-width: 45%;
    }


    /* Welkom afbeeldingen */

    .welkomimage {
        width: 110px;

        margin: 0 0 10px 15px;
    }


    /* Artikelafbeelding links */

    .article-image-left {
        width: 45%;
        max-width: 300px;

        margin-right: 18px;
        margin-bottom: 10px;
    }


    /* Grote projecten */

    .feature-grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }

    .feature-image {
        height: 210px;
    }


    /* Homepage kleine projecten
       Oorspronkelijke styling behouden */

    .small-feature-grid {
        grid-template-columns: 1fr;

        gap: 18px;

        margin-top: 18px;
    }

    .small-feature-image {
        height: 160px;
    }


    /* Harta Karun */

    .harta-karun-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 12px;

        margin-top: 18px;
    }

    .harta-karun-image {
        height: 125px;
    }

    .harta-karun-content {
        padding: 9px 10px 10px;
    }

    .harta-karun-content h2 {
        font-size: 13px;
    }

    .harta-karun-content p {
        font-size: 10px;
    }
}


/* =========================================================
   KLEINE TELEFOONS
   ========================================================= */

@media (max-width: 450px) {

    .article-image {
        float: none;

        width: 100%;
        max-width: 100%;

        margin: 0 0 15px 0;
    }

    .article-image-left {
        float: none;

        width: 100%;
        max-width: 100%;

        margin: 0 0 15px 0;
    }

    .harta-karun-grid {
        grid-template-columns: 1fr;

        gap: 14px;
    }

    .harta-karun-image {
        height: 170px;
    }

    .harta-karun-content h2 {
        font-size: 15px;
    }

    .harta-karun-content p {
        font-size: 11px;
    }
}


/* =========================================================
   EXTRA KLEINE TELEFOONS
   ========================================================= */

@media (max-width: 400px) {

    #page {
        padding: 0 5px;
    }

    #content {
        padding: 9px;
    }

    .intro-block h1 {
        font-size: 21px;
    }

    .intro-block h2 {
        font-size: 20px;
    }

    .feature-image {
        height: 190px;
    }

    .small-feature-image {
        height: 145px;
    }

    .welkomimage {
        width: 90px;

        margin-left: 12px;
    }

    .harta-karun-image {
        height: 150px;
    }
}

/* =========================================================
   GRID AFBEELDINGEN 3 koloms
   ========================================================= */

.grid-images {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 20px;

    width: 100%;

    margin: 20px 0 10px;
}

.grid-images img {
    display: block;

    width: 100%;
    height: 300px;

    object-fit: contain;

    background: #ffffff;
}


/* =========================================================
   MOBIEL
   ========================================================= */

@media (max-width: 650px) {

    .grid-images {
        grid-template-columns: 1fr;

        gap: 15px;
    }

    .grid-images img {
        height: auto;
        max-height: 400px;
    }
}
