.image-cards--homepage {
    position: relative;
    margin-top: 35px;
}

.image-cards.bg-gold .sub-heading {
    color: #F2B740;
}

.image-cards__flex {
    box-sizing: border-box;
    display: flex;
    flex: 0 1 auto;
    flex-direction: row;
    flex-wrap: wrap;
    margin-right: -16px;
    margin-left: -16px;
    justify-content: center;
}
  
.image-cards__col {
    box-sizing: border-box;
    flex: 0 0 auto;
    flex-basis: auto;
    padding-right: 0;
    padding-left: 0;
    margin: 6px 16px;
    width: calc(100% - 32px);
}

.image-card {
    width: 100%;
    height: 88px;
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 12px 18px ;
}

.image-card__image {
    width: 70px;
}

.image-card__image img {
    height: 100%;
    -webkit-object-fit: contain;
            object-fit: contain;
}

.image-card__info {
    width: calc(100% - 70px);
    padding-left: 20px;
}

.image-card__info h4 {
    margin: 0;
    padding: 0 0;
    font-size: 16px;
    line-height: 1.5em;
    color: #000000;
    font-weight: 500;
    font-family: "Roboto Flex", serif;
    letter-spacing: 0.05em;
    text-transform: capitalize;
}

.image-card__info .btn {
    display: none;
}

.image-cards__wrap {
    margin: 0 auto;
    max-width: 1046px;
}

.image-cards__headlines {
    margin-bottom: 29px;
}

.image-cards--homepage .image-card__image {
    width: 80px;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 8px;
}

.image-cards--homepage .image-card__info {
    width: calc(100% - 80px);
    padding-left: 12px;
}

@media (min-width: 768px){
    .image-cards--homepage {
        margin-top: 40px;
        max-width: 100%;
        margin: 40px auto 0;
    }

    .image-cards__headlines {
        margin-bottom: 10px;
    }

    .image-cards__col {
        margin: 25px 16px 0 16px;
        width: calc(33.333% - 32px);
    }
    
    .image-card {
        height: 250px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
        padding: 10px 21px;
        text-align: center;
        flex-direction: column;
    }
    
    .image-card__image {
        width: 119px;
        margin: 0 auto;
        height: 119px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .image-card__info {
        width: 100%;
        padding-left: 0;
    }

    .image-card__info h4 {
        font-size: 20px;
        line-height: 1.2em;
    }

    .image-cards--homepage .image-cards__col {
        margin: 10px 16px;
    }

    .image-cards--homepage .image-card {
        height: 225px;
        padding: 25px 10px;
    }

    .image-cards--homepage .image-card__image {
        /* width: 54px; */
        margin: 0 auto 12px;
        height: auto;
        width: 119px;
        height: 85px;
    }
    
    .image-cards--homepage .image-card__info {
        width: 100%;
        padding-left: 0;
    }

    .image-cards--homepage .image-card__info h4 {
        font-size: 20px

    }
}

@media (min-width: 1200px){
    .image-cards--homepage {
        max-width: 1045px;
        margin: 100px auto 0;
    }

    .image-cards__headlines {
        margin-bottom: 25px;
    }

    .image-cards__col {
        width: calc(20% - 32px);
    }
    
    .image-card,
    .image-cards--homepage .image-card {
        height: auto;
        border-radius: 20px;
        height: 235px;
        padding: 0 12px 0;
        position: relative;
        overflow: hidden;
        background: linear-gradient(to right,  #c8890e 0%,#f2b740 52%,#c8890e 100%); 
        z-index: 1;
        flex-wrap: unset;
        transition: all ease-in-out 0.3s;
        gap: 10px;
        padding: 10px 12px;
        justify-content: flex-start;
    }
    
    .image-card__image,
    .image-cards--homepage .image-card__image {
        width: auto;
        min-height: 119px;
        margin: 0 auto 0;
        display: flex;
        align-items: center;
        transition: all ease-in-out 0.3s;
        justify-content: center;
    }

    .image-card__image img {
        filter: drop-shadow(0px 3px 12px rgba(114, 79, 8, 0.25));
    }

    .image-card__info {
        width: 100%;
        padding-left: 0;
    }

    .image-card__info h4,
    .image-cards--homepage .image-card__info h4 {
        font-size: 18px;
        line-height: 1.2em;
    }

    .image-card::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background: #fff; 
        z-index: -1;
        border-radius: 20px;
    } 

    .image-card:hover::before {
        height: calc(100% - 13px);
    }

    .image-card:hover {
        background: linear-gradient(to right, #c8890e 0%, #f2b740 52%, #c8890e 100%);
        padding: 0 12px 30px;
    }

    .image-card__info .btn {
        display: inline-block;
        opacity: 0;
        /* transition: all ease-in-out 0.3s; */
        font-size: 22px;
        font-variant: all-small-caps;
        font-weight: 600;
        margin-top: 4px;
        padding: 0 22px 0 0;
        letter-spacing: 0.05em;
    }

    .image-card__info .btn::before {
        font-size: 14px;
        top: 12px;
    }

    .image-card:hover .image-card__info .btn {
        opacity: 1;
        transition: all ease-in-out 0.3s;
    }

    .image-card:hover .image-card__image {
        min-height: 83px;
        margin: 0 auto 12px;
    }
}

