/*  Sets styles for individual    */
/*  card (used for links & lists) */
/* -----------------------------  */

.c_card {
    display: block;
    position: relative;
    border: 1px solid var(--eco-l-grey);
    background-color: white;
    margin: -1px 0 0 -1px;
}

.c_card_wrap {
    width: 100%;
    height: auto;
    /* background-color: white; */
    /* display: block !important; */
    position: relative;
    z-index: 100;
}

.c_card_wrap:hover {
    cursor: pointer;
}

.c_card_no-data {
    visibility: hidden;
}

.c_card--hidden {
    display: none;
}

.c_card_read  {
    position: absolute;
    left: 20px;
    bottom: 40px;
    width: 100%;
    visibility: transparent;
    /* display: none; */
}

.c_card_read:hover {
    display: block;
    color: white;
    text-decoration: none !important;
}

@media only screen and (max-width: 600px) {
    .c_card {
        width: 100%;
        padding-bottom: 100%;
        background-color: white;
        margin: -1px 0 0 0;
    }
}

@media only screen and (min-width: 600px) {
    .c_card {
        width: 50%;
        padding-bottom: 50%;
        background-color: white;
        margin: -1px 0 0 -1px;
    }
}

@media only screen and (min-width: 1200px) {
    .c_card {
        width: 25%;
        padding-bottom: 25%;
        background-color: white;
        margin: -1px 0 0 -1px;
    }

    .c_card_wrap {
        /* display: block !important; */
        position: relative;
        width: 100%;
        height: 100%;
    }
}

.c_card:hover,
.c_card_smi_wrap:hover,
.c_card_event:hover,
.c_card_digest:hover {
    box-shadow: 0 30px 50px var(--eco-grey);
    z-index: 10;
    transition: box-shadow 0.2s ease-in-out;
    border: 1px solid var(--eco-l-grey);
}

.c_card:hover .c_card_news div:last-child,
.c_card_smi_wrap:hover .c_card_smi .b_body {
    text-decoration: underline;
}

.c_card_service_wrap:hover {
    background-color: var(--eco-green);
    box-shadow: 0 30px 50px var(--eco-grey);
    z-index: 10;
    transition: box-shadow 0.2s ease-out;
    border: 1px solid var(--eco-green);
    color: white !important;
    text-decoration: underline;
}

.c_card_service {
    position: absolute;
    top: 40%;
    padding-right: 10%;
    left: 20px;
}

.c_card_news {
    position: absolute;
    /* padding: 0 20px; */
    width: 80%;
    top: 20px;
    left: 20px;
}

.c_card_news a {
    display: inline-block;
}

.c_card-date {
    position: relative;
    padding-bottom: 10px;
    width: 100%;
    border-bottom: 1px solid var(--eco-green);
}

.c_card-tag-name {
    position: absolute;
    top: 0;
    right: 0;
}

.c_news_read {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 100%;
    /* color:white */
}

.c_card:hover > .c_news_read,
.c_card_smi_wrap:hover > .c_news_read,
.c_card_event:hover > .c_news_read,
.c_card_digest:hover > .c_news_read > a {
    color: var(--eco-green);
}

/* Publication card */

.c_card_smi_wrap {
    position: relative;
    border: 1px solid var(--eco-l-grey);
    width: 50%;
    padding-bottom: 25%;
    background-color: white;
    margin: -1px 0 0 -1px;
}

.c_card_smi {
    position: absolute;
    /* padding: 0 20px; */
    width: 92%;
    top: 20px;
    left: 20px;
}

@media only screen and (max-width: 600px) {
    .c_card_smi_wrap {
        position: relative;
        border: 1px solid var(--eco-l-grey);
        width: 100%;
        padding-bottom: 100%;
        background-color: white;
        margin: -1px 0 0 -1px;
    }

    .c_card_smi {
        /* position: absolute; */
        /* padding: 0 20px; */
        width: 85%;
        /* top: 20px; */
        /* left: 20px; */
    }
}

