/* ============= list ============= */
.courses-tiles-list__events {

}
.courses-tiles-list__wrapper-events {
    
}
.event-tiles-item {
    margin-left: auto;
    margin-right: auto;
    max-width: 290px;
    /* width: 290px; */
    display: inline-block;
    vertical-align: top;
    margin: 0 5px;
    margin-bottom: 90px;
}
.event-tiles-item__logo {
    height: 130px;
    line-height: 130px;
    text-align: center;
}
.event-tiles-item__logo img {
    max-width: 200px;
    max-height: 80px;
    vertical-align: bottom;
    margin-bottom: 35px;
}
.event-tiles-item__img {
    display: block;
    height: 350px;
    overflow: hidden;
    position: relative;
}
.event-tiles-item__date {
    font-size: 16px;
    background: #212548;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    position: relative;
}
.event-tiles-item__date::before {
    content: '';
    display: inline-block;
    position: absolute;
    top: 7px;
    left: 10px;
    width: 28px;
    height: 24px;
    background-image: url('/local/templates/pharmtutor/imgs/calendar.svg');
    background-repeat: no-repeat;
    background-size: contain;
}
.event-tiles-item__name {
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 35px;
    height: 48px;
    text-align: center;
}
.event-tiles-item__btn {
    position: relative;
    text-align: center;
}
.event-tiles-item__btn-inner {
    position: absolute;
    bottom: -45px;
    width: 100%;
}

.event-tiles-item__border {
    box-shadow: -2px -2px 2px #ccc;
}
.courses-tiles-list__wrapper-events {
    padding: 0;
    max-width: 1320px!important;
}

@media (min-width: 1001px) and (max-width: 1199px) {
    .courses-tiles-list__wrapper.courses-tiles-list__wrapper-events {
        padding-left: 55px;
        padding-right: 55px;
    }
}
@media (min-width: 551px) and (max-width: 800px) {
    .courses-tiles-list__wrapper-events {
        padding: 0;
    }
}
@media (min-width: 821px) and (max-width: 1000px) {
    .courses-tiles-list__wrapper-events {
        text-align: inherit;
    }
}
@media (min-width: 600px) {
    .event-tiles-item {
        /* width: -webkit-calc((100% - 9px * (2 - 1)) / 2);
        width: -moz-calc((100% - 9px * (2 - 1)) / 2);
        width: -o-calc((100% - 9px * (2 - 1)) / 2);
        width: calc((100% - 9px * (2 - 1)) / 2); */
        margin-left: -webkit-calc((100% - 290px * 2) / (2*2) );
        margin-left: -moz-calc((100% - 290px * 2) / (2*2) );
        margin-left: -o-calc((100% - 290px * 2) / (2*2) );
        margin-left: calc((100% - 290px * 2) / (2*2) );
        margin-right: -webkit-calc((100% - 290px * 2) / (2*2) );
        margin-right: -moz-calc((100% - 290px * 2) / (2*2) );
        margin-right: -o-calc((100% - 290px * 2) / (2*2) );
        margin-right: calc((100% - 290px * 2) / (2*2) );
    }
    .event-tiles-item:nth-child(2n+2) {
        /* margin-left: 9px; */
    }
}
@media (min-width: 900px) {
    .event-tiles-item {
        /* width: -webkit-calc((100% - 9px * (4 - 1)) / 4);
        width: -moz-calc((100% - 9px * (4 - 1)) / 4);
        width: -o-calc((100% - 9px * (4 - 1)) / 4);
        width: calc((100% - 9px * (4 - 1)) / 4); */
        margin-left: -webkit-calc((100% - 290px * 3) / (3*2) );
        margin-left: -moz-calc((100% - 290px * 3) / (3*2) );
        margin-left: -o-calc((100% - 290px * 3) / (3*2) );
        margin-left: calc((100% - 290px * 3) / (3*2) );
        margin-right: -webkit-calc((100% - 290px * 3) / (3*2) );
        margin-right: -moz-calc((100% - 290px * 3) / (3*2) );
        margin-right: -o-calc((100% - 290px * 3) / (3*2) );
        margin-right: calc((100% - 290px * 3) / (3*2) );
    }
    .event-tiles-item:nth-child(4n+4) {
        /* margin-left: 9px; */
    }
}
@media (min-width: 1300px) {
    .event-tiles-item {
        /* width: -webkit-calc((100% - 9px * (4 - 1)) / 4);
        width: -moz-calc((100% - 9px * (4 - 1)) / 4);
        width: -o-calc((100% - 9px * (4 - 1)) / 4);
        width: calc((100% - 9px * (4 - 1)) / 4); */
        margin-left: -webkit-calc((100% - 290px * 4) / (4*2) );
        margin-left: -moz-calc((100% - 290px * 4) / (4*2) );
        margin-left: -o-calc((100% - 290px * 4) / (4*2) );
        margin-left: calc((100% - 290px * 4) / (4*2) );
        margin-right: -webkit-calc((100% - 290px * 4) / (4*2) );
        margin-right: -moz-calc((100% - 290px * 4) / (4*2) );
        margin-right: -o-calc((100% - 290px * 4) / (4*2) );
        margin-right: calc((100% - 290px * 4) / (4*2) );
    }
    .event-tiles-item:nth-child(4n+4) {
        /* margin-left: 9px; */
    }
}

