@import './style-guide.css';

section h3 {
    margin-top: 34px;
    margin-bottom: 54px;
    font-size: var(--font-h4);
    font-weight: bold;
    position: relative;
}

section h3::before {
    content: '';
    position: absolute;
    bottom: -22px;
    width: 212px;
    height: 1px;
    background-color: var(--label-bg-yellow);
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-column-gap: 20px;
    grid-row-gap: 20px;
}

@media(max-width:1199px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width:991px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width:767px) {
    .cards {
        grid-template-columns: repeat(1, 1fr);
    }
}

.card {
    width: 100%;
    height: auto;
    border: 0;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
    border-radius: 1px;
}

.card:hover .card-title h3 {
    color: var(--label-bg-yellow);
}

.card:hover .card-hero {
    background-size: 140%;

}

.card-hero {
    width: 100%;
    height: 180px;
    background-size: 120%;
    background-position: center;
    background-image: url('https://placeholder.pics/svg/255x180');
    transition: .3s !important;
    position: relative;
}

@media(max-width:767px) {
    .card-hero {
        height: 360px;
    }
}

@media(max-width:575px) {
    .card-hero {
        height: calc((100vw - 30px) * 0.66);
    }
}

.card-ribbon {
    position: absolute;
    top: 10px;
    left: -10px;

}

.card-title {
    padding: 15px;
    margin-bottom: 0px;
    color: var(--title-font-blue);
    flex: none;
}

.card-title h4 {
    margin: 0;
    font-size: var(--font-h5);
    font-weight: 900;
    line-height: 1.4;
}

.card:hover .card-title h4 {
    color: var(--label-bg-yellow);
}

.card-body {
    padding: 0;
    margin: 0 15px 5px;
    flex: none;
    font-size: var(--font-h8);
    color: var(--title-font-blue);
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-body .info {
    margin-bottom: 7px;
}

.card-body .info:last-of-type {
    margin-bottom: 0;
}

.card-footer {
    background-color: #fff;
    border-top: none;
    padding-left: 15px;
    padding-right: 15px;
}

.card-footer .btns {
    display: flex;
    justify-content: space-between;
}

.card-footer .btns a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 105px;
    height: 50px;
    font-weight: 600;
    font-size: var(--font-h8);
}
.card-footer .btns a i{
    margin-right: 5px;
}
.card-footer .btns .link {
    background-color: var(--btn-bg-yellow);
}

.card-footer .btns .link:hover {
    background-color: var(--btn-bg-yellow-hover);
}

.card-footer .btns .more {
    border: 1px solid var(--btn-bg-yellow);
    background-color: white;
}

.card-footer .btns .more i{
    transition-duration: 0s;
}

.card-footer .btns .more:hover {
    background-color: var(--label-bg-yellow);
    border: 1px solid var(--label-bg-yellow);
    color: #fff;
}