h1 {
	font-size: 35px; /*Down from 48px across other pages on the site...*/
}
/*--------------------------------
	Course Catalog 
--------------------------------*/
#search-bar {
	background: #1F1F1F;
	padding: 12px;
	padding-top: 0;
	position: relative;
	z-index: 10;
}
#search-bar .col-md-12 {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	position: relative;
}
#search-courses input[type="search"] {
	font-size: 12px;
	height: 30px;
	font-family: "neue-haas-grotesk-text", "Helvetica Neue", Helvetica, Arial, sans-serif;
	border-radius: 0px;
	border: 1px solid #231F20;
	padding: 6px 12px;
	width: 206px;
}
#search-bar .filter-controls {
	font-family: "neue-haas-grotesk-text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
#search-bar .filter-controls button,
#search-bar label {
	font-size: 14px;
	color: #BBBDBF;
	padding: 2px 15px 4px;
	background: transparent;
	border: 1px solid white;
	box-shadow: none;
	margin-right: 1em;
	line-height: 22px;
	text-transform: capitalize;
}
#search-bar button:hover,
#search-bar button.active,
#search-bar label:hover,
#search-bar input:checked + label  {
	color: #ffffff;
	background: #177981;
}
@media (max-width: 450px) {
	#search-courses {
		margin-right: 1em;
	}
	#search-bar label[for="categories-toggle"] {
		margin-right: 0;
		text-align: center;
		max-width: min-content;
		line-height: 1.3;
	}
	#search-bar label[for="categories-toggle"]::after {
		content: none;
	}
}
#search-bar #filter-sort {
	display: none;
}
#search-bar #categories-toggle:checked ~ #filter-sort {
	display: block; /*Fallback for browsers that don't support CSS grid yet*/
	display: grid;
	grid-gap: 30px;
	grid-template-columns: 1fr 1fr;
	position: absolute;
	background-color: #424453;
	color: white;
	z-index: 10;
	font-size: 14px;
	padding: 30px 20px;
	padding: 30px 0; /*Delete style if full screen filter is removed*/
	width: calc(100% - 30px);
	left: 0;
	top: calc(100% + 12px);
	margin-left: 15px;
}
#search-bar #categories-toggle:checked ~ #filter-sort::after {
	/*Full screen background*/
    content: '';
    position: absolute;
    left: -100vw;
    right: -100vw;
    display: block;
    background: #424453;
    top: 0;
    bottom: 0;
    z-index: -1;
}
#search-bar input[type="checkbox"],
#search-bar input[type="radio"] {
	display: none;
}
#search-bar .fieldset {
	grid-row: 1/3;
}
#search-bar fieldset {
	grid-column: 2;
}
#search-bar .filter-controls button.active + ul button {
	margin-left: 0;
	margin-right: 1em;
}
#search-bar legend {
    font-size: 16px;
    color: white;
    border: none;
    margin: 0;
    padding-bottom: .5em;
}
.filter-controls label {
	font-weight: normal;
	margin: 0 1em 1em 0;
	width: fit-content;
	cursor: pointer;
}
.filter-controls > label::after {
	content: '';
	border: solid currentColor;
	border-width: 0 2px 2px 0;
	display: inline-block;
	padding: 2px;
	transform: rotate(45deg);
	transition: transform .25s ease-in-out, top .25s ease-in-out;
	position: relative;
	top: -3px;
	left: 4px;
}
.filter-controls > input:checked + label::after {
	transform: rotate(-135deg);
	top: -1px;
}
#filter-sort #close-filter {
	position: absolute;
	top: 1em;
	right: 0;
	font-weight: bold;
	border-radius: 50%;
	padding: 0.5em 0.65em .5em .6em;
	line-height: 1;
	border: 2px solid #BBBDBF;
	color: white;
}
/*
h1::after {
	content: 'Course Catalog';
}
*/
#course-results {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
	grid-gap: 30px;
}
.course-card {
	overflow-x: hidden;
	border: 1px solid #e6e6e6;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}
@media (max-width: 470px) {
	.course-card {
		display: block;
	}
}
.course-card main,
.course-card footer,
.course-card figcaption {
	padding: .5em;
}
.course-card header,
.course-card footer {
    background: white;
    border-bottom: none;
    font-family: inherit;
    font-size: inherit;
}
.course-card header {
	position: relative;
    padding: 0;
}
.course-card figure {
	height: 185px;
	overflow: hidden;
}
.course-card img {
	margin: 0;
	object-fit: cover;
	width: 100%;
}
.course-card figcaption {
    margin: 0;
	font-size: 16px;
	line-height: 1.25em;
	padding: .9em .5em .5em;
	height: calc(3em + 1.5em);
	overflow: hidden;
	color: #BA7B59;
	font-weight: 700;
	font-family: "neue-haas-grotesk-text", "Helvetica Neue", Helvetica, Arial, sans-serif;
	/*The following styles will gracefully degrade on unsupporting browsers*/
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	position: relative;
	z-index: 1;
}

.course-card .course-categories {
	font-size: 12px;
	font-style:italic;
}

@media (max-width: 470px) {
	.course-card figcaption {
		height: unset;
		max-height: calc(3em + 1.5em);
	}
}
.course-program-icon {
	display: inline-block;
	border: 3px solid white;
	border-radius: 50%;
	height: 2.25em;
	width: 2.25em;
	position: absolute;
	top: calc(185px - 1.2em);
	right: 1em;
	background-repeat: no-repeat;
	background-position: 50% 50%;
	z-index: 1;
}
.course-program-icon {
	display: none; /*Hide until feature is implemented*/
}
.course .course-program-icon {
	background-color: #561a40;
	background-image: url(../images/course-icon.svg);
}
.program .course-program-icon {
	background-color: #003648;
	background-image: url(../images/program-icon.svg);
}
.course .course-program-icon::after {
	content: 'Course';
}
.program .course-program-icon::after {
	content: 'Program';
}
.course-program-icon::after {
	opacity: 0;
	transition: opacity .25s ease-in-out;
	position: absolute;
	right: 2.2em;
	top: 0.15em;
	background: white;
	padding: 0 .5em;
	z-index: -60;
	border: 1px solid #e6e6e6;
}
.course-program-icon:hover::after {
	opacity: 1;
}
.course-card main span, 
#details-list dt {
	color: #234155;
	font-weight: 700;
	font-family: "neue-haas-grotesk-text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.course-price {
    font-family: "neue-haas-grotesk-text", "Helvetica Neue", Helvetica, Arial, sans-serif;
    /*font-size: 1.1em;*/
    color: #177981;
    font-weight: bold;
}
/*--------------------------------
	Course Details
--------------------------------*/
#return-link {
	display: inline-block;
	position: absolute;
	top: -2em;
}
@media(max-width: 1200px) {
	#return-link {
		top: -1em;
	}
}
@media(max-width: 990px) {
	#return-link {
		margin-bottom: 1em;
		position: relative;
	}
}
@media(max-width: 767px) {
	#return-link {
	}
}
@media (min-width: 767px) {
	#course-details {
		display: grid;
		grid-template-columns: minmax(30%, 500px) minmax(50%, 70%);
		grid-column-gap: 30px;
	}
}
#course-details figure {
	width: 33%;
	width: 100%;
	overflow: hidden;
	padding-bottom: 71.0172744721689%;
	/*Weird padding trick to maintain the aspect-ratio of the image inside when the width of the container changes*/
	height: 0;
	position: relative;
	margin-bottom: 30px;
}
#course-details img {
	width: 100%;
	object-fit: cover;
	height: 100%;
	position: absolute;
}
@media (min-width: 500px) {
	#course-details dl {
		column-count: 2;
		column-gap: 30px;
		column-fill: balance;
		/*height: 90%;*/
	}
}
.details-group {
	break-inside: avoid;
	margin-bottom: 1em;
}
#details-list dt::after {
	content: ": ";
}
dd.payment-details {
	margin-top: .5em;
}
#course-details #register-button {
	
}