.event-tiles-btn {
    display: inline-block;
    font-size: 10px;
    font-weight: bold;
    font-family: "ProximaNova";
    letter-spacing: 1px;
    text-transform: uppercase;
    background: red;
    border-radius: 16px;
    color: #fff;
    padding: 10px 20px;
}
.event-tiles-btn-download {
	position: relative;
	display: inline-block;
	font-size: 10px;
	font-weight: bold;
	font-family: "ProximaNova";
    letter-spacing: 1px;
	text-transform: uppercase;
	margin: 10px 20px 10px 20px;
	border-bottom: 2px solid #000;
	padding-bottom: 3px;
    margin-bottom: 20px;
}
.event-tiles-btn-download::after {
	position: absolute;
	top: 0;
	left: -18px;
	content: "";
	display: block;
	width: 15px;
	height: 15px;
	background: url('/local/templates/pharmtutor/imgs/file.png') center no-repeat;
	background-size: contain;
}


/* ============= detail ============= */

.event-tiles-content {
    margin: auto;
    max-width: 1212px;
}
.event-tiles-row {
    display: flex;
    flex-direction: column;
    margin: 0 15px;
}


.event-tiles__detail-text {
	color: #606469;
    font-family: "PTSans";
    font-size: 16px;
    letter-spacing: .025em;
    line-height: 1.4;
    margin-bottom: 25px;
}
.event-tiles__detail-title {
    font-family: "ProximaNova";
    font-weight: 900;
    letter-spacing: .025em;
    color: #20254a;
    font-size: 44px;
    line-height: 1em;
    margin-bottom: 20px;
}
.event-tiles__detail-subtitle {
    color: #20254a;
    font-family: "ProximaNova";
    font-size: 24px;
    font-weight: 900;
    letter-spacing: .025em;
    margin-bottom: 24px;
}
.event-tiles__img {
	position: relative;
	height: 535px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
	margin-top: 50px;
    margin-bottom: 50px;
}
.event-tiles__img::after {
	position: absolute;
	bottom: 0;
	content: "";
	display: block;
	width: 100%;
	height: 352px;
	background: url('/local/templates/pharmtutor/imgs/detail_event_plate.png') left center no-repeat;
	background-size: cover;
	z-index: 1;
}
.event-tiles__img-logo {
	position: absolute;
    width: 125px;
    height: 90px;
    top: 15px;
    right: 15px;
    background-position: center top;
    background-size: contain;
    background-repeat: no-repeat;
}
.event-tiles__img-date-wrap {
	position: absolute;
	bottom: 120px;
	left: 10px;
	z-index: 2;
}
.event-tiles__img-date {
	font-size: 36px;
	font-weight: bold;
	color: #fff;
	margin-left: 70px;
	position: relative;
}
.event-tiles__img-date::before {
	content: '';
	display: inline-block;
	position: absolute;
	top: -3px;
	left: -70px;
	width: 63px;
	height: 54px;
	background: url('/local/templates/pharmtutor/imgs/calendar.svg') center no-repeat;
	background-size: contain;
}
.event-tiles__imgs {
    position: relative;
}
.event-tiles__img-detail {
    margin-bottom: 10px;
    margin-top: 40px;
    position: relative;
}
.event-tiles__img-detail img {
    width: 100%;
}
/* .event-tiles__img-detail-nav {
    position: relative;
} */
.event-tiles__img-detail-prev,
.event-tiles__img-detail-next {
    position: absolute;
    content: "";
    width: 40px;
    height: 40px;
    top: 50%;

    background-color: #d6d6d6;
    background-color: rgb(214 214 214 / 75%);
    border-radius: 50%;
    padding: 10px;
}
.event-tiles__img-detail-prev button,
.event-tiles__img-detail-next button {
    border: 3px solid #fff;
    border-bottom: none;
    border-right: none;
    width: 100%;
    height: 100%;
}
.event-tiles__img-detail-prev {
    left: 7px;
}
.event-tiles__img-detail-prev button {
    transform: rotate(-45deg);
    margin-left: 4px;
}
.event-tiles__img-detail-next {
    right: 7px;
}
.event-tiles__img-detail-next button {
    transform: rotate(135deg);
    margin-left: -3px;
}
.event-tiles__img-list {
    display: flex;
    justify-content: space-between;
}
.event-tiles__img-list-item {
    width: 12.5%;
    width: calc((100% - 10px*(7-1)) / 7);
}
.event-tiles__img-list-item:nth-child(n+8) {
    display: none;
}
.event-tiles__vote {
    margin-top: 30px;
}
.event-tiles__video {
    flex: 1 1 auto;
    margin-top: 30px;
}
.event-tiles__vote-list {
	background: #20254a;
	color: #fff;
	padding: 55px 35px;
	font-family: "PTSans";
}
.event-tiles__vote-title {
	font-size: 22px;
	font-weight: bold;
	margin-bottom: 20px;
}
.event-tiles__vote-subtitle {
	font-size: 16px;
	font-weight: bold;
	margin-bottom: 20px;
}
.event-tiles__vote-list-item {
	display: inline-block;
    width: 49%;
    padding-right: 8px;
    margin-bottom: 10px;
}
.event-tiles__vote-list-item-img {
	background: url('/local/templates/pharmtutor/imgs/vote_user.png') center no-repeat;
	width: 100px;
	height: 100px;
	background-size: cover;
	margin-left: 18px;
	margin-top: 10px;
	margin-bottom: 20px;
}
.event-tiles__vote-list-item:nth-child(odd) {
	padding-left: 8px;
}
.event-tiles__vote-list-item input {
    border-radius: 50%;
}
.event-tiles__vote-list .event-tiles-btn {
    margin-top: 20px;
}
.event-tiles__video-player {
	/* margin: auto; */
    /* overflow: hidden; */
    position: relative;
    border: 3px solid #20254a;
}
.event-tiles__video-player-iframe {
}
.event-tiles__video-player-title {
    font-size: 24px;
    font-weight: bold;
}
.event-tiles__video-player-date {
    margin-left: 70px;
    font-size: 16px;
    position: relative;
    padding-top: 3px;
    margin-top: 15px;
}
.event-tiles__video-player-date span {
    display: block;
}
.event-tiles__video-player-date span:first-child {
    margin-bottom: 6px;
}
.event-tiles__video-player-date::before {
    position: absolute;
    content: "";
    display: block;
    width: 67px;
    height: 67px;
    left: -70px;
    top: -3px;
    background: url('/local/templates/pharmtutor/imgs/video_player_add.png') no-repeat;
    background-size: contain;
}
.event-tiles__video-player-wrap {
    /* position: relative; */
}
.event-tiles__video-player-info {
    padding: 10px 15px 20px;
    position: relative;
}
.event-tiles__video-player-btn-wrap {
    text-align: center;
    position: absolute;
    width: 100%;
    bottom: 20px;
}
.event-tiles__video-player-btn {
    display: inline-block;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    border:2px solid #20254a;
    border-radius: 16px;
    color: #20254a;
    padding: 8px 20px;
}
.event-tiles-voted {
    position: relative;
    padding: 1rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: .25rem;

    color: #055160;
    background-color: #cff4fc;
    border-color: #b6effb;

    margin-top: 1rem;
}
@media(max-width: 400px) {
    .event-tiles__vote-list-item {
        font-size: 12px;
    }
    .event-tiles__vote-list {
        padding: 20px 10px;
    }
    .event-tiles__vote-title {
        font-size: 20px;
    }
    .event-tiles__vote-subtitle {
        font-size: 14px;
    }
    .event-tiles__vote-subtitle {
        margin-bottom: 25px;
    }
    .event-tiles__img {
        height: 305px;
    }
    .event-tiles__img::after {
        /* height: 202px; */
        height: 130px;
    }
    .event-tiles__img-date-wrap {
        /* bottom: 65px; */
        bottom: 38px;
        left: 0;
    }
    .event-tiles__img-date {
        /* font-size: 26px; */
        font-size: 20px;
        margin-left: 51px;
    }
    .event-tiles__img-date::before {
        /* width: 42px; */
        width: 34px;
        /* height: 42px; */
        height: 34px;
        /* left: -55px; */
        left: -40px;
    }
    .event-tiles__img-logo {
        width: 95px;
        height: 60px;
        top: 5px;
        right: 5px;
    }
    .event-tiles-item__date {
        font-size: 10px;
    }
    .event-tiles-item__date::before {
        width: 20px;
        height: 17px;
    }
    .event-tiles-item__name {
        font-size: 13px;
        margin-top: 25px;
        height: 35px;
    }
    .courses-tiles-filter.courses-tiles-filter__events .courses-tiles-block__header-title {
        text-align: center;
        display: block;
        font-size: 22px;
    }
    .courses-tiles-filter__events .courses-tiles-block__header-basic-title {
        padding-left: 10px;
    }
    .courses-tiles-filter__events  .direction-switchers-group__button + .direction-switchers-group__button {
        margin-left: 0;
    }
    .courses-tiles-filter__events .courses-tiles-block__header-basic-title + .courses-tiles-block__header-basic-filter {
        padding-right: 10px;
    }
}
@media(max-width: 500px) {
    .event-tiles__video-player-btn-wrap {
        text-align: right;
    }
    .event-tiles__video-player-btn {
        margin-right: 20px;
    }
    .event-tiles__vote-list {
        padding: 35px 15px;
    }
    .event-tiles-row {
        margin-left: 0;
        margin-right: 0;
    }
    .event-tiles__detail {
        margin-left: 15px;
        margin-right: 15px;
    }
    .p-corp-university__content {
        margin-left: 15px;
        margin-right: 15px;
    }
    
    .courses-tiles-list__wrapper-events .event-tiles-item {
        margin-left: 0;
    }
    .courses-tiles-list__wrapper-events .event-tiles-item:nth-child(even) {
        margin-right: 0;
        margin-left: 9px;
    }
    .courses-tiles-list__wrapper.courses-tiles-list__wrapper-events {
        padding: 0 10x!important;
    }
    .courses-tiles-filter__events .courses-tiles-filter__direction-toggle-button {
        padding-left: 0;   
    }
    .courses-tiles-filter.courses-tiles-filter__events .courses-tiles-block__header-title {
        font-size: 25px;
    }
    .courses-tiles-filter__events .courses-tiles-block__header-basic-filter {
        min-width: 140px;
    }
}
@media/*(min-width: 400px) and*/ (max-width: 500px) {
    .event-tiles-item .event-tiles-item__date {
        padding-left: 46px;
        text-align: left;
    }
}
@media (min-width: 401px) and (max-width: 500px) {
    .event-tiles-item__name {
        font-size: 16px;
        margin-top: 25px;
        height: 40px;
    }
    .event-tiles-item__date {
        font-size: 12px;
    }
}
@media/*(min-width: 400px) and*/ (max-width: 625px) {
    .courses-tiles-filter__events .courses-tiles-block__header-basic-filter {
        padding-left: 0;
        padding-right: 0;
    }
}
@media/*(min-width: 400px) and */(max-width: 725px) {
    .event-tiles-item__img {
        height: 48vw;
    }
    .event-tiles-item {
        min-width: auto;
        width: 40vw;
        margin-right: 9px;
        margin-left: 9px;
    }
    .event-tiles-item__logo {
        height: 14vw;
        line-height: 14vw;
    }
    .event-tiles-item__logo img {
        max-width: 25vw;
        max-height: 8vw;
        margin-bottom: 4vw;
    }
}
@media(min-width: 501px) and (max-width: 725px) {
    .event-tiles-item__date {
        font-size: 14px;
    }
    .courses-tiles-list__wrapper.courses-tiles-list__wrapper-events {
        padding: 0 25px;
    }
}
@media (min-width: 626px) and (max-width: 725px) {
    .courses-tiles-filter__events .courses-tiles-block__header-basic-filter {
        min-width: 167px;
    }
}
@media/*(min-width: 400px) and*/ (max-width: 725px) {
    
    .courses-tiles-filter__events .courses-tiles-block__header-basic-title {
        font-size: 0px;
        letter-spacing: 0px;
        word-spacing: 0px;
        display: table-cell;    
    }
    .courses-tiles-filter__events .courses-tiles-block__header-basic-filter {
        display: table-cell;
        white-space: nowrap;
    }
    .courses-tiles-filter__events .courses-tiles-block__header-basic-title + .courses-tiles-block__header-basic-filter {
        text-align: right;
    }
}
@media(max-width: 999px) {
    .event-tiles__detail .event-tiles-btn {
        margin-top: 10px;
        margin-bottom: 45px;
    }
    .event-tiles__vote-subtitle {
        margin-bottom: 40px;
    }
    .event-tiles__vote-list .event-tiles-btn {
        margin-top: 30px;
    }
}
@media(max-width: 1199px) {
    .event-tiles__video-player-wrap {
        position: relative;
        padding-top: 55.4%;
    }
    .event-tiles__video-player-iframe {
        position: absolute;
        top: 0;
        width: 100%;
        height: 100%;
    }
}
@media (min-width: 1000px) {
    .event-tiles-row {
        flex-direction: row;
        margin: auto;
    }
    .event-tiles__vote {
        width: 470px;
        flex-grow: 0;
        flex-shrink: 0;
        order: -1;
    }
    .event-tiles__imgs {
        width: 470px;
        flex-grow: 0;
        flex-shrink: 0;
        order: -1;
    }
    .event-tiles__detail {
        margin-left: 30px;
    }
    .event-tiles__vote-list {
        padding: 40px 20px;
    }
    .event-tiles__img-logo {
        top: 25px;
        right: 25px;
        width: 150px;
        height: 100px;
    }
    .event-tiles__img-detail {
        margin-top: 0;
        cursor: pointer;
    }
    .event-tiles__video {
        margin-left: 30px;
    }
    .event-tiles__video-player-iframe {
        width: 100%;
        height: 100%;
    }
}
@media (min-width: 600px) {
    .fancy-event-layout .fancybox-navigation .fancybox-button--arrow_left {
        /* left: calc((100% - 800px)/2 - 40px); */
        left: calc((100% - 650px)/2);
    }
    .fancy-event-layout .fancybox-navigation .fancybox-button--arrow_right {
        /* right: calc((100% - 800px)/2 - 40px); */
        right: calc((100% - 650px)/2);
    }
}
@media (min-width: 1200px) {
    .event-tiles__video-player-wrap {
	    height: 395px;
    }
}
@media (max-width: 1050px) {
    .courses-tiles-filter__events .courses-tiles-filter__direction-toggle-button {
        display: block;
    }
}

