/* General */
/* #header #logo img {
    max-height: 50px;
} */

/* #header .header-search{
    display: none;
}

#header .header-inner .flex-right{
    display:none;
}

#main-menu .header-search-form{
    display: none!important;
} */

@media only screen and (max-width:1300px) {
    .page-left-sidebar .large-3.col.col-first.col-divided {
        display: none;
    }
    .page-left-sidebar .large-9.col.right{
        width: 100%;
        flex-basis:100%;
        max-width:100%;
    }
}

.page-left-sidebar .large-3.col.col-first.col-divided {
    max-width: 320px;
}

.page-left-sidebar .page-inner {
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
}

.events {
    display: flex;
    flex-wrap: wrap;
    width: calc(100% + 20px);
    margin-left: -10px;
}

.single-event {
    width: 33.33%;
    height:550px;
    padding: 10px;
}

.single-event-inner {
    border: 1px solid #ccc;
    box-shadow: 1px 1px 5px #ccc;
    border-radius: 5px;

    position: relative;
    height: 100%;
}

.single-event-content {
    padding: 15px;
}

.single-event-content p {
    margin-bottom: 0.5rem;
}

@media screen and (max-width: 1020px) {
    .single-event {
        width: 50%;
    }
}

@media screen and (max-width: 650px) {
    .single-event {
        width: 100%;
        height:auto;
    }
    .single-event-content {
        padding-bottom:55px;
    }
    
}

.single-event-image {
    /* TODO: Adjust height */
    height: 250px;
    width: 100%;
    object-fit: cover;
}
.single-event.no-image .single-event-image {
    object-fit:contain;
}

.single-event .button.register-link {
    position: absolute;
    bottom: 0px;
    border-radius: 20px;
    width: 90%;
    left: 5%;
}

.single-event-title {
    word-break: break-word;
    font-size: 1.2em;
    margin-top: 0.75rem;
    min-height: 50px;
}

.no-events {
    height: 50px;
}

.no-events p {
    display: none;
}

.search {
    position: relative;
    max-width: 600px;
}

.search .clear-search {
    position: absolute;
    right: 10px;
    top: 0px;
    line-height: 40px;
    width: 40px;
    cursor: pointer;
    text-align: center;
}

.single-event .single-event-inner:after {
    content: "";
    position: absolute;
    display: none;
    top: 5px;
    left: 5px;
    background-color: var(--primary-color);
    color: #fff;
    padding: 5px;
    font-size:13px;
    border-radius:4px;
}

.single-event.lahikoulutus .single-event-inner:after {
    content: "Lähikoulutus";
    display: block;
}

.single-event.verkkokoulutus .single-event-inner:after {
    content: "Verkkokoulutus";
    display: block;
}

.single-event.webinaari .single-event-inner:after {
    content: "Webinaari";
    display: block;
}