@media only screen and (min-width: 600px) and (max-width: 1200px) {
    .c_card_smi_wrap {
        position: relative;
        border: 1px solid var(--eco-l-grey);
        width: 50%;
        padding-bottom: 50%;
        background-color: white;
        margin: -1px 0 0 -1px;
    }
}

/* =========== */
/* Events card */
/* =========== */

.c_card_event {
    position: relative;
    border: 1px solid var(--eco-l-grey);
    width: 33.3%;
    padding-bottom: 60%;
    background-color: white;
    margin: -1px 0 0 -1px;
}

@media only screen and (min-width: 300px) and (max-width: 400px) {
    .c_card_event {
        position: relative;
        border: 1px solid var(--eco-l-grey);
        width: 100%;
        height: 100%;
        padding-bottom: 300%;
        background-color: white;
        margin: -1px 0 0 -1px;
    }
}

@media only screen and (min-width: 400px) and (max-width: 600px) {
    .c_card_event {
        position: relative;
        border: 1px solid var(--eco-l-grey);
        width: 100%;
        /* height: 200%; */
        padding-bottom: 180%;
        background-color: white;
        margin: -1px 0 0 -1px;
    }
}

@media only screen and (min-width: 600px) and (max-width: 800px) {
    .c_card_event {
        position: relative;
        border: 1px solid var(--eco-l-grey);
        width: 100%;
        padding-bottom: 150%;
        background-color: white;
        margin: -1px 0 0 -1px;
    }
}
@media only screen and (min-width: 800px) and (max-width: 1000px) {
    .c_card_event {
        position: relative;
        border: 1px solid var(--eco-l-grey);
        width: 50%;
        padding-bottom: 100%;
        background-color: white;
        margin: -1px 0 0 -1px;
    }
}

@media only screen and (min-width: 1000px) and (max-width: 1300px) {
    .c_card_event {
        position: relative;
        border: 1px solid var(--eco-l-grey);
        width: 50%;
        padding-bottom: 80%;
        background-color: white;
        margin: -1px 0 0 -1px;
    }
}

@media only screen and (min-width: 1800px) {
    .c_card_event {
        position: relative;
        border: 1px solid var(--eco-l-grey);
        width: 33.3%;
        padding-bottom: 50%;
        background-color: white;
        margin: -1px 0 0 -1px;
    }
}

.c_card_event_date {
    float: left;
    margin-right: 25px;
    padding: 18px 6px;
    width: 70px;
    height: 85px;
    text-align: center;
}

.c_card_event_date span {
    display: block;
}

@media only screen and (max-width: 400px) {
    .c_card_event_date {
        float: none;
        margin-right: 0;
        margin-bottom: 15px;
        padding: 18px 6px;
        width: 70px;
        height: 85px;
        text-align: center;
    }
}

.c_card_event--active {
    background: url('../../img/svg/ticket-icon_green.svg') center no-repeat;
    background-size: cover;
}

.c_card_event--past {
    background: url('../../img/svg/ticket-icon_grey.svg') center no-repeat;
    background-size: cover;
}


.c_card_event_location {
    padding-bottom: 30px;
    border-bottom: 1px solid var(--eco-green);
}

.c_card_event_address {
    position: relative;
    padding-left: 30px;
}

.c_card_event_address::before {
    position: absolute;
    content: '';
    width: 20px;
    height: 20px;
    top: 3px;
    left: 0;
    background: url('../../img/svg/geotag_green.svg') center no-repeat;
    background-size: contain;

}

.c_card_event_speaker {
    position: absolute;
    list-style: none;
    padding-left: 30px;
}

.c_card_event_speaker li {
    margin-bottom: 10px;
}

.c_card_event_speaker::before {
    position: absolute;
    content: '';
    width: 20px;
    height: 20px;
    top: 3px;
    left: 0;
    background: url('../../img/svg/mic_green.svg') center no-repeat;
    background-size: contain;
} 

/* ============ */
/* Digest cards */
/* ============ */

.c_card_digest {
    position: relative;
    border: 1px solid var(--eco-l-grey);
    width: 50%;
    padding-bottom: 40%;
    max-height: 480px !important;
    background-color: white;
    margin: -1px 0 0 -1px;
}

.c_card_digest .c_card_news {
    width: 92%;
}

.c_card_digest_img {
    width: 100px;
    margin-right: 3%;
    background-size: contain;
}

.c_card_digest_desc {
    display: flex;
    flex-wrap: wrap;
}

.c_card_digest_desc div:first-child {
    width: 25%;
}

.c_card_digest_desc div:last-child {
    width: 75%;
}

.c_card_digest_arch {
    display: block;
    width: 35%;
    background-size: contain;
}

@media only screen and (max-width: 350px) {

    .c_card_digest {
        position: relative;
        width: 100%;
        padding-bottom: 300%;
        background-color: white;
        margin: -1px 0 0 -1px;
    }

        .c_card_digest_desc div:first-child {
        width: 50%;
    }
        .c_card_digest_desc div:last-child {
        width: 90%;
    }

    .c_card_digest_img {
        width: 50px;
        background-size: contain;
    }

    
}

@media only screen and (min-width: 350px) and (max-width: 600px) {
    .c_card_digest {
        position: relative;
        border: 1px solid var(--eco-l-grey);
        width: 100%;
        padding-bottom: 250%;
        background-color: white;
        margin: -1px 0 0 -1px;
    }


    .c_card_digest_desc div:first-child {
        width: 50%;
    }
    .c_card_digest_desc div:last-child {
        width: 90%;
    }

    .c_card_digest_img {
        width: 50px;
        background-size: contain;
    }
}
@media only screen and (min-width: 600px) and (max-width: 800px) {
    .c_card_digest {
        position: relative;
        border: 1px solid var(--eco-l-grey);
        width: 100%;
        padding-bottom: 130%;
        background-color: white;
        margin: -1px 0 0 -1px;
    }


    .c_card_digest_desc div:first-child {
        width: 25%;
    }
    .c_card_digest_desc div:last-child {
        width: 75%;
    }

    .c_card_digest_img {
        width: 100px;
        background-size: contain;
    }
}

@media only screen and (min-width: 800px) and (max-width: 1000px) {
    .c_card_digest {
        position: relative;
        border: 1px solid var(--eco-l-grey);
        width: 100%;
        padding-bottom: 65%;
        background-color: white;
        margin: -1px 0 0 -1px;
    }


    .c_card_digest_desc div:first-child {
        width: 20%;
    }
    .c_card_digest_desc div:last-child {
        width: 80%;
    }

    .c_card_digest_img {
        width: 100px;
        background-size: contain;
    }
}

@media only screen and (min-width: 1000px) and (max-width: 1200px) {
    .c_card_digest {
        position: relative;
        border: 1px solid var(--eco-l-grey);
        width: 50%;
        padding-bottom: 90%;
        background-color: white;
        margin: -1px 0 0 -1px;
    }


    .c_card_digest_desc div:first-child {
        width: 50%;
    }
    .c_card_digest_desc div:last-child {
        width: 90%;
    }

    .c_card_digest_img {
        width: 50px;
        background-size: contain;
    }
}
@media only screen and (min-width: 1200px) and (max-width: 1800px) {
    .c_card_digest {
        position: relative;
        border: 1px solid var(--eco-l-grey);
        width: 50%;
        padding-bottom: 54%;
        background-color: white;
        margin: -1px 0 0 -1px;
    }


    .c_card_digest_desc div:first-child {
        width: 25%;
    }
    .c_card_digest_desc div:last-child {
        width: 75%;
    }

    .c_card_digest_img {
        width: 100px;
        background-size: contain;
    }
}

@media only screen and (min-width: 1800px) {
    .c_card_digest {
        position: relative;
        border: 1px solid var(--eco-l-grey);
        width: 50%;
        padding-bottom: 33.3%;
        background-color: white;
        margin: -1px 0 0 -1px;
    }

    .c_card_digest_desc div:first-child {
        width: 20%;
    }
    .c_card_digest_desc div:last-child {
        width: 80%;
    }
}
