﻿.main-page-heading {
    height: 30vw;
    background-size: cover;
    background-attachment: local;
    background-position: center;
    box-shadow: rgb(0 0 0 / 40%) 0px 4px 4px 0px;
}

.main-page-heading-gradient {
    background: rgb(255,255,255);
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(243,243,243,0) 65%, rgba(0,0,0,0.6) 95%, rgba(0,0,0,0.6) 100%);
    width: 100%;
    height: 100%;
    position: relative;
}

.main-page-heading h1 {
    position: absolute;
    bottom: 0;
    color: white;
    margin: 0px 0px 16px 16px;
    user-select: none;
}

.main-page-about-us-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 32px;
    line-height: 14pt;
    user-select: none;
}

.main-page-about-us-text {
}

.main-page-about-us-buttons {
    text-align: right;
    margin-top: auto;
    margin-bottom: auto;
}

    .main-page-about-us-buttons div {
        display: grid;
        text-align: right;
        grid-template-columns: auto auto;
        grid-column-gap: 32px;
        justify-items: end;
        justify-content: end;
    }

.news-card {
    display: grid;
    grid-template-columns: auto 1fr;
    transition-duration: 0.2s;
    box-shadow: rgb(0 0 0 / 50%) 0px 2px 4px 0px;
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: white;
    align-items: start;
    margin-bottom: 1rem;
}

.news-cards {
    margin-top: 1rem
}

    .news-cards a {
        text-decoration: none;
    }

        .news-cards a:hover {
            text-decoration: none;
        }

            .news-cards a:hover h1 {
                text-decoration: underline;
            }

.more-news-link {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1rem;
    float: right;
    color: var(--brand-blue-color);
    font-weight: 600;
}

    .more-news-link:hover {
        text-decoration: underline;
    }

.news-card p {
    margin: 0;
    padding: 0;
}

.news-card:hover {
    box-shadow: rgb(0 0 0 / 35%) 0px 4px 8px 0px;
    transform: translateY(-0.1rem)
}

.news-card:active {
    box-shadow: rgb(0 0 0 / 35%) 0px 1px 2px 0px;
    transform: translateY(0.1rem)
}

@media screen and (max-width: 1280px) {
    .index-padding {
        width: 75%;
        margin-left: auto;
        margin-right: auto;
    }
}

.news-card img {
    width: 16em;
    border-radius: 0.5rem;
    box-shadow: rgb(0 0 0 / 50%) 0px 2px 4px 0px;
}

.news-card-data {
    margin-left: 1em;
}

.news-card-header {
    display: grid;
    grid-template-columns: 1fr auto;
}

.news-card-header-info {
    text-align: right;
}

.news-card-header p {
    font-size: 8pt;
    color: gray;
}

.news-card-posted-by {
    font-weight: 600;
}

.news-card-posted-at {
}

.project-author {
    font-size: 10pt;
    margin: 0.5em 0 !important;
}

@media screen and (max-width: 900px) {
    .main-page-heading-gradient h1 {
        font-size: 18pt;
    }

    .main-page-heading-gradient {
        background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(243,243,243,0) 60%, rgba(0,0,0,0.6) 90%, rgba(0,0,0,0.6) 100%);
    }

    .main-page-about-us-buttons div {
        grid-template-columns: none !important;
        grid-template-rows: auto auto;
        grid-column-gap: initial;
        grid-row-gap: 0.5rem;
        justify-content: stretch;
        justify-items: center;
    }

    .news-card img {
        width: 10rem;
    }

    .news-card-header {
        grid-template-columns: none;
        grid-template-rows: auto auto;
        margin-bottom: 0.4rem;
    }

        .news-card-header h3 {
            margin-bottom: 0.4rem;
            font-size: 12pt;
        }

    .news-card-header-info {
        text-align: left;
    }

    .news-card-data > p {
        font-size: 10pt;
    }
}


@media screen and (max-width: 640px) {

    .main-page-heading-gradient h1 {
        font-size: 14pt;
        margin-bottom: 0.5rem;
        margin-left: 0.5rem;
    }

    .container {
        width: 100vw;
    }

    main {
        width: 100vw;
    }
}

@media screen and (max-width: 430px) {

    body {
        grid-template-columns: none;
    }

    .container {
        width: 100vw;
    }

    main {
        width: 100vw;
    }

    .main-page-heading-gradient h1 {
        margin: 0 0 8px 8px;
        font-size: 10pt;
    }

    .main-page-about-us-block {
        grid-template-columns: none;
        grid-template-rows: 1fr 1fr;
        margin-bottom: 2rem;
    }

    .main-page-about-us-buttons {
        text-align: initial;
    }

    .main-page-heading {
        background-size: cover
    }

    .event-card {
        grid-template-columns: initial;
        grid-template-rows: auto auto;
    }

    .event-card > img {
        margin-right: auto;
        margin-left: auto;
        margin-bottom: 1rem;
    }
}

@media screen and (max-width: 375px) {

    .news-card {
        grid-template-columns: initial;
        grid-template-rows: auto auto;
        justify-items: center;
    }

        .news-card img {
            margin-bottom: 1rem;
            width: 16rem;
        }

    .container {
        width: 100vw;
    }

    main {
        width: 100vw;
    }
}
