/*
	README

	Modify this file as much or as little as needed.

	This file is shared across all CCL widgets in the Side-by-Side 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-side-by-side {
	--color-display-hover-secondary: #ab2c1c;
	width: 100%;
    position: relative;
    margin-bottom: 15px;
	padding-top: var(--widget-padding-top);
}

.kit2 .core-side-by-side .widget-header {
    --text-color: #161314;
}

.kit2 .core-side-by-side .widget-header-inner {
    padding: 0;
    border: none;
}

.kit2 .core-side-by-side .widget-header-inner .widget-title {
    font-size: var(--text-4xl);
    line-height: 2.75rem;
    font-family: var(--font-header);
    font-weight: 400;
    letter-spacing: 0.7px;
}

.kit2 .core-side-by-side .slide .slide-title {
	color: var(--color-display);
	font-family: var(--font-header);
    font-size: 1.375rem;
    line-height: normal;
    letter-spacing: 0.46px;
    font-weight: 300;
    text-align: center;
    max-width: 200px;
    margin: 0 auto;
}

.kit2 .core-side-by-side .slide p {
	font-size: var(--text-base);
	line-height: var(--leading-tight);
}

.kit2 .core-side-by-side .slides.slide-left,
.kit2 .core-side-by-side .slides.slide-right {
    position: relative;
    padding: 0;
}

/* Default colour theme uses primary colour */
.kit2 .core-side-by-side .slides .slide > .inner {
    background: var(--primary-color);
    padding: 0;
}

/* Adding additional class 'theme-secondary' that will update widget background colour to the secondary color if selected in the CMS */
.kit2 .core-side-by-side.theme-secondary .slides .slide > .inner {
    background: var(--secondary-color);
}

.kit2 .core-side-by-side .slides .slide > .inner .content-section {
    padding: 30px;
}

.kit2 .core-side-by-side .slides .slide .content-section .inner {
    max-width: 100%;
    margin: auto;
    padding: 0;
    gap: var(--space-16);
}

.kit2 .core-side-by-side .slide .slide-top {
    display: flex;
    align-items: center;
    gap: 0;
}

.kit2 .core-side-by-side .slide .slide-top .img-cont {
    margin: 0;
}

.kit2 .core-side-by-side .slides .slide .content-top {
    gap: var(--space-5);
}

.kit2 .core-side-by-side .slides .slide .content-top .slide-title a {
    color: var(--white);
}

.kit2 .core-side-by-side .slides .slide .content-top p {
    font-size: var(--text-lg);
    color: var(--white);
    font-weight: 400;
    letter-spacing: 0.4px;
    text-align: center;
    position: relative;
}

.kit2 .core-side-by-side .slides .slide .slide-footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    min-width: 180px;
    position: relative;
}

.kit2 .core-side-by-side .slides .slide .slide-footer::before {
    content: '';
    height: 35px;
    width: 35px;
    background: url('/includes/public/assets/shared/arrows/arrow_circle.svg') no-repeat center center;
}

.kit2 .core-side-by-side .slides .slide .slide-footer::after {
    content: '';
    height: 1px;
    width: 100%;
    background: #fff;
    position: absolute;
    top: -31px;
    left: 0;
}

.kit2 .core-side-by-side .slides .slide .slide-footer a {
    margin: 0;
    padding: 0 0 0 10px;
    background: none;
    font-size: var(--text-lg);
    color: var(--white);
    font-weight: 300;
    letter-spacing: 0.4px;
}

.kit2 .core-side-by-side .slides .slide .slide-footer a:hover {
    background: none;
    text-decoration: underline;
}

.kit2 .core-side-by-side .slides .slide .slide-footer a:hover {
    color: var(--white);
}

/* Kit2 Tablet */
@media (min-width: 40em) {
    .kit2 .core-side-by-side {
        margin-bottom: var(--space-10);
    }

    .kit2 .core-side-by-side.theme-secondary .slides .slide > .inner {
        background: none;
        color: var(--black)
    }

    /* Default colour theme uses primary colour */
    .kit2 .core-side-by-side .slides .slide > .inner::before {
        content: '';
        background: var(--primary-color);
        position: absolute;
    }

    /* Adding additional class 'theme-secondary' that will update widget background colour to the secondary color if selected in the CMS */
    .kit2 .core-side-by-side.theme-secondary .slides .slide > .inner::before {
        content: '';
        background: var(--secondary-color);
        position: absolute;
    }

    .kit2 .core-side-by-side .slide-right .slide > .inner::before {
        width: 100%;
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        height:100%;
    }
    
    .kit2 .core-side-by-side .slide-left .slide > .inner::before {
        width: 100%;
        position: absolute;
        top: 0;
        bottom: 0;
        right: 0;
        height:100%;
    }
}

/* Kit2 Desktop */
@media (min-width: 64em) {
    .kit2 .core-side-by-side .slide-right .slide > .inner::before, 
    .kit2 .core-side-by-side .slide-left .slide > .inner::before {
        width: 85%;
    }
    .kit2 .core-side-by-side .slides .slide > .inner {
        background: none;
        padding: var(--space-20) 0;
    }
}

.kit2 .side-by-side-2-across.theme-secondary .slides .slide .content-top .slide-title,
.kit2 .side-by-side-2-across.theme-secondary .slides .slide .content-top .slide-title a {
    color: var(--black);
}