/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
*/

/* Learning Centre Styles */

.learning-centre-cards-container {
	max-width: 1160px;
	padding: 0 30px;
	margin: 50px auto 65px;
}

.learning-centre-cards-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-start;
}

.learning-centre-card-wrapper {
	margin: 0 calc(7% - 5px) 50px 0;
	width: 46.5%;
	display: inline-block;
	height: calc(100% - 50px);
}

.learning-centre-card-wrapper:nth-child(even) {
	margin-right: 0;
}

.learning-centre-card {
	min-height: 170px;
	height: auto;
	width: 100%;
	padding: 15px 50px 5px 190px;
	border: 0px solid transparent;
	border-right-width: 5px;
	border-image: url('/wp-content/uploads/2019/06/rainbow_vertical.jpg') 10;
	position: relative;
	overflow: visible;
	border-radius: 15px 0 0 15px;
	box-shadow: rgba(150, 150, 150, 0.2) -1px 0px 5px 0px;

	display: inline-block;
}

.learning-centre-card .learning-centre-imageframe {
	-webkit-border-radius: 60.0985% 36.9458% 60.5911% 36.4532% / 54.491% 42.515% 53.8922% 43.1138%;
	-moz-border-radius: 60.0985% 36.9458% 60.5911% 36.4532% / 54.491% 42.515% 53.8922% 43.1138%;
	border-radius: 60.0985% 36.9458% 60.5911% 36.4532% / 54.491% 42.515% 53.8922% 43.1138%;
	margin-right: 25px;
	position: absolute;
	left: -30px;
	top: 5px;
	overflow: hidden;
	vertical-align: center;
	height: 168px;
	width: 203px;
}

.learning-centre-card-image-placeholder {
	height: 100%;
	width: 100%;
}

.learning-centre-card h3 {
	margin-top: 5px;
	margin-bottom: 5px;
	line-height: 1.1;
}

.learning-centre-card p:first-of-type {
	color: #6b6b6b;
}

.learning-centre-card p svg {
	transition: all 0.2s linear;
}

.learning-centre-card-wrapper:hover p svg {
	fill: #f05858;
}

.learning-centre-card .blue-fill {
	margin-bottom: 15px;
	display: inline-block;
}

@media only screen and (max-width: 1200px) {
	.learning-centre-card {
		padding: 15px 0 15px 205px;
	}

	.learning-centre-card .learning-centre-imageframe {
		left: -15px;
	}
}

@media only screen and (max-width: 800px) {
	.learning-centre-card-wrapper {
		width: 100%;
		margin-right: 0;
	}
}

@media only screen and (min-width: 451px) and (max-width: 800px) {
	.learning-centre-card-wrapper {
		margin-bottom: 75px !important;
	}

	.learning-centre-card-row:last-of-type .learning-centre-card-wrapper:last-of-type {
		margin-bottom: 50px !important;
	}
}

@media only screen and (max-width: 475px) {
	.learning-centre-card {
		padding: 15px !important;
	}

	.learning-centre-card .learning-centre-imageframe {
		display: none;
	}
}

/* Category page */

.category-page-container {
	max-width: 1160px;
	padding: 0 30px;
	margin: 0 auto;
}

.category-page-header {
	padding: 15px 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}

.category-page-header-imageframe {
	height: 137px;
	width: 20%;
	display: inline-block;
}

.category-page-header-imageframe img {
	max-height: 100%;
	height: auto;
	width: auto;
	-webkit-border-radius: 60.0985% 36.9458% 60.5911% 36.4532% / 54.491% 42.515% 53.8922% 43.1138%;
    -moz-border-radius: 60.0985% 36.9458% 60.5911% 36.4532% / 54.491% 42.515% 53.8922% 43.1138%;
	border-radius: 60.0985% 36.9458% 60.5911% 36.4532% / 54.491% 42.515% 53.8922% 43.1138%;
}

.category-page-header-main {
	width: 80%;
	display: inline-block;
	padding-left: 25px;
}

.kd-category-page-header__content {
	width: 100%;
	display: block;
	margin-top: 20px;
	margin-bottom: 40px;
}

.category-page-articles-container {
	background-color: #f1f5f6;
	overflow: hidden;
	box-shadow: 0px 0px 5px 0px rgba(150,150,150,0.3);
	border-radius: 15px;
	padding: 30px 20px;
	margin-bottom: 50px;
}
.category-page-articles-container--alt .article-excerpt-wrapper {
	display: flex;
	align-items: center;
	min-height: 150px;
}

/* Article excerpts for the category page's */

.black-fill svg {
	fill: #000000;
}

.blue-fill svg {
	fill: #5867b2;
}

.article-excerpt-wrapper-link {
	position: relative;
	margin: 0 0 20px;
	transition: all 1.2s ease-in;
	opacity: 1;
	/* max-height: 300px; */
	border-radius: 10px;
	display: block;
	overflow: visible;
}

.article-excerpt-wrapper {
	border-radius: 10px;
	background-color: #ffffff;
	box-shadow: 0 0 5px 0 rgba(150, 150, 150, 0.3);
	position: relative;
	margin: 0 0 20px;
	padding: 20px 30px 20px 174px;
	transition: all 1.2s ease-in;
	opacity: 1;
	/* max-height: 300px; */
}

