/**************************************************

    Card

**************************************************/

.card {
    background-color: #002552; 
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: #fff;
    display: block;
    overflow: hidden;
    padding-bottom: 100%;
    position: relative;
    width: 100%;
}

.card:visited {
    color: #fff;
}

.card__content {
    bottom: 0;
    height: 100%;
    left: 0;
    position: absolute;
    width: 100%;
    transition: all 0.2s linear;
}

.card__content::before,
.card__content::after {
    content: '';
    height: 100%;
    left: 0;
    overflow: hidden;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 10;
}

.card__content::before {
   /* background: linear-gradient(15deg, rgba(0, 55, 122, 1) 0%, rgba(0, 55, 122, 0) 60%);*/
}

.card__content::after {
    background: rgba(0, 55, 122, 0.8);
    opacity: 0;
    transition: all 0.2s linear;
}

.card:hover .card__content::after {
    opacity: 1;
}

.card__title {
    bottom: 0;
    color: #fff;
    font-size: 18px;
    left: 0;
    letter-spacing: 1px;
    line-height: 30px;
    padding: 15px 20px;
    position: absolute;
    transition: all 0.3s linear;
    width: 100%;
    z-index: 20;
}

/*
    https://css-tricks.com/multi-line-padded-text/
    
*/
.card__title strong {
    background: #00377a;
    border: 3px solid #00377a;
    border-width: 3px 0;
    box-decoration-break: clone;
        -webkit-box-decoration-break: clone;
        -ms-box-decoration-break: clone;
        -o-box-decoration-break: clone;
    box-shadow: 5px 0 0 #00377a, -5px 0 0 #00377a;
    position: relative;
}

.card__title::after {
    background: #fff;
    content: '';
    height: 5px;
    left: 20px;
    position: absolute;
    top: -5px;
    transition: all 0.3s linear;
    width: 0;
}

.card:hover .card__title::after {
    width: calc(100% - 40px);
}

.card__text {
    color: #fff;
    font-size: 16px;
    left: 20px;
    opacity: 0;
    padding: 0 20px;
    position: absolute;
    right: -20px;
    top: 20px;
    transition: all 0.2s linear 0.1s;
    z-index: 20;
}

.card:hover .card__text {
    left: 0;
    opacity: 1;
    right: 0;
}

.card__text * {
    font-size: 16px;
}

.card__text > :last-child {
    margin-bottom: 0;
}
