﻿html, body {
    margin: 0;
    padding: 0;
    /*font-family: "Quicksand", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";*/
    /*font-family: "Roboto", sans-serif;*/
    font-family: "Open Sans", sans-serif;
    --primary-color: #003a5d;
    --primary-color-dark: #002d4a;
    --light-blue: #f4f9fc; /* medical*/
    --header-bg: rgb(0, 35, 75);
    --euro-blue: #003399;
    --euro-yellow: #fef200;
    /*--accent-color: #ca1d72;*/
    --accent-color: #32dbc6;
    --dark-bg: #343a40;
    --text-color: #4d4d4d;
    --text-grey: #6c757d;
    --text-muted: #8492a6;
    color: var(--text-color);
    overflow-x: hidden;
}

.min-vh {
    min-height: 100vh;
}

/* headdings */
h1 {
    font-size: 2.5rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

h2 {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
    font-weight: 500;
}


/* header */
.header {
    top: 0;
    font-size: 0.9rem;
    height: 124px;
}

    .scrolled .sticky {
        top: 0;
        position: fixed;
        width: 100%;
    }

    .header .langs a {
        color: white;
        text-decoration: none;
        display: inline-block;
        padding: 0.5rem;
        transition: 0.2s color ease-in-out, 0.2s background-color ease-in-out;
    }

        .header .langs a.active {
            color: var(--euro-yellow);
        }

        .header .langs a:hover {
            background-color: #004ce5;
        }

    .header .logo img {
        max-height: 80px;
    }

    .header .top-bar {
        background-color: var(--header-bg);
        overflow: hidden;
        /*padding: 0.3rem 0;*/
        height: 40px;
        transition: 0.2s height ease-in-out;
    }

    .header .bottom-bar {
        padding-bottom: 0;
    }

    .header.scrolled .top-bar {
        height: 0;
    }

    .header .white-bg {
        box-shadow: 0 0 5px rgba(0,0,0,0.1);
    }

    .header .flex {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-content: center;
    }

    .header .e-mail {
        color: white;
        display: flex;
        align-items: center;
    }

        .header .e-mail a {
            color: white;
        }

    .header a {
        align-content: center;
    }

    .header .social-icon svg {
        width: 24px;
        height: 24px;
        fill: #fff;
        margin: 5px;
    }

    .header nav {
        display: flex;
        flex-direction: row;
        align-items: center;
    }

        .header nav a {
            font-size: 1.1rem;
        }

            .header nav a.level-0 {
                display: flex;
                gap: 0.5rem;
                align-items: center;
                text-decoration: none;
                margin: 0;
                padding: 0.5rem 0.8rem;
                font-size: 0.9rem;
                transition: 0.1s ease-in-out;
                box-sizing: content-box;
                border-bottom: 2px solid transparent;
                color: var(--header-bg);
            }

                .header nav a.level-0 svg {
                    fill: var(--primary-color);
                }

                .header nav a.level-0.active,
                .header nav a.level-0:active,
                .header nav a.level-0.active,
                .header nav a.level-0:hover,
                .header nav .dropdown:hover a.level-0 {
                    /* color: var(--euro-blue);*/
                    border-bottom: 2px solid var(--header-bg);
                    background-color: #f1f1f1;
                }

/* dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    visibility: hidden;
    position: absolute;
    /*border-top: 3px solid var(--euro-blue);*/
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    opacity: 0;
    transform: translateY(10px);
    /*transition: 0.2s transform ease-in-out, 0.2s border ease-in-out, 0.2s opacity ease-in-out;*/
    transition: 0.15s ease-in-out;
    padding: 0;
}

.dropdown .dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    margin: 0;
    font-size: 0.9rem;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
    display: block;
    visibility: visible;
    opacity: 1;
    transform: translateY(0px);
}

/* intro */
/* vimeo player*/
.vimeo-iframe {
    width: 100%;
    height: 600px;
    border: none;
}