.article-excerpt-wrapper .article-excerpt-imageframe {
	height: 102px;
	width: 124px;
	border-radius: 44px 80px 43px 76px / 44px 56px 42px 57px;
	overflow: hidden;
	position: absolute;
	left: 20px;
	top: 20px;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
}

.article-excerpt-wrapper .article-excerpt-imageframe img {
	height: auto;
	width: auto;
	min-height: 100%;
	min-width: 100%;
	max-width: unset;
	max-height: 100%;
}

.article-excerpt-title {
	margin-bottom: 10px;
	font-weight: 500 !important;
}

.article-excerpt-text {
	color: #6b6b6b;
}

.article-excerpt-link {
	font-size: 16px;
	display: flex;
	align-items: center;
	color: #5867b2;
}

.article-excerpt-wrapper-link:hover .article-excerpt-link {
	color: #f05858;
}

.article-excerpt-link i {
	font-size: 12px;
}

@media only screen and (max-width: 500px) {
	.article-excerpt-wrapper {
		padding: 20px 30px;
	}

	.article-excerpt-wrapper .article-excerpt-imageframe {
		z-index: 1;
		opacity: 0.3;
		left: unset;
		right: 20px;
		top: unset;
		bottom: 20px;
		opacity: 0.5;
	}

	.article-excerpt-wrapper .article-excerpt-imageframe:before {
		content: ' ';
		position: absolute;
		right: 0; 
		top: 0;
		bottom: 0;
		left: 0;
		background-color: #ffffff;
		opacity: 0.5;
	}

	.article-excerpt-title {
		z-index: 10;
		position: relative;
	}

	.article-excerpt-text {
		z-index: 10;
		position: relative;
	}

	.article-excerpt-link {
		z-index: 10;
		position: relative;
	}
}

/* Accordion Styles */

.article-excerpt-hidden {
	opacity: 0;
	max-height: 0;
	margin: 0;
	padding: 0;
	z-index: -10;
}
html body.learning-centre #main,
html body.category-learning-centre #main {
	padding: 0;
}
.learning-centre #sidebar,
.single-learning_centre #sidebar,
.category-learning-centre #sidebar {
	display: none;
}
body.learning-centre.has-sidebar #content,
body.has-sidebar.single-learning_centre #content,
body.has-sidebar.category-learning-centre #content {
	width: 100%;
}

body.has-sidebar #content.kd-archive--learning-centre {
	width: 100%;
}

html body.tax-learning_centre_category #main,
html body.post-type-archive-learning_centre #main {
	padding: 0 0 30px;
}
body.tax-learning_centre_category #main .fusion-row,
body.post-type-archive-learning_centre #main .fusion-row {
	max-width: 100%;
}

/* Shortcode events List */
.kd-events-wrapper {
	background-color: rgb(255, 255, 255);
    background-position: right top;
    background-repeat: repeat;
    padding: 0px;
    margin-top: 0px;
    border-width: 0px;
    border-color: rgb(234, 233, 233);
    border-style: solid;
    background-image: url(https://www.centreforsexuality.ca/wp-content/uploads/2019/06/home_purple_dots.jpg);
}
.kd-events-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 2em;
	justify-content: space-between;
	max-width: 1100px;
	margin: auto;
}
.kd-events-wrapper .flex-control-nav {
	display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 15px 15px 0;
}
.kd-events-image-slider {
	height: 100%;
	position: relative;
	display: flex;
    align-items: center;
}
.kd-events-image-slider .slides {
	margin: 0;
	padding: 0;
    list-style: none;
    z-index: 2;
}
.kd-events-wrapper .flex-control-nav a {
    background: #717ebd;
    border-radius: 40.752% 55.639% 41.053% 55.639% / 48.269% 49.038% 47.115% 51.538%;
    height: 10.4px;
    width: 13.3px;
}
.kd-events-wrapper .flex-control-nav .flex-active {
    background: #f04e23;
}
.kd-events-image-slider img {
	min-width: 100%;
    min-height: 410px;
    width: auto !important;
    height: auto !important;
    object-fit: cover;
    background: white;
	/* padding: 40px; */
	max-height: 410px;
}
.kd-events-list {
	padding: 40px 0px;
}
.kd-events-list ul {
	list-style: none;
	padding-inline-start: 75px;
	margin-block-start: 0;
	margin-block-end: 0;
}
.kd-events-list li {
	position: relative;
}
.kd-events-list li::before {
	content: ' ';
    background-color: #ffd503;
    background-image: url(https://www.centreforsexuality.ca/wp-content/uploads/2019/06/calendar-today.png);
    display: inline-block;
    height: 50px;
    width: 60px;
    background-size: 30px;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    left: -75px;
    top: 0;
    border-radius: 40.752% 55.639% 41.053% 55.639% / 48.269% 49.038% 47.115% 51.538%;
}
.kd-events-wrapper .kd-events-list h3,
.kd-events-wrapper .kd-events-list h3 a {
	margin-bottom: 0;
	line-height: 1;
	color: #ffffff;
}
.kd-events-wrapper h3 a:hover,
.kd-events-wrapper h3 a:focus {
	color: #ffd503;
}
.kd-events-wrapper p {
	color: #ffffff;
}
@media only screen and (max-width:768px) {
	.kd-events-container {
		grid-template-columns: 1fr;
	}
	.kd-events-list {
		padding: 40px 20px;
	}
}