@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(1, 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 {
    flex-wrap: nowrap;
    flex-direction: row;
    width: 100%;
    height: auto;
    border: 0;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
    border-radius: 1px;
}

@media screen and (max-width: 1199px) {
    .card {
        flex-wrap: wrap;
        flex-direction: column;
    }
}

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

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

}

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

@media(max-width:1199px) {
    .card-hero {
        width: 100%;
        height: 220px;
    }
}

@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 {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 31px 35px;
    margin-bottom: 0px;
    color: var(--title-font-blue);
    flex: 1;
    min-width: 1px;
}

@media screen and (max-width: 1199px) {
    .card-title {
        padding: 20px;
    }

    .card-title hr {
        margin: 1rem 0;
    }
}

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

.card-title hr {
    width: 247px;
    height: 1px;
    background-color: var(--brknews-date-light-blue);
    margin: 0;
}

@media screen and (max-width: 1199px) {
    .card-title hr {
        margin: 1rem 0;
    }
}

.card-title p {
    margin-bottom: 0;
}

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

.card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    /* width: 150px; */
    min-width: 150px;
    padding: 31px 35px 31px 5px;
    margin: 0;
    flex: none;
    font-size: var(--font-h8);
    color: var(--title-font-blue);
    overflow: hidden;
    text-overflow: ellipsis;
}

@media screen and (max-width: 1199px) {
    .card-body {
        flex-direction: row;
        padding: 20px;
        flex: 1;
    }
}

@media(max-width:991px) {
    .card-body {
        flex: none;
        width: 100%;
    }   
}

.card-body .cart-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: #fff;
    color: var(--label-bg-yellow);
    border: 1px solid var(--label-bg-yellow);
    font-size: var(--font-h6);
    line-height: 0;
}

.card-body .cart-btn i {
    transition: none;
}

.card-body .cart-btn:hover {
    background-color: var(--label-bg-yellow);
    color: white;
}

.card-body .price {
    font-size: var(--font-h7);
    font-weight: 600;
}

.card-body .price span {
    font-size: var(--font-h3);
    color: var(--google-color);
    line-height: 0;
}