﻿@font-face {
    font-family: 'Trajan Pro Regular';
    font-style: normal;
    font-weight: normal;
    font-display: swap;
    src: local('Trajan Pro Regular'), url('../assets/font/TrajanPro-Regular.woff') format('woff');
}

body {
    background: #c0c0c0;
    background: linear-gradient(180deg, #adadad 0%, #e4e4e4 100%);
    background-repeat: repeat-x;
    background-attachment: fixed;
    color: #222;
}

body>form {
    display: block;
    margin: 0 auto;
    max-width: 1200px;
    width: 100%;
    position: relative;
}

body>form>header {
    display: grid;
    grid-template-columns: 250px 1fr 180px;
    grid-template-rows: 110px 80px;
    grid-gap: 10px;
}

    body > form > header .BethlenLogo {
        grid-row: 1 / 3;
        grid-column: 1 / 2;
    }

        body > form > header .BethlenLogo img {
            width: 100%;
        }

    body > form > header .BethlenTitle {
        grid-row: 1 / 2;
        grid-column: 2 / 3;
        font-family: 'Trajan Pro Regular';
        font-size: 3em;
        margin-top: .5em;
    }

        body > form > header .BethlenTitle div:nth-child(2) {
            font-size: .6em;
            margin-top: -.4em;
            text-align: right;
        }

    body > form > header .BethlenMemberSchools {
        margin-top: .5em;
        grid-row: 1 / 3;
        grid-column: 3 / 4;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

        body > form > header .BethlenMemberSchools img {
            width: 180px;
        }

    body > form > header .BethlenSelfService {
        grid-row: 2 / 3;
        grid-column: 2 / 3;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-evenly;
        align-items: stretch;
    }

        body > form > header .BethlenSelfService > a {
            display: flex;
            justify-content: flex-end;
            align-items: flex-end;
            height: 80px;
            width: 20%;
            background-color: green;
            color: black;
            text-decoration: none;
            transition: all ease-in-out .5s;
            background-size: cover;
            background-position: center center;
            border: solid 1px #000;
            font-family: 'Trajan Pro Regular';
        }

            body > form > header .BethlenSelfService > a:nth-child(1) {
                background-image: url(../assets/button/e-kreta.png);
            }

            body > form > header .BethlenSelfService > a:nth-child(2) {
                background-image: url(../assets/button/e-menza.png);
            }

            body > form > header .BethlenSelfService > a:nth-child(3) {
                background-image: url(../assets/button/fogadoora.jpg);
            }

            body > form > header .BethlenSelfService > a:nth-child(4) {
                background-image: url(../assets/button/naptar.jpg);
            }

            body > form > header .BethlenSelfService > a:hover {
                transform: perspective(600px) rotateX(15deg);
                transform-origin: 50% 100%;
                filter: saturate(50%);
            }

            body > form > header .BethlenSelfService > a > span {
                display: block;
                background-color: rgba(255,255,255,.8);
                padding: 2px 4px;
            }

@media (max-width: 980px) {
    body > form > header {
        grid-template-columns: 150px 1fr;
        grid-template-rows: 110px 80px;
    }
        body > form > header .BethlenLogo {
            grid-row: 1 / 2;
            grid-column: 1 / 2;
        }

            body > form > header .BethlenLogo img {
                width: 100%;
            }

        body > form > header .BethlenTitle {
            grid-row: 1 / 2;
            grid-column: 2 / 3;
        }

        body > form > header .BethlenMemberSchools {
            grid-row: 2 / 3;
            grid-column: 1 / 2;
            flex-direction: row;
            flex-wrap: nowrap;
        }

            body > form > header .BethlenMemberSchools img {
                width: 100%;
            }

        body > form > header .BethlenSelfService {
            grid-row: 2 / 3;
            grid-column: 2 / 3;
        }
}

@media (max-width: 700px) {
    body > form > header {
        grid-template-columns: 6fr 5fr;
        grid-template-rows: auto auto auto;
    }

        body > form > header .BethlenLogo {
            grid-row: 1 / 2;
            grid-column: 1 / 2;
            text-align: center;
        }

            body > form > header .BethlenLogo img {
                width: 100%;
                max-width: 230px;
            }

        body > form > header .BethlenTitle {
            grid-row: 2 / 3;
            grid-column: 1 / 3;
            text-align: center;
            font-size: 2.5em;
        }

            body > form > header .BethlenTitle div:nth-child(2) {
                font-size: .5em;
                margin-top: -.4em;
                text-align: center;
            }

        body > form > header .BethlenMemberSchools {
            grid-row: 1 / 2;
            grid-column: 2 / 3;
            flex-direction: column;
        }

            body > form > header .BethlenMemberSchools img {
                width: 100%;
            }

        body > form > header .BethlenSelfService {
            grid-row: 3 / 4;
            grid-column: 1 / 3;
        }
}

@media (max-width: 400px) {
    body > form > header .BethlenSelfService {
        flex-wrap: wrap;
    }
        body > form > header .BethlenSelfService > a {
            min-width: 40%;
            margin-bottom: 1em;
        }
}

nav.MainMenu > ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
    list-style-type: none;
    background-color: #a4a4a4;
    background: linear-gradient(0deg, #a4a4a4 0%, rgba(164,164,164,0) 100%);
    background-repeat: repeat-x;
    margin-top: 1.5em;
    font-family: 'Trajan Pro Regular';
}

nav.MainMenu > ul > li > a {
    padding: .5em 1em;
    display: block;
    text-decoration: none;
    color: #222;
}

    nav.MainMenu > ul > li > a:hover {
        background-color: #5a5a5a;
        color: #fff;
    }

main > section {
    /*
    background-color: #fff;
    border: solid 1px #a4a4a4;
    */
    margin-bottom: 1em;
}

footer {
    background-color: #a4a4a4;
    background: linear-gradient(180deg, #a4a4a4 0%, rgba(164,164,164,0) 100%);
    background-repeat: repeat-x;
    padding: 1em;
    display: flex;
    flex-wrap:wrap;
    justify-content: space-between;
}

footer a{
    color:#000;
}

.swiper-container {
    outline: 1px solid #a4a4a4;
    background-color: #fff;
    outline-offset: -1px;
}

.swiper-slide
{
	position:relative;
}

.swiper-slide
{
	background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.swiper-slide h1
{
	display: inline-block;
	top: 10px;
	padding: .3em 1em .1em 1em;
	background-color: rgba(255,255,255,.8);
	font-family: 'Trajan Pro Regular';
	font-size: 1.5em;
	font-weight: normal;
	color: #000;
}

.swiper-slide div
{
	position:absolute;
	bottom:38px;
	padding: .3em 1em .3em 1em;
	background-color: rgba(255,255,255,.8);
	color: #000;
}

.ArticleList > article {
    outline: 1px solid #a4a4a4;
    background-color: #fff;
    outline-offset: -1px;
    padding: .5em 1em .5em 1em;
    margin-bottom: .5em;
}

    .ArticleList > article > a {
        text-decoration: none;
        color: #222;
    }

    .ArticleList > article h1, .ArticleContent > article h1 {
        margin: 0;
        border-bottom: solid 1px #a4a4a4;
        font-family: 'Trajan Pro Regular';
        font-size: 1.5em;
        font-weight: normal;
    }

        .ArticleContent > article h1 .SubTitle {
            font-size: .6em;
            display: block;
            padding-left: 2em;
        }

    .ArticleList > article header, .ArticleContent > article header {
        font-size: .8em;
        text-align: right;
        margin-bottom: .3em;
    }

    .ArticleContent > article .Warning {
        border: solid 1px red;
        width: 80%;
        margin: 1em auto 1em auto;
        padding: .5em;
        background-color: #e7bcbc;
    }

    .ArticleContent > article .Lead {
        font-weight: bold;
    }

    .ArticleList > article.IllustratedTeaser {
        background-position: center center;
        background-size: cover;
        min-height: 200px;
        display: block;
        padding: 0;
    }

        .ArticleList > article.IllustratedTeaser > a {
            display: block;
            min-height: 200px;
            position: relative;
        }

        .ArticleList > article.IllustratedTeaser h1 {
            position: absolute;
            top: .5em;
            border: none;
            margin: 0;
            padding: .2em .5em;
            font-size: 1.4em;
            font-weight: normal;
            background-color: rgba(255,255,255,.75);
        }
        .ArticleList > article.IllustratedTeaser header {
            display: none;
        }
        
        .ArticleList > article.IllustratedTeaser section.ArticleLead {
            position: absolute;
            bottom: .5em;
            background-color: rgba(255,255,255,.75);
            padding: .2em .5em;
        }

section.HomePanel {
    display: grid;
    grid-template-columns: 40% 30% 30%;
    grid-column-gap: .5em;
}

@media (max-width: 980px) {
    section.HomePanel {
        display: grid;
        grid-template-columns: 60% 40%;
        grid-template-rows: auto auto;
        grid-column-gap: .5em;
        min-width: 0;
        min-height: 0;
    }

    section.HomePanel>article{
        min-width: 0;
        overflow: hidden;
    }
}

@media (max-width: 700px) {
    section.HomePanel {
        display: grid;
        grid-template-columns: 100%;
        grid-template-rows: auto auto auto;
        grid-column-gap: .5em;
    }
}

section.ContentPanel {
    display: grid;
    grid-template-columns: 70% 30%;
    grid-column-gap: .5em;
    background-color:#fff;
}

    section.ContentPanel > article {
        padding: 1em;
    }

@media (max-width: 980px) {
    section.ContentPanel {
        display: grid;
        grid-template-columns: 60% 40%;
        grid-column-gap: .5em;
        min-width: 0;
        min-height: 0;
    }

        section.ContentPanel > article {
            min-width: 0;
            overflow: hidden;
        }
}

@media (max-width: 700px) {
    section.ContentPanel {
        display: grid;
        grid-template-columns: 100%;
        grid-template-rows: auto auto;
        grid-column-gap: .5em;
    }
}


@media (max-width: 400px) {
}

.Gallery>.ImageFrameOuter{float:left;margin-right:1em;margin-bottom:1em;}