/*
	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.
*/

/* Kit2 styling */
.kit2 .core-cards {
	--color-display-hover-secondary: #ab2c1c;

	position: relative;
	margin-bottom: var(--widget-margin-bottom);
	padding-top: var(--widget-padding-top);
}

.kit2 .core-cards .widget-header {
    --text-color: #161314;
}

.kit2 .core-cards .widget-header-inner {
    padding: 0;
    border: none;
}

.kit2 .core-cards .widget-header-inner .widget-title {
    font-size: var(--text-4xl);
    line-height: 2.75rem;
    font-family: var(--font-body);
    font-weight: 400;
    letter-spacing: 0.7px;
}

.kit2 .core-cards .widget-header-inner .widget-view-all {
    display: none;
}

.kit2 .core-cards .slides {
    position: relative;
    padding: 0 var(--space-10) var(--space-10);
    gap: var(--space-10);
}

/* Default colour theme uses primary colour */
.kit2 .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 */
.kit2 .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 */
.kit2 .core-cards.theme-secondary .slides .slide-title a:hover {
    color: inherit;
    text-decoration: underline;
}

.kit2 .core-cards .slides .slide {
    background: var(--gray);
    padding: 10px;
    position: relative;
}

/* Default colour theme uses primary colour */
.kit2 .core-cards .slide .slide-title {
	font-family: var(--font-body);
    font-size: var(--text-2xl);
    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 */
.kit2 .core-cards.theme-secondary .slide .slide-title {
    color: var(--text-color);
}

.kit2 .core-cards .slides .slide .slide-title a {
    display: flex;
    width: 100%;
    text-align: center;
}

.kit2 .core-cards .slide p {
	font-size: var(--text-lg);
    letter-spacing: 0.4px;
    font-weight: normal;
    text-align: center;
    color: var(--font-color);
}


.kit2 .core-cards .slides .slide .img-cont {
    margin: 0;
}

.kit2 .core-cards .slides .slide .content-section {
    padding: 15px 0;
    gap: 15px;
}

.kit2 .core-cards .slides .slide .content-section .inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.kit2 .core-cards .slides .slide .slide-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
    gap: var(--space-3);
}

.kit2 .core-cards .slides .slide .slide-footer a {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
    gap: var(--space-3);
}

.kit2 .core-cards .slide .slide-footer .qv-btn {
    background: transparent;
    color: var(--primary-color);
}

.kit2 .core-cards .slide .slide-footer .qv-btn:hover {
    color: var(--text-color);
}

.kit2 .core-cards .slide .slide-footer .qv-btn:hover span {
    text-decoration: underline;
}

.kit2 .core-cards .slides .slide .slide-footer img {
    height: 35px;
    width: 35px;
    color: var(--primary-color);
    transition: var(--transition-appendix);
}

.kit2 .core-cards.theme-secondary .slides .slide .slide-footer img {
    content: url('/includes/client_public/assets/shared/arrows/arrow_right_white.svg');
}

.kit2 .core-cards .slides .slide .slide-footer a {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--primary-color);
    background: none;
    margin: 0;
    padding: 0 0 0 10px;
}

.kit2 .core-cards.theme-secondary .slides .slide .slide-footer a {
    color: var(--secondary-color);
}

.kit2 .core-cards .slides .slide .slide-footer a:hover {
    background: none;
    text-decoration: underline;
}

.kit2 .core-cards .slides .slide .slide-footer a:hover img {
    content: url('/includes/client_public/assets/shared/arrows/arrow_circle_dark.svg');
}

/* Kit2 tablet */
@media (min-width: 40em) {
    .kit2 .core-cards {
        position: relative;
    }

    .kit2 .core-cards .slides .slide .slide-title {
        max-width: 70%;
    }

    .kit2 .core-cards .slides .slide .content-section {
        padding: 25px 0;
    }
}

/* Kit2 Desktop */
@media (min-width: 64em) {
    .kit2 .core-cards .slides {
        gap: 15px;
        padding: 0 35px 70px;
    }

    .kit2 .core-cards .slides::before {
        top: 25%;
        height: 75%;
    }

    .kit2 .core-cards .slides .slide {
        padding: 15px;
    }

    .kit2 .core-cards .widget-header-inner .widget-title {
        font-size: var(--text-5xl);
    }
}
