/*
	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 {
    line-height: 2.75rem;
    font-family: var(--font-body);
    font-weight: 400;
    letter-spacing: 0.7px;
}

.kit2 .core-side-by-side .slide .slide-title {
	color: var(--color-display);
	font-family: var(--font-body);
    font-size: 1.375rem;
    line-height: normal;
    letter-spacing: 0.46px;
    font-weight: 400;
    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 .blog-feed-header-mobile-container .blog-feed-header {
    display: none;
}
.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.theme-secondary .slides .slide .content-top .slide-title a {
    color: var(--text-color);
}

.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 .content-top .heading-container .blog-feed-header,
.kit2 .core-side-by-side .slides .slide .content-top .details {
    justify-content: center;

}

.kit2 .core-side-by-side .slides .slide .content-top .heading-container .blog-feed-header span,
.kit2 .core-side-by-side .slides .slide .content-top .heading-container .blog-feed-header time {
    color: var(--white);
}

.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 a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
}

.kit2 .core-side-by-side .slides .slide .slide-footer img {
    height: 35px;
    width: 35px;
}

.kit2 .core-side-by-side.theme-secondary .slides .slide .slide-footer img {
    content: url('/includes/client_public/assets/shared/arrows/arrow_circle_dark.svg');
    transition: var(--transition-appendix);
}

.kit2 .core-side-by-side .slides .slide .slide-footer::after {
    content: '';
    height: 1px;
    width: 50%;
    background: #fff;
    position: absolute;
    top: -31px;
    left: 25%;
}

.kit2 .core-side-by-side.theme-secondary .slides .slide .slide-footer::after {
    background: var(--black);
    transition: var(--transition-appendix);
}

.kit2 .core-side-by-side .slides .slide .slide-footer a {
    margin: 0;
    padding: 0 0 0 10px;
    background: none;
    font-size: var(--text-base);
    color: var(--white);
    font-weight: 600;
    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 .core-side-by-side .slide .slide-footer .qv-btn {
    background: transparent;
}

.kit2 .core-side-by-side .slide .slide-footer .qv-btn:hover span {
    text-decoration: underline;
}


/* 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;
    }

    /* 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;
    }
}