h1 {
	text-align: center;
	margin: 20px 0;
	font-size: 2.5em;
	color: #0a68b5;
}

p {
	font-size: 16px;
}

.videos-row {
	margin-bottom: 40px;
	position: relative;
	margin-left: 0px;
	margin-right: 0px;
	box-shadow: rgba(0, 0, 0, 0.45) 0px 25px 20px -20px;
}

.videos-row h2 {
	font-size: 1.4em;
	color: #fff;
	background-color: #143e69;
	border-radius: 15px;
	padding: 15px 20px;
	margin: 0;
}

.posters {
	display: flex;
	overflow-x: auto;
	white-space: nowrap;
	padding: 20px 0;
	scrollbar-width: thin;
	scrollbar-color: #5e9ee0 #ffffff;
}

.posters::-webkit-scrollbar {
	height: 10px;
}

.posters::-webkit-scrollbar-thumb {
	background-color: #5e9ee0;
	border-radius: 5px;
}

.posters .lesson-poster img {
	height: 220px;
	margin-right: 10px;
	cursor: pointer;
	border-radius: 15px;
	transition: transform 0.3s, box-shadow 0.5s;
}

.posters img {
	height: 220px;
	margin-right: 10px;
	cursor: pointer;
	border-radius: 15px;
	transition: transform 0.3s, box-shadow 0.5s;
}

.posters img:hover {
	transform: scale(1.05);
	box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
	outline: 4px solid #ffcc00;
	/*box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);*/
}

.posters_logo img {
	transition: transform 0.3s, box-shadow 0.5s;
}

.posters_logo img:hover {
	transform: scale(1.05);
}

.custom-arrow {
	position: absolute;
	top: 56%;
	transform: translateY(-50%);
	font-size: 2.5em;
	color: #5e9ee0;
	background-color: rgba(255, 255, 255, 1);
	padding: 10px;
	cursor: pointer;
	border-radius: 15px;
	z-index: 10;
	box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px,
		rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
	/*box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;*/
	transition: 0.5s;
}

.custom-arrow:hover {
	box-shadow: none;
	background-color: rgba(255, 255, 255, 1);
	box-shadow: rgba(0, 0, 0, 0.25) 0px 0.0625em 0.0625em,
		rgba(0, 0, 0, 0.25) 0px 0.125em 0.5em,
		rgba(255, 255, 255, 0.1) 0px 0px 0px 1px inset;
	transition: 0.5s;
}

.custom-arrow-left {
	left: -20px;
}

.custom-arrow-right {
	right: -20px;
}

#filter-container{
	display: flex;
	justify-content: center;
	/* Center align the filter container */
	align-items: center;
	padding: 10px;
	background-color: #f0f0f0;
	border-radius: 15px;
	flex-wrap: wrap;
	width: 100%;
}

#filter-container {
box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px,
		rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;
}


#filter-container-bar{
	display: flex;
	justify-content: space-around;
	flex-wrap: wrap;
	width: 100%;
}

.filter-group {
	margin: 10px;
	display: flex;
	align-items: center;
	flex-direction: column;
	flex: 1;
}

.filter-text {
	text-align: left;
	color: #1e5ea0;
	font-weight: bold;
	margin-bottom: 5px;
}

select {
	padding: 10px;
	border-radius: 10px;
	border: 2px solid #ffffff;
	outline: none;
	transition: border-color 0.3s;
}

select:hover {
	border-color: #5e9ee0;
}

select:focus {
	border-color: #5e9ee0;
}

.top_link {
	color: #ffffff;
	font-size: 0.8em;
}

.top_link:hover {
	color: #93beea;
}

[data-title]:hover:after {
	opacity: 1;
	transition: all 0.1s ease 0.5s;
	visibility: visible;
}

