/* cards */

.curso .card {
    background: #FFFFFF;
    border: 1px solid #E5E5E5;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    max-height: 600px;
}

.curso .card .card-footer {
    padding: 1rem;
    border-top: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.curso .card .card-footer .categories-div span {
    white-space: nowrap;
    display: inline-block;
    margin: 0 10px 10px 0;
}

.curso .card .card-footer .btn.btn-primary:hover {
    color: #fff!important;
    background: #000!important;
    border-color: #000!important;
}

.curso .card .card-footer .btn.btn-secondary:hover {
    background-color: #dfe0da;
    color: rgb(27, 27, 27);
}

.curso .card .img-card {
    width: 93%;
    margin: 10px auto 0;
    height: 203px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: block;
}

.curso .card .card-body .card-title {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* number of lines to show */
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

.curso .card .card-body .card-title a {
    font-size: 20px;
    line-height: 23px;
    font-family: 'Roboto';
    letter-spacing: 0.38px;
    font-weight: 600;
    text-decoration: none;
}

.curso .card .card-body .card_title a:hover {
    text-decoration: underline;
}

.curso .card .card-text {
    overflow: hidden;
    /* min-height: 150px; */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    -webkit-line-clamp: 4;
}

.curso .card .card-text .description-short {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 14px;
    overflow: hidden;
    /* min-height: 150px; */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    -webkit-line-clamp: 4;
}

.fig {
    color: white;
    position: relative;
    overflow: hidden;
}

.fig:before {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 93%;
    height: 203px;
    margin: 10px auto;
    height: 203px;
    content: '';
    background-color: rgba(0, 0, 0, 0.25);
    opacity: 0.5;
    transform: translateY(100%);
    transition: all 0.25s;
    transition-delay: 0.25s;
}

.fig:hover:before {
    transform: translateY(0);
    transition-delay: 0s;
}

.fig .caption {
    text-align: center;
    position: absolute;
    top: 0;
    left: 0!important;
    right: 0!important;
    width: 93%;
    margin: 10px auto;
    height: 203px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.25s ease;
}

.fig h3,
.fig h5 {
    margin: 0;
    letter-spacing: 1px;
}

.fig h3 {
    text-transform: uppercase;
    font-weight: 400;
    margin-bottom: 5px;
    font-size: 20px;
}

.fig h5 {
    /* background-color: rgba(0, 0, 0, 0.75); */
    background: linear-gradient(270.01deg, rgba(0, 255, 0, 0.5) -99.74%, rgba(255, 255, 0, 0.5) 99.99%);
    padding: 3px 10px;
    width: fit-content;
    margin: 0 auto;
}

.fig:hover .caption {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.3s;
}