/* contact section */
.contact-card {
    display: flex;
    flex-direction: row;
    gap: 20px;
    font-weight: 300;
}

    .contact-card img {
        height: 90px;
        border-radius: 50%;
    }

    .contact-card svg {
        fill: var(--primary-color);
    }

    .contact-card h4 {
        margin: 5px 0;
    }

    .contact-card a {
        font-size: 1rem;
        font-weight: normal;
        /*color: var(--accent-color);*/
        text-decoration: underline;
    }

    .contact-card,
    .contact-card p {
        margin: 2px 0;
        font-size: 0.8rem;
    }

/* board members */
section.board-members {
    max-width: 650px;
    margin: 2rem auto;
}

.board-members .flex-row {
    align-content: start;
}

.board-members .img-wrap {
    width: 146px;
}

.board-members img {
    border-radius: 0;
    max-width: 146px;
    height: auto;
    object-fit: contain;
}

/* network */
.network .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 1rem;
}

.network .list {
}

.network .network-item {
    /*    display: flex;
    flex-direction: row;
    justify-content: start;
    align-content:start;
    gap:20px;
    position: relative;*/
    /*color: white;*/
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 0 2px rgba(0,0,0,0.1);
}

    .network .network-item img {
        max-height: 80px;
    }

    .network .network-item h3 {
        margin-top: 0;
    }

/* news */
section.news {
    margin-bottom: 4rem;
}

    section.news .text {
        margin: 2rem;
    }

.news article {
    display: flex;
    flex-direction: column;
    /*   flex-direction: row;
    gap: 20px;*/
    padding: 0.5rem;
    border-radius: 5px;
    box-shadow: 0 0 2px rgba(0,0,0,0.1);
    transition: 0.2s background-color linear, 0.2s color linear;
}

    .news article h2 a {
        color: black;
    }

.news a:hover {
    color: var(--euro-blue);
}

.news article a {
    display: flex;
    flex-direction: column;
    transition: 0.2s color linear;
    text-decoration: none;
    color: var(--text-color);
}

    .news article a > * {
        display: flex;
    }


.news article img {
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    width: 100%;
    max-height: 200px;
    object-fit: cover;
}

.news article h2 {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 0;
}

.news article p {
    display: flex;
    flex-grow: 1;
    color: var(--text-muted);
    margin: 0.3rem 0;
}

.news article .article-footer {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.8rem;
}

    .news article .article-footer .date {
        display: flex;
        gap: 0.3rem;
        flex-direction: row;
        align-items: center;
    }


.news article .more {
    display: flex;
    flex-direction: row;
    align-self: end;
    justify-self: end;
    align-items: center;
    justify-content: right;
    gap: 0.5rem;
    line-height: 2;
}
/* article detail */
.article-detail {
}

    .article-detail h1 {
        font-size: 2.5rem;
        margin-top: 2rem;
        margin-bottom: 1rem;
        text-align:left;
    }

    .article-detail h2 {
        font-size: 1.5rem;
        margin-top: 1.5rem;
        margin-bottom: 1rem;
    }

    .article-detail h3 {
        font-size: 1.2rem;
        margin-top: 0;
        margin-bottom: 0;
    }

    .article-detail h4 {
        font-size: 1rem;
    }

    .article-detail h5 {
        font-size: 0.9rem;
    }

    .article-detail h6 {
        font-size: 0.8rem;
    }
/* patient reports*/
.news .list {
    display: block;
}

    .news .list article a {
        display: flex;
        flex-direction: row;
    }

    .news .list article .main-icon svg {
        margin-right: 2rem;
        fill: var(--dark-bg) !important;
        transition: .2s fill linear;
        width: 90px !important;
        height: 90px !important;
    }

    .news .list article a:hover svg {
        fill: var(--text-color) !important;
    }

    .news .list article .more {
        display: flex;
        align-self: end;
        justify-self: end;
        align-content: center;
        justify-content: center;
        gap: 0.5rem;
        line-height: 2;
    }