[data-title]:after {
	content: attr(data-title);
	background-color: #ffffff;
	color: #143e69;
	font-size: 75%;
	position: absolute;
	padding: 5px 15px 5px 15px;
	bottom: 2em;
	/*bottom: -1.6em;*/
	/*top: .8em;*/
	left: 100%;
	white-space: nowrap;
	box-shadow: rgba(14, 30, 37, 0.12) 0px 2px 4px 0px,
		rgba(14, 30, 37, 0.32) 0px 2px 16px 0px;
	opacity: 0;
	/*border: 1px solid #111111;*/
	z-index: 99999;
	visibility: hidden;
	border-radius: 5px;
}

[data-title] {
	position: relative;
}

.izzit_btn_refresh {
	color: #ffffff;
	background-color: #5e9ee0;
	font-size: 16px;
	padding: 12px 15px;
	text-align: center;
	display: inline-block;
	width: 100%;
	margin-bottom: 0;
	font-weight: 400;
	line-height: 1.42857143;
	white-space: nowrap;
	vertical-align: middle;
	-ms-touch-action: manipulation;
	touch-action: manipulation;
	cursor: pointer;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	background-image: none;
	border-bottom: 1px solid #ffffff;
	border-top: none;
	border-left: none;
	border-right: none;
	webkit-border-radius: 7px;
	border-radius: 7px;
	transition-delay: 0.3s;
	transition: fade;
	text-decoration: none;
}

.izzit_btn_refresh:hover, 
.izzit_btn_refresh:focus {
	color: #ffffff;
	background-color: #1e5ea0;
	border-bottom: 1px solid #ffffff;
	text-decoration: none;
}

.izzit_btn_refresh:active {
	color: #ffffff;
	background-color: #1e5ea0;
	border-bottom: 1px solid #ffffff;
	text-decoration: none;
}

.izzit_btn_refresh:visited {
	color: #ffffff;
	text-decoration: none;
}
@media (max-width: 921px) {
	.videos-row h2 {
		font-size: 0.8em;
		color: #fff;
		background-color: #143e69;
		border-radius: 15px;
		padding: 15px 20px;
		margin: 0;
	}

	.posters {
		display: flex;
		overflow-x: auto;
		white-space: nowrap;
		padding: 20px 0;
		scrollbar-width: auto;
		scrollbar-color: #5e9ee0 #ffffff;
	}

	.posters::-webkit-scrollbar {
		height: 20px;
		width: 20px;
	}

	.posters::-webkit-scrollbar-thumb {
		background-color: #5e9ee0;
		border-radius: 10px;
	}
}

.posters {
	display: flex;
	overflow-x: auto;
	white-space: nowrap;
	padding: 20px 0;
	scrollbar-width: thin;
	scrollbar-color: #5e9ee0 #ffffff;
	padding-left: 15px;
	padding-right: 15px;
}

.posters::-webkit-scrollbar {
	height: 10px;
}

.posters::-webkit-scrollbar-thumb {
	background-color: #5e9ee0;
	border-radius: 5px;
}

.posters .lesson-poster img,
.posters img {
	height: 220px;
	margin-right: 10px;
	cursor: pointer;
	border-radius: 15px;
	transition: transform 0.3s, box-shadow 0.5s;
}

.posters img:hover {
	transform: scale(1.05);
	box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
	outline: 4px solid #ffcc00;
}

/* Container for the dropdowns */
.filter-dropdown-container {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
}

/* Each filter dropdown container */
.filter-dropdown {
	position: relative;
	display: inline-block;
}

/* Dropdown content (hidden by default) */
.dropdown-content {
	display: none;
	position: absolute;
	background-color: white;
	box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
	border-radius: 8px;
	z-index: 1;
	overflow: hidden;
	text-align: left;
	width: auto;
	min-width: 100%;
	/* Ensures dropdown is at least as wide as the button */
}

/* Custom-styled options */
.dropdown-content option {
	display: block;
	padding: 12px 16px;
	color: #333;
	background: transparent;
	border: none;
	font-size: 16px;
	cursor: pointer;
	transition: background-color 0.3s, color 0.3s;
	white-space: nowrap;
}

.dropdown-content option:hover {
	background-color: #f1f1f1;
	color: #1e5ea0;
}

/* Show the dropdown on button hover */
.filter-dropdown:hover .dropdown-content {
	display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.filter-dropdown-container {
		flex-direction: column;
		gap: 15px;
	}

	.dropdown-btn {
		width: 100%;
		text-align: center;
		padding: 10px 0;
		font-size: 14px;
	}

	.dropdown-content {
		min-width: 100%;
	}

	.dropdown-content option {
		padding: 10px;
		font-size: 14px;
	}
}

.lesson-filters {
	display: none;
}

.legacy_heading {
	font-size: 1.5em;
	font-weight: bold;
	padding-top: 35px;
}

.legacy_text {
	font-size: 1.2em;
	padding-top: 15px;
}

.legacy_border {
	border-bottom: 2px solid #1e5ea0;
	padding-top: 15px;
	padding-bottom: 15px;
}


.lessons-container {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: flex-start;
	column-gap: 30px;
	padding-top: 30px;
	row-gap: 40px;
	flex-basis: 25%;
	padding-left: 15px;
	padding-right: 15px;
}

.lesson-poster-container {
	display: flex;
	flex-direction: column;
	flex: 1 1 calc(25% - 30px);
	/* 4 columns per row with spacing */
	box-sizing: border-box;
	/* Include padding in width calculations */
	text-decoration: none;
	max-width: calc(25% - 15px);
}

.lesson-poster-container .lesson-poster {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.lesson-poster-container .lesson-poster img {
	width: 100%;
	height: auto;
	display: block;
	max-width: 100%;
	max-height: 100%;
}

.lesson-title {
	padding: 15px 10px;
	box-sizing: border-box;
	flex-grow: 1; 
	text-align: left; 
	display: -webkit-box; 
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2; 
	overflow: hidden;
	word-wrap: break-word;
	white-space: normal;
	width: 100%;
	max-width: 300px; 
	font-weight: 600; 
	margin: 0; 
	overflow-wrap: break-word;
  }

.lesson-poster-link,
.lesson-view-toggle {
	text-decoration: none;
	/* Applies to all states */
}

.lesson-poster-link:hover,
.lesson-view-toggle:hover {
	text-decoration: none;
}

.lesson-poster-link:active,
.lesson-view-toggle:active {
	text-decoration: none;
}

/* For screens smaller than 998px, 3 columns per row */
@media screen and (max-width: 1100px) {
	.lesson-poster-container {
		flex: 1 1 calc(33.333% - 30px);
		max-width: calc(33.333% - 30px);
	}
}

/* For screens smaller than 792px, 2 columns per row */
@media screen and (max-width: 850px) {
	.lesson-poster-container {
		flex: 1 1 calc(50% - 30px);
		max-width: calc(50% - 30px);
	}
}

/* For screens smaller than 587px, 1 column per row */
@media screen and (max-width: 587px) {
	.lesson-poster-container {
		flex: 1 1 calc(100% - 10px);
		max-width: calc(100% - 10px);
	}
}

/* Optional: For screens smaller than 400px, 1 column per row */
@media screen and (max-width: 400px) {
	.lesson-poster-container {
		flex: 1 1 calc(100% - 10px);
		max-width: calc(100% - 10px);
	}
}

.tooltip-container {
	position: relative;
	display: inline-block;
}

/* Tooltip text */
.tooltip-container .tooltip-text {
	visibility: hidden;
	background-color: black;
	color: #fff;
	text-align: center;
	border-radius: 5px;
	padding: 5px;
	position: absolute;
	z-index: 1;
	bottom: 30%;
	left: 30%;
	margin-left: -100px;
	opacity: 0;
	transition: opacity 0.3s;
	white-space: nowrap;
	text-overflow: ellipsis;
}

/* Show the tooltip text on hover */
.tooltip-container:hover .tooltip-text {
	visibility: visible;
	opacity: 1;
}


.error-message{
    color: #e61a1a;
    font-size: 1.8rem;
    text-align: center;
}

#resetFilterContainer{
	justify-content: center;
	align-items: center;
}