﻿.conferences-content {
    width: 100%;
}

.conferences-container {
    max-width: var(--normal);
    margin: 0 auto;
    padding: 1em var(--padding-sides-desktop) 5em var(--padding-sides-desktop);
}

.block-conferences {
    width: 100%;
    margin: 0 auto;
}

.list-conferences {
    list-style: none;
    position: relative;
    margin-top: 2em;
    margin-bottom: 5em;
}

    .list-conferences::after {
        content: "";
        background-color: var(--ico-grey);
        position: absolute;
        top: 2.5em;
        left: 1.75em;
        bottom: 2.5em;
        width: 0.5em;
        z-index: -1;
    }

.conference-year {
    height: 5em;
    width: 5em;
    background-color: var(--main-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: absolute;
    left: calc(-2.5em - 1px);
    font-size: var(--font-small-title-desktop);
    font-weight: 700;
    z-index: 2;
}

.conference, .load-more-conferences {
    display: flex;
    padding-left: 5em;
    min-height: 5em;
    padding-top: 10em;
    align-items: center;
    position: relative;
    /* border-left: 2px solid var(--main-blue); */
    /*margin-bottom: -5em;*/
}

.load-more-conferences {
    cursor: pointer;
}

    .load-more-conferences:hover .conference-year {
        background-color: var(--dark-blue);
    }

    .load-more-conferences .conference-text {
        margin-bottom: 5em;
    }

.conference:first-child {
    padding-top: 0;
    border-color: transparent;
}

.conference .conference-text {
    display: grid;
    padding: 2em 3em;
    background-color: var(--light-grey);
    width: 100%;
    grid-gap: 1em;
    grid-template-columns: 15% 85%;
    align-items: center;
    border-radius: 5px;
}
/* .max-five-conferences:nth-of-type(1n+6){ 
        display: none;
    } */
.conference-link {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    cursor: pointer !important;
    color: var(--main-blue);
}
    .conference-link:hover {
        color: var(--btn-hover);
        cursor: pointer !important;
    }   
.conference-month {
    color: var(--main-blue);
    font-weight: bold;
}

.conference-link, .conference-month {
    font-size: var(--font-text-desktop);
}

.white-box-conferences {
    display: none;
}

.conference-link-important {
    cursor:default !important;
}

@media only screen and (max-width: 70em) {
    .conferences-container {
        padding: 1em var(--padding-sides-tablet) 5em var(--padding-sides-tablet);
    }

    .block-conferences {
        width: 95%;
        margin: 0 auto;
    }

    .conference-link, .conference-month, .conference-year {
        font-size: var(--font-text-tablet);
    }
}

@media only screen and (max-width: 50em) {
    .conferences-container {
        padding: 1em var(--padding-sides-mobile) 3em var(--padding-sides-mobile);
    }

    .block-conferences {
        width: 95%;
        margin: 0 auto;
    }

    .conference-year {
        height: 4em;
        width: 4em;
        left: calc(-2em - 1px);
    }

    .conference:first-child {
        padding-top: 0;
        margin-bottom: -2.5em;
    }

    .conference, .load-more-conferences {
        display: flex;
        padding-left: 2em;
        min-height: 5em;
        padding-top: 5em;
        align-items: center;
        position: relative;
        margin-bottom: -2.5em;
    }

    .conference-year {
        font-size: 3vmin;
    }

    .conference-link, .conference-month {
        font-size: 2.5vmin;
    }

    .conference-link {
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .conference .conference-text {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        grid-gap: 1vmin;
        max-height: 18vmin;
        overflow: hidden;
        min-height: 5em;
        justify-content: center;
        padding: 1em;
    }

    .conference:first-child {
        padding-top: 0vmin;
        border-color: transparent;
    }

    .white-box-conferences {
        background-color: white;
        display: block;
        position: absolute;
        bottom: 0;
        left: -1em;
        width: 2em;
        height: 2.5em;
        z-index: 1;
    }

    .conference-link, .conference-month, .conference-year {
        font-size: var(--font-text-mobile);
    }

    .list-conferences::after {
        content: "";
        background-color: var(--ico-grey);
        position: absolute;
        top: 2.5em;
        left: 1.9em;
        bottom: 2.5em;
        width: 0.2em;
        z-index: -1;
    }
}