/****** members/course_catalog_ROLF.php search/filter styling ******/
#search-bar-container {
    margin-top: 20px;
}

#filter-controls {
    display: flex;
    align-items: center;
}

#filter-controls label {
    margin-left: 10px;
    cursor: pointer;
}

#filter-sort-container {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
}

.filter-title {
    font-weight: bold;
    margin-bottom: 10px;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
	gap: 8px;
    font-size: 12px !important;
}

.filter-option {
    padding: 10px 15px;
    background-color: #f0f0f0;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.filter-option:hover {
    background-color: #dcdcdc;
}

.filter-option.active {
    background-color: #177981;
    color: white;
    font-weight: bold;
}


.form-check {
    display: flex;
    align-items: center;
    gap: 5px;
}

.form-check-label {
    cursor: pointer;
}

.filter-sidebar {
	font-size: 12px;
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: #fff;
    box-shadow: -3px 0 10px rgba(0, 0, 0, 0.2);
    padding: 20px;
    overflow-y: auto;
    transition: right 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.filter-sidebar.show {
    right: 0;
}

#search-courses-form .form-control {
    border-radius: 5px 0 0 5px;
}

.search-input {
    width: 80%;
}

#search-courses-form {
    display: flex;
    width: 100%;
}

#search-courses-form .form-control {
    flex-grow: 1;
    border-radius: 5px 0 0 5px;
}

#search-courses-form .btn {
    border-radius: 0 5px 5px 0;
    white-space: nowrap;
}

#apply-filters {
    width: 100%;
    margin-top: 20px;
}

#toggle-filters {
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    color: #177981;
}

#close-filters {
    float: right;
    margin-bottom: 10px;
}

