/*
	README

	Modify this file as much or as little as needed.

	This file is shared across all CCL widgets in the Cards family. This enables the ability to
	a family of widgets in a single update without touching the structure of the widget and without needing
	to duplicate efforts across several widget-specific CSS files.
*/

.core-cards {
	--color-display-hover-secondary: #ab2c1c;

	position: relative;
	padding-top: var(--widget-padding-top);
}

@media (min-width: 40em) {
    .core-cards {
        margin-bottom: var(--widget-margin-bottom);
    }
}

.core-cards .widget-header {
    --text-color: #161314;
}

.core-cards .widget-header-inner {
    padding: 0;
    border: none;
}

.core-cards .widget-header-inner .widget-title {
    font-size: 2.1rem;
    line-height: 2.75rem;
    font-family: var(--font-header);
    font-weight: 400;
    letter-spacing: 0.7px;
}

.core-cards .widget-header-inner .widget-view-all {
    display: none;
}

.core-cards .slides {
    position: relative;
    padding: 0 40px 40px;
    gap: 40px;
}

/* Default colour theme uses primary colour */
.core-cards .slides::before {
    content: '';
    background: var(--primary-color);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 10%;
    height: 90%;
    width: 100%;
}

/* Adding additional class 'theme-secondary' that will update widget background colour to the secondary color if selected in the CMS */
.core-cards.theme-secondary .slides::before {
    content: '';
    background: var(--secondary-color);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 10%;
    height: 90%;
    width: 100%;
}

/* Adding additional class 'theme-secondary' that will update read more hover */
.core-cards.theme-secondary .slides .slide-title a:hover {
    color: var(--color-display-hover-secondary);
}

.core-cards .slides .slide {
    background: var(--gray);
    padding: 10px;
    position: relative;
}

/* Default colour theme uses primary colour */
.core-cards .slide .slide-title {
	font-family: var(--font-header);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--color-display);
    line-height: 1.8rem;
    letter-spacing: 0.52px;
    text-align: center;
    max-width: 80%;
}

/* Adding additional class 'theme-secondary' that will update widget title colour to the secondary colour */
/* .core-cards.theme-secondary .slide .slide-title {
    color: var(--secondary-color);
} */

.core-cards .slides .slide .slide-title a {
    display: flex;
    width: 100%;
    text-align: left;
}

.core-cards .slides .slide .slide-title a:hover {
    color: var(--white);
    text-decoration: none;
}

.core-cards .slide p {
	font-size: 1.1rem;
    letter-spacing: 0.4px;
    font-weight: normal;
    text-align: center;
    color: var(--font-color);
    display: none !important;
}


.core-cards .slides .slide .img-cont {
    margin: 0;
    position: relative;
}

.core-cards .slides .slide .img-cont::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent);
    pointer-events: none;
}

.core-cards .slides .slide img {
    transition: transform 1s;
}

.core-cards .slides .slide:hover img {
    transform: scale(1.025);
}

.core-cards .slides .slide .content-section {
    padding: 15px 0;
    gap: 15px;
}

.core-cards .slides .slide .content-section .inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.core-cards .slides .slide .slide-footer {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0;
    margin: 0;
}

/* .core-cards .slides .slide .slide-footer::after {
    content: '';
    height: 12px;
    width: 12px;
    background: url('/includes/public/assets/shared/arrows/arrow.svg') no-repeat center center;
    background-size: 100%;
}

.core-cards .slides .slide .slide-footer a {
    display: flex;
    font-size: var(--text-lg);
    font-weight: bold;
    color: var(--text-color);
    text-transform: uppercase;
    background: none;
    margin: 0;
}

.core-cards.theme-secondary .slides .slide .slide-footer a {
    color: var(--secondary-color);
} */

@media (min-width: 40em) {
    .core-cards {
        position: relative;
    }

    .core-cards .slides .slide .slide-title {
        max-width: 70%;
    }

    .core-cards .slides .slide .content-section {
        padding: 25px 0;
    }
}

@media (min-width: 64em) {
    .core-cards .slides {
        gap: 15px;
        padding: 0 35px 70px;
    }

    .core-cards .slides::before {
        top: 25%;
        height: 75%;
    }

    .core-cards .slides .slide {
        padding: 15px;
    }
}
