.archive.class-hero {margin-top: 120px;}
@media (min-width: 601px) {
    .archive.class-hero {margin-top: 140px;}
    
}
.searchfilter-wrapper {display: flex;}

.archive-title {
    color: #fff;
}

.class-archive-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1em 2em 1em;
}
.class-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 2em;
    margin-top: 50px;
}
.class-card-wrapper {
    width: 100%;
    max-width: 360px;
}

.class-card {
    width: 100%;
    aspect-ratio: 5/4;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    transition: box-shadow 0.2s;
}
.class-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.class-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}
.class-card-title {
    padding: 1.5em;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 75%;
}
.class-title {
    font-size: 2em;
    margin-bottom: 0;
    text-align: center;
    color: #fff;
}
.card-meta {display: flex; gap: .25em; flex-wrap: wrap;padding-top: 8px;}
.class-category-chip {
    display: inline-block;
    background: rgba(255,255,255,0.85);
    color: #333;
    font-size: 0.7em;
    font-weight: 400;
    border-radius: 999px;
    padding: 0.2em .75em;
    margin: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    letter-spacing: 0.02em;
    border: 1px solid #e0e0e0;
    white-space: nowrap;
    text-align: center;
}

.card-footer {
    height: 25%;
    padding: 0 1em 1.5em 1em;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}
.view-class-button {
    display: inline-block;
    padding: 0.5em 1.5em;
    background: #96598a; /* or your accent color */
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}
.class-card-link:hover .view-class-button,
.class-card-link:focus .view-class-button {
    background: #804c75;
    color: #fff;
}
.class-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.class-card-link:hover .class-card-title a,
.class-card-link:focus .class-card-title a {
    color: #ac514d; /* or your accent color */
}
.searchfilter-wrapper {
    align-items: flex-end;
}
.searchfilter-wrapper .search-filter-base {
    margin: 0 15px;
    min-width: 200px;
}
.searchfilter-wrapper .search-filter-field__input {margin:0 0 10px 0;}

.single-class .class-single-container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 2rem;
}

.single-class .class-header {
	margin-bottom: 2rem;
	text-align: center;
}

.single-class .class-title {
	font-size: 2.5rem;
	margin-bottom: 1rem;
}

.single-class .class-description,
.single-class .class-video,
.single-class .class-faculty {
	margin-bottom: 3rem;
}
.single-class .class-description > * {font-size: 1.25em;}

.single-class .class-video.has-timestamps {
	display: grid;
	grid-template-columns: 3fr 1fr;
	gap: 20px;
}
.single-class .video-container {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 aspect ratio */
	height: 0;
	overflow: hidden;
}

.single-class .video-container iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.single-class .faculty-profile {
	display: flex;
	gap: 2rem;
	align-items: flex-start;
}

.single-class .faculty-headshot {
	flex: 0 0 200px;
}

.single-class .faculty-headshot img {
	border-radius: 50%;
	width: 100%;
	height: auto;
}

.single-class .faculty-info {
	flex: 1;
}

.single-class .faculty-name {
	margin-top: 0;
	font-size: 1.8rem;
}

.single-class .faculty-bio {
	margin-top: 1rem;
	line-height: 1.6;
}

/* Manual faculty specific adjustments */
.single-class .faculty-info.manual-info {
	flex: 1;
}

	.single-class .faculty-headshot.manual-headshot img {
		width: 200px;
		height: 200px;
		object-fit: cover;
		border-radius: 50%;
	}

@media (max-width: 768px) {
	.single-class .faculty-profile {
		flex-direction: column;
	}

	.single-class .faculty-headshot {
		flex: 0 0 auto;
		margin: 0 auto 1rem;
		max-width: 200px;
	}

	.single-class .faculty-headshot.manual-headshot {
			margin: 0 auto;
		}

			.single-class .faculty-headshot.manual-headshot img {
				width: 150px;
				height: 150px;
			}
}
/* Hero Section Styles */
.class-hero {
	position: relative;
	width: 100%;
	height: 400px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	margin-bottom: 2rem;
}

.hero-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
}

.hero-content {
	text-align: center;
	color: #fff;
	padding: 2rem;
	max-width: 800px;
	margin: 0 auto;
}

	.hero-content .class-title {
		font-size: 3rem;
		margin-bottom: 1rem;
		color: #fff;
	}

.single-class .class-categories {
	font-size: 1.2rem;
	margin-top: 1rem;
}

	.single-class .class-categories a {
		color: #fff;
		text-decoration: none;
		transition: color 0.3s;
	}

		.single-class .class-categories a:hover {
			color: #ccc;
		}

