/**
* Academy - On demand video
 */

@media screen and (min-width: 1024px) {
    .on-demand-video__main {
        padding-left: var(--gap-mainLeft);
    }
}

.academy-item {
    align-items: center;
    flex-wrap: wrap;
}

@media screen and (min-width: 520px) {
    .academy-item {
        flex-wrap: nowrap;
    }
}

.academy-item:hover .academy-item__title {
    color: var(--clr1-normal);
}

.academy-item__title {
    margin-bottom: .5rem;
    font-size: var(--txtSize-4);
}

.academy-item__subtitle {
    font-size: var(--txtSize-6);
    font-family: var(--fam-regular);
    padding-bottom: 1rem;
}

.academy-item__text {
    flex: 1 0 100%;
    margin-bottom: 0;
    padding-bottom: 0;
}

@media screen and (min-width: 520px) {
    .academy-item__text {
        flex: 1 0 50%;
        padding-right: 1.5rem;
        padding-bottom: 2rem;
    }
}

@media screen and (min-width: 520px) {
    .academy-item__extra {
        padding-top: 0;
    }
}

@media screen and (min-width: 768px) {
    .academy-item__extra {
        padding-top: 2rem;
    }
}

.academy-item__extra__label {
    font-size: var(--txtSize-6);
    font-family: var(--fam-medium);
    white-space: nowrap;
}

.academy-item__totalTrainingDuration {
    display: block;
    font-size: 13px;
    color: var(--clr-grey);
}

.academy-item__totalTrainingDuration:before {
    font-family: var(--fam-icon);
    font-size: var(--txtSize-6);
    margin-right: 2px;
    content: '\23f0';
    position: relative;
    top: 2px;
}

.academy-item__imageWrapper {
    margin: 0;
    overflow: hidden;
    position: relative;
    z-index: 0;
    display: flex;
    justify-content: center;
    margin-block: auto;
    border-radius: var(--radius-lg);
    width: min(237px, 100%);
    text-align: center;
    cursor: pointer;
}

.academy-item .academy-item__imageWrapper:before {
    transition: all var(--transition-time) ease-in-out;
    content: "";
    background: rgba(0, 0, 0, 0.2);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    opacity: 0
}

.academy-item .academy-item__imageWrapper:after {
    transition: all var(--transition-time) ease-in-out;
    font-family: var(--fam-icon);
    content: '\25B6';
    color: #fff;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    width: 100%;
    z-index: 2;
    box-shadow: var(--shadow-1);
    opacity: 0
}

.academy-item__image {
    width: 100%;
    width: -moz-available;
    width: -webkit-fill-available;
    width: fill-available;
    object-fit: cover;
    transition: all var(--transition-time--slow) ease-in-out;
}

.academy-item:hover .academy-item__imageWrapper:before {
    opacity: 1
}

.academy-item:hover .academy-item__imageWrapper:after {
    opacity: 1;
}

.academy-item:hover .academy-item__image {
    transform: scale(1.02);
}
