/* Master Layout
----------------------------------------------------------------------------- */
.MasterLayout .main_article {
    border: 1px solid #ccc;
    position: relative;
    padding: 35px;
}

.MasterLayout .main_article:before {
    content: '';
    position: absolute;
    left: -1px;
    top: -1px;
    right: -1px;
    height: 7px;
    background: #D73526;
}

.MasterLayout .header_image_wrapper {
    border-top: 7px solid #D73526;
    position: relative;
}

.MasterLayout .header_image_wrapper:after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(215, 53, 38, 0.4) 0%, rgba(215, 53, 38, 0) 100%);
}

.MasterLayout .header_image_wrapper .header_image {
    display: block;
}

.MasterLayout .header_image_wrapper + .main_article {
    border-top: 0;
}

.MasterLayout .header_image_wrapper + .main_article:before {
    display: none;
}

.MasterLayout .main_article .main_heading {
    font-size: 3.2em;
    font-weight: 800;
    color: #222;
    margin: 0 0 0.6em 0;
}

.MasterLayout .main_article .master_home_link {
    display: inline-block;
    margin: 0 0 5px 0;
    color: #D73526;
    font-size: 18px;
    font-weight: 300;
    transition: color 0.5s ease;
}

.MasterLayout .main_article .master_home_link:hover {
    color: #333;
    text-decoration: none;
}


/* Bottom navigation block
----------------------------------------------------------------------------- */
.MasterLayout .master_navigation {
    border: 1px solid #222;
    margin-top: 40px;
    padding: 20px;
}

.MasterLayout .master_navigation h1 {
    color: #222;
    font-size: 24px;
    margin: 0 0 5px 0;
    text-align: center;
}

.MasterLayout .master_navigation .current {
    color: #666;
    margin: 0 0 20px 0;
    text-align: center;
}

.MasterLayout .master_navigation .current .label {
    font-size: 18px;
    font-weight: 600;
}

.MasterLayout .master_navigation .current .counter {
    margin-left: 5px;
}

.MasterLayout .master_navigation ul {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.MasterLayout .master_navigation ul li {
    margin: 0;
    padding: 0;
    line-height: 1.3em;
    list-style: none;
    font-size: 18px;
    flex-grow: 1;
}

.MasterLayout .master_navigation ul li.previous {
    text-align: left;
}

.MasterLayout .master_navigation ul li.next {
    text-align: right;
}

.MasterLayout .master_navigation ul li a {
    color: #D73526;
    display: block;
}

.MasterLayout .master_navigation ul li a:hover {
    text-decoration: none;
}

.MasterLayout .master_navigation ul li .label {
    color: #333;
    display: block;
    font-weight: 300;
    font-size: 16px;
}

.MasterLayout .master_navigation ul li.previous .label {
    background: url("../images/master_navigation_previous.png") no-repeat left center;
    padding-left: 25px;
}

.MasterLayout .master_navigation ul li.next .label {
    background: url("../images/master_navigation_next.png") no-repeat right center;
    padding-right: 25px;
}

.MasterLayout .master_navigation ul li .title {
    font-weight: 600;
}

.MasterLayout #master_form.application_form {
    background: #f0f0f0;
    margin-top: 35px;
    padding: 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.MasterLayout #master_form.application_form .description {
    color: #222;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

.MasterLayout #master_form.application_form .button {
    background-color: #222;
    border: 0;
    margin: 0 0 0 20px;
    padding: 15px 20px;
    color: white;
    font-size: 16px;
    text-align: center;
    transition: all 0.5s ease;
    white-space: nowrap;
    width: 350px;
}

.MasterLayout #master_form.application_form .button:hover {
    background: #D73526;
    text-decoration: none;
}

/* SlideShowBlock
----------------------------------------------------------------------------- */

.MasterLayout .SlideShowBlock .navigation_button {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 75px;
    background-color: transparent;
    background-repeat: no-repeat;
    background-size: 50% auto;
    background-position: 50% 50%;
    border: none;
    font-size: .0001em;
    outline: none !important;
    cursor: pointer;
    z-index: 20;
    opacity: 1;
}

.MasterLayout .SlideShowBlock .navigation_button img {
    display: none;
}

.MasterLayout .SlideShowBlock .previous_slide_button {
    left: 0;
    background-image: url(../images/arrow-left.png);
}

.MasterLayout .SlideShowBlock .next_slide_button {
    right: 0;
    background-image: url(../images/arrow-right.png);
}

/* Responsive adjustments
----------------------------------------------------------------------------- */
@media (max-width: 640px) {

    .MasterLayout .main_article {
        border: none;
        padding: 0;
        padding-top: 20px;
    }

    .MasterLayout .master_navigation {
        margin-top: 30px;
        padding: 30px 0 0 0;
        border: none;
        border-top: 5px solid #eee;
    }

    .MasterLayout .master_navigation ul li.previous {
        margin-left: 15px;
    }

    .MasterLayout .master_navigation ul li.next {
        margin-right: 15px;
    }

    .MasterLayout #master_form.application_form {
        padding: 15px;
        flex-direction: column;
    }

    .MasterLayout #master_form.application_form .button {
        margin-left: 0;
        margin-top: 15px;
        width: 100%;
    }
}