.news article .more > * {
    display: flex;
}

.news.patient-reports article .more svg {
}
/* article detial */
article.article-detail {
    display: block;
    margin: 2rem auto;
    margin-bottom: 4rem;
}

.article-detail img {
    width: 100%;
    max-height: 400px;
    display: block;
    object-fit: contain;
}

.article-detail figure {
    border-radius: 5px;
    background-color: #fafafa;
}

.article-detail figcaption {
    font-size: 0.8rem;
    background-color: #f4f4f4;
    padding: 0.5rem;
}

.article-detail .doc-item {
    display: flex;
    flex-direction: row;
    gap: 20px;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 0 2px rgba(0,0,0,0.1);
    text-decoration: none;
    color: black;
}

    .article-detail .doc-item > div {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .article-detail .doc-item h4 {
        margin: 0;
    }

/* contact form section */
.form-section {
    padding-top: 1rem;
    padding-bottom: 3rem;
}

    .form-section .form-card {
        padding: 2rem;
        border-radius: 5px;
    }

.form-group > * {
    display: block;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.form-group textarea {
    height: 100px;
}
/* goto top */
.goto-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--euro-blue);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    font-size: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s opacity ease-in-out, 0.2s visibility ease-in-out;
}
.scrolled .goto-top {
    opacity: 1;
    visibility: visible;
}

/* footer */
.footer {
    /* margin-top:2rem;*/
    font-size: 0.9rem;
}

    .footer a {
        color: white;
        text-decoration: none;
        display: inline-block;
        padding: 0 0.5rem;
        transition: 0.2s color ease-in-out, 0.2s background-color ease-in-out;
    }

    .footer .langs a.active {
        color: var(--euro-yellow);
    }

    .footer .langs a:hover {
        color: var(--euro-yellow);
    }



/* utils */
.content-W {
    max-width: 1140px;
    margin: auto;
}

.d-block {
    display: block !important;
}

.flex-row {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.flex-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.flex-grow-1 {
    flex: 1;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 1rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 2rem;
}

.text-center {
    text-align: center;
}

.spacer {
    display: flex;
    flex: 1;
}

.dark-bg {
    background-color: var(--header-bg);
    color: white;
}

.light-bg {
    background-color: var(--light-blue);
}

.white-bg {
    background-color: #fff;
}

hr {
    margin: 2rem 0;
    color: var(--euro-blue);
}

.m-0 {
    margin: 0;
}

.m-1 {
    margin: 1rem;
}

.m-2 {
    margin: 2rem;
}

.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.p-0 {
    padding: 0;
}

.p-1 {
    padding: 1rem;
}

.p-2 {
    padding: 2rem;
}

.pt-0 {
    padding-top: 0;
}

.pt-1 {
    padding-top: 1rem;
}

.pt-2 {
    padding-top: 2rem;
}
/* responsive */
.vimeo-iframe {
    max-width: 100%;
    aspect-ratio: 10/6;
    height: auto;
}

.desktop-hidden {
    display: none;
}
/* hambi icon */
#hamburger {
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
}

    #hamburger svg {
        /*border: 1px dotted #222;*/
        fill: black;
        stroke: black;
        color: black;
        /*    width: 120px;
    height: 120px;*/
    }

        /*
 * Hamburger lines reset animation, i.e. menu closed
 */
        #hamburger svg path {
            transform-origin: 50% 8px;
            transition: stroke 0.3s ease-in-out, fill 0.3s ease-in-out;
        }

            #hamburger svg path:nth-of-type(1) {
                animation: hamburgerTopReset 300ms ease-in-out forwards;
            }

            #hamburger svg path:nth-of-type(2) {
                transform-origin: 50% 15px;
                animation: hamburgerMiddleReset 300ms ease-in-out forwards;
            }

            #hamburger svg path:nth-of-type(3) {
                transform-origin: 50% 22px;
                animation: hamburgerBottomReset 300ms ease-in-out forwards;
            }

    /*
 * Hamburger turns into X, i.e. menu open
 */
    #hamburger.is-open svg path:nth-of-type(1) {
        animation: hamburgerTopDeform 300ms ease-in-out forwards;
    }

    #hamburger.is-open svg path:nth-of-type(2) {
        animation: hamburgerMiddleDeform 300ms ease-in-out forwards;
    }

    #hamburger.is-open svg path:nth-of-type(3) {
        animation: hamburgerBottomDeform 300ms ease-in-out forwards;
    }

@keyframes hamburgerTopReset {
    0% {
        transform: translateY(7px) rotate(45deg);
    }

    50% {
        transform: translateY(7px) rotate(0deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

@keyframes hamburgerMiddleReset {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 1;
    }
}

@keyframes hamburgerBottomReset {
    0% {
        transform: translateY(-7px) rotate(-45deg);
    }

    50% {
        transform: translateY(-7px) rotate(0deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

@keyframes hamburgerTopDeform {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(7px) rotate(0deg);
    }

    100% {
        transform: translateY(7px) rotate(45deg);
    }
}

@keyframes hamburgerMiddleDeform {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@keyframes hamburgerBottomDeform {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-7px) rotate(0deg);
    }

    100% {
        transform: translateY(-7px) rotate(-45deg);
    }
}

/* mobile sidebar */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 200px;
    background-color: white;
    padding: 1rem 0.2rem;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    transform: translateX(-100%);
    transition: 0.2s transform ease-in-out;
}

    .mobile-sidebar.is-open {
        transform: translateX(0);
    }

    .mobile-sidebar > * {
        display: flex;
        flex-grow: 1;
    }

    .mobile-sidebar a {
        display: block;
        padding: 0.5rem 1rem;
        text-decoration: none;
        color: black;
        border-bottom: dashed 1px #ccc;
    }

    .mobile-sidebar .dropdown {
        flex-direction: column;
    }

    .mobile-sidebar .dropdown-root-item {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        border-bottom: dashed 1px #ccc;
    }

        .mobile-sidebar .dropdown-root-item a {
            display: flex;
            flex-direction: row;
            flex-grow: 1;
            border-bottom: none;
        }

    .mobile-sidebar .dropdown-content {
        position: relative;
        display: block;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        transition: 0.25s height ease-in;
        transform: none;
        padding-left: 1rem;
    }

        .mobile-sidebar .dropdown-content.is-open {
            display: block;
        }
/* mobile */
@media (max-width:480px) {
    .mobile-hidden {
        display: none !important;
    }

    .header .bottom-bar {
        padding-bottom: 5px;
    }

    .mobile-visible {
        display: block;
    }

    .mobile-grid-1 {
        display: grid;
        grid-template-columns: 1fr;
        grid-gap: 1rem;
    }

    .mobile-flex-column {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .header .white-bg {
        padding: 0.5rem 0;
    }

    .header .logo img {
        height: 50px;
    }

    .content-W {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    /* reduce heading */
    h1 {
        font-size: 2rem;
        margin-top: 2rem;
        margin-bottom: 1rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    h4 {
        font-size: 1rem;
    }

    /* patient reports/ news list */
    .news .list article a {
        display: flex;
        flex-direction: column;
    }


    .news .list article .main-icon {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: start;
    }

        .news .list article .main-icon svg {
            margin-top: 0.5rem;
            margin-right: 0.5rem;
            width: 40px !important;
            height: 40px !important;
        }

    /* network */
    .network .network-item img {
        max-height: 25px;
    }

    .contact-card {
        box-shadow: 0 0 2px rgba(0,0,0,0.1);
    }

        .contact-card img,
        .contact-card svg {
            margin-top: 1rem;
            height: 50px;
            width: 50px;
        }
    /* footer */
    .footer {
        padding: 1rem 0;
    }

        .footer .flex-row {
            flex-direction: column;
        }
}