/* Responsive Adjustments */
@media (max-width: 768px) {
	.single-class .class-hero {
		height: 300px;
	}

	.single-class .hero-content .class-title {
		font-size: 2rem;
	}

	.single-class .class-categories {
		font-size: 1rem;
	}
}

/* More Classes Section - Centered */
.single-class .more-classes-wrapper {
	max-width: 1200px;
	margin: 2rem auto 0; /* Reduced top margin from 4rem to 2rem */
	padding: 0 2rem 3rem; /* Added 3rem bottom padding */
}

.single-class .more-classes-section {
	padding-top: 2rem; /* Reduced from 3rem */
	border-top: 1px solid #eee;
}

.single-class .more-classes-section h3 {
	font-size: 1.8rem;
	margin-bottom: 2rem;
	color: #333;
}

.single-class .class-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 2rem;
	justify-content: center;
}

.single-class .class-grid .class-card {
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 3px 15px rgba(0,0,0,0.1);
	transition: all 0.3s ease;
	text-align: left; /* Reset text alignment for card content */
	margin: 0 auto; /* Center cards in their grid cells */
	max-width: 320px;
}

.single-class .class-grid .class-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.single-class .class-thumbnail {
	height: 180px;
	overflow: hidden;
}

.single-class .class-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.single-class .class-grid .class-card h4 {
	padding: 1.5rem;
	margin: 0;
	font-size: 1.2rem;
	color: #222;
}

@media (max-width: 768px) {
	.single-class .more-classes-wrapper {
		padding: 0 1.5rem;
	}

	.single-class .class-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.single-class .class-grid .class-card {
		max-width: 100%;
	}
}

/* Back to Class Library Button */
.single-class .class-library-button-wrapper {
	max-width: 1200px;
	margin: 2rem auto 0;
	padding: 0 2rem;
	text-align: center;
}

.single-class .class-library-button {
	display: inline-block;
	padding: 12px 24px;
	background-color: #369dd8;
	color: white;
	text-decoration: none;
	border-radius: 4px;
	font-weight: 500;
	transition: all 0.3s ease;
	border: 2px solid #369dd8;
}

	.single-class .class-library-button:hover {
		background-color: transparent;
		color: #369dd8;
	}

/* More Classes Section */
.single-class .more-classes-wrapper {
	max-width: 1200px;
	margin: 1.5rem auto 0;
	padding: 0 2rem 3rem;
}

/* Class Materials Section */
.single-class .class-materials {
	margin: 3rem 0;
	padding: 2rem;
	background: #f8f9fa;
	border-radius: 8px;
}

.single-class .materials-section {
	margin-bottom: 2rem;
}

	.single-class .materials-section h3 {
		font-size: 1.3rem;
		margin-bottom: 1rem;
		color: #2d3748;
		border-bottom: 1px solid #e2e8f0;
		padding-bottom: 0.5rem;
	}

.single-class .notes-content {
	line-height: 1.6;
}

	.single-class .notes-content p {
		margin-bottom: 1em;
	}

.single-class .notes-link {
	display: inline-flex;
	align-items: center;
	padding: 0.5rem 1rem;
	background: #edf2f7;
	border-radius: 4px;
	color: #2b6cb0;
	text-decoration: none;
	transition: all 0.2s ease;
}

	.single-class .notes-link:hover {
		background: #e2e8f0;
		color: #2c5282;
	}

.single-class .files-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

	.single-class .files-list li {
		margin-bottom: 0.5rem;
	}

	.single-class .files-list a {
		display: flex;
		align-items: center;
		gap: 0.5rem;
		padding: 0.5rem;
		color: #4a5568;
		text-decoration: none;
		transition: all 0.2s ease;
	}

		.single-class .files-list a:hover {
			color: #2b6cb0;
			background: #edf2f7;
		}

.single-class .file-size {
	margin-left: auto;
	font-size: 0.8em;
	color: #718096;
}

@media (max-width: 768px) {
	.single-class .class-materials {
		padding: 1.5rem;
		margin: 2rem 0;
	}

	.single-class .files-list a {
		flex-wrap: wrap;
	}

	.single-class .file-size {
		margin-left: 1.5rem;
	}
}

.nonmember-message {
    background-color: #feb04b;
    border: 1px solid #feb04b;
    padding: 24px;
    margin: 1em auto 3rem;
}
.nonmember-message p {
    text-align: center;
    margin-bottom: 1.2em;
    color: #fff;
    font-weight: bold;
}
.nonmember-message p a {color: #fff; text-decoration: underline;}
.nonmember-message p a:hover,
.nonmember-message p a:focus {color: rgb(54, 157, 216);}
.nonmember-message p:last-child {margin-bottom: 0;}