/*
	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;
	margin-bottom: var(--widget-margin-bottom);
	padding-top: var(--widget-padding-top);
}

.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;
    gap: 20px;
}

@media (min-width: 40em) {
    .core-cards .slides {
        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: 5%;
    height: calc(95% + 30px);
    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(--primary-color);
    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: center;
}

.core-cards .slide p {
	font-size: 1.1rem;
    letter-spacing: 0.4px;
    font-weight: normal;
    text-align: center;
    color: var(--font-color);
}


.core-cards .slides .slide .img-cont {
    margin: 0;
}

.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;
    flex-direction: column;
}

.core-cards .slides .slide .slide-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
}

.core-cards .slides .slide .slide-footer::before {
    content: '';
    height: 35px;
    width: 35px;
    background: url('/includes/client_public/assets/shared/arrows/arrow_right_white.svg') no-repeat center center var(--primary-color);
    background-size: 7px;
    border-radius: 50%;
}

.core-cards.theme-secondary .slides .slide .slide-footer::before {
    content: '';
    height: 35px;
    width: 35px;
    background: url('/includes/client_public/assets/shared/arrows/arrow_right_white.svg') no-repeat center center var(--secondary-color);
    background-size: 7px;
    border-radius: 50%;
}

.core-cards .slides .slide .slide-footer a {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--primary-color);
    background: none;
    margin: 0;
    padding: 0 0 0 10px;
}

.core-cards.theme-secondary .slides .slide .slide-footer a {
    color: var(--secondary-color);
}

.core-cards .slides .slide .slide-footer a:hover {
    background: none;
    text-decoration: underline;
}

@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;
    }
    .core-cards .slides::before {
        top: 10%;
        height: 90%;
    }
}

@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;
    }
}
