/*
 * Card component include style for gallura template.
 */

a.card-component {
    display: block;
    width: 25%;
    position: relative;
    border-left: 1px solid #CCCCCC;
    border-right: 1px solid #CCCCCC;
    border-bottom: 1px solid #CCCCCC;
    border-radius: 15px;
    -webkit-box-shadow: 0px 0px 15px 0px rgba(0,0,0,0.2);
       -moz-box-shadow: 0px 0px 15px 0px rgba(0,0,0,0.2);
         -o-box-shadow: 0px 0px 15px 0px rgba(0,0,0,0.2);
            box-shadow: 0px 0px 15px 0px rgba(0,0,0,0.2);
    margin: 2em 4.16%;
}

a.card-component div.image {
    position: relative;
    padding: 5.5em 0;
    border-radius: 15px 15px 0 0;
    overflow: visible;
}

a.card-component div.image div#created {
    padding: 1em 5%;
    border-radius: 0 12% 12% 0;
    width: 55%;
    color: var(--white);
    position: absolute;
    top: 3.5em;
    left: -2em;
    display: flex;
    align-items: center;
}

a.card-component div.image div#created p.day {
    padding-right: 0.5em;
    font-size: 2em;
}

a.card-component div.image div#created div p {
    font-size: .8em;
}

a.card-component div.text {
    padding: 1.5em 5%;
}

a.card-component div.text p {
    font-weight: bold;
}

a.card-component div.text h3 {
    margin-bottom: .5em;
    text-transform: capitalize;
}

/* Mobile menu activates */
@media screen and (max-width: 768px) {
    a.card-component {
        width: 40%;
        margin: 2em 5%;
    }
}
  
@media screen and (max-width: 576px) {
    a.card-component {
        width: 100%;
        margin: 2em 0;
    }
}