/**
 * Mettasoul Teacher/Counselor Page Stylesheet
 * Custom styles for template-teacher.php
 */

/* Section Spacing & Alternation */
.teacher-section {
	padding: 24px 0 !important;
	position: relative;
}

#teacher-need {
	padding-top: 0 !important;
}

/* Brand-strength glass navigation and tabs. */
html body .teacher-anchor-nav {
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(11, 111, 120, 0.14)) !important;
	border: 1px solid rgba(11, 111, 120, 0.24);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 8px 22px rgba(11, 111, 120, 0.10);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

html body .teacher-anchor-nav__link {
	border: 1px solid transparent;
	border-bottom-width: 1px;
	border-radius: 999px;
	padding: 10px 16px;
}

html body .teacher-anchor-nav__link:hover,
html body .teacher-anchor-nav__link.active,
html body .teacher-library-tab-btn:hover,
html body .teacher-library-tab-btn.active {
	background: linear-gradient(135deg, rgba(20, 137, 146, 0.84), rgba(5, 79, 87, 0.92)) !important;
	border-color: rgba(179, 246, 242, 0.64) !important;
	color: #FFFFFF !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.36), 0 8px 18px rgba(3, 62, 68, 0.20) !important;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

html body .teacher-library-tab-btn {
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(11, 111, 120, 0.09));
	border-color: rgba(11, 111, 120, 0.22);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 4px 12px rgba(11, 111, 120, 0.06);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.teacher-section.bg-white {
	background-color: #FFFFFF !important;
}

.teacher-section.bg-kem {
	background-color: var(--ms-bg-kem) !important;
}

.teacher-section.bg-kem-dark {
	background-color: var(--ms-bg-kem-dark) !important;
}

/* Section Title Styling */
.teacher-section-header {
	max-width: 960px;
	margin: 0 auto 18px;
	text-align: center;
}

.teacher-section-header h2 {
	color: var(--ms-primary-dark);
	font-size: 32px;
	font-weight: 700;
	margin-bottom: 6px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	position: relative;
	display: inline-block;
	padding-bottom: 6px;
}

.teacher-section-header h2::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 60px;
	height: 3px;
	background-color: var(--ms-accent);
	border-radius: 2px;
}

.teacher-section-header p {
	font-size: 16px;
	color: var(--ms-text-muted);
	line-height: 1.5;
	margin-top: 8px;
	margin-bottom: 0;
}

/* 02. Thanh Neo Điều Hướng Nhanh (Anchor Nav) */
.teacher-anchor-nav {
	position: -webkit-sticky;
	position: sticky;
	top: 80px;
	z-index: 100;
	/* Use the same bounded frame as the parent and school quick-navigation bars. */
	width: calc(100% - 80px);
	max-width: 1320px;
	box-sizing: border-box;
	margin: 10px auto 10px;
	background-color: #FFFFFF;
	box-shadow: 0 4px 20px rgba(7, 87, 105, 0.05);
	border: 1px solid var(--ms-border-light);
	border-radius: 16px;
	overflow: hidden;
	transition: var(--ms-transition);
}

.teacher-anchor-nav__wrapper {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	max-width: var(--ms-container);
	min-width: 0;
	box-sizing: border-box;
	margin: 0 auto;
	padding: 0 40px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.teacher-anchor-nav__list {
	display: flex;
	gap: 32px;
	list-style: none;
	margin: 0;
	padding: 0;
	width: 100%;
	justify-content: center;
	min-width: max-content;
}

.teacher-anchor-nav__wrapper::-webkit-scrollbar {
	display: none;
}

.teacher-anchor-nav__wrapper {
	-ms-overflow-style: none;
	scrollbar-width: none;
}

.admin-bar .teacher-anchor-nav {
	top: 112px;
}

.teacher-anchor-nav__link {
	display: block;
	padding: 18px 0;
	font-size: 14px;
	font-weight: 700;
	color: var(--ms-primary-dark);
	text-transform: uppercase;
	letter-spacing: 1px;
	position: relative;
	transition: var(--ms-transition);
	border-bottom: 3px solid transparent;
}

.teacher-anchor-nav__link:hover,
.teacher-anchor-nav__link.active {
	color: var(--ms-accent) !important;
	border-bottom-color: var(--ms-accent);
}

/* 03. Khối 4 Cards - Bạn muốn phát triển năng lực nào? */
.teacher-need-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr); /* 4 columns on desktop */
	gap: 24px;
	width: 100%;
	margin: 0 auto;
}

.teacher-need-card {
	background-color: #FFFFFF;
	border: 1px solid var(--ms-border-light);
	border-radius: var(--ms-radius-lg);
	padding: 24px; /* Reduced from 40px to collapse padding and improve horizontal width */
	box-shadow: var(--ms-shadow-soft);
	transition: var(--ms-transition);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	position: relative;
	overflow: hidden;
}

.teacher-need-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 4px;
	height: 0;
	background-color: var(--ms-primary);
	transition: var(--ms-transition);
}

.teacher-need-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--ms-shadow-medium);
	border-color: var(--ms-primary-medium);
}

.teacher-need-card:hover::before {
	height: 100%;
}

.teacher-need-card__header {
	display: flex;
	align-items: flex-start; /* Align icon with the first line of title */
	gap: 12px;
	margin-bottom: 14px;
}

.teacher-need-card__icon {
	color: var(--ms-primary-medium);
	margin-bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: var(--ms-transition);
	flex-shrink: 0;
	margin-top: 2px; /* Push down slightly to align with title text baseline */
}

.teacher-svg-icon {
	width: 26px; /* Optimized smaller size for inline row alignment */
	height: 26px;
	stroke-width: 1.5;
	transition: var(--ms-transition);
}

.teacher-need-card:hover .teacher-need-card__icon {
	color: var(--ms-accent);
	transform: scale(1.08);
}

.teacher-need-card__title {
	font-size: 19px;
	font-weight: 700;
	color: var(--ms-primary-dark);
	margin-bottom: 0;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	height: 2.7em; /* Limit to exactly 2 lines height */
}

.teacher-need-card__desc {
	font-size: 14.5px;
	color: var(--ms-text-muted);
	line-height: 1.6;
	margin-bottom: 24px;
	flex-grow: 1;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	height: 3.2em; /* Limit to exactly 2 lines height */
}

.teacher-need-card__cta {
	font-size: 14px;
	font-weight: 700;
	color: var(--ms-accent) !important;
	text-transform: uppercase;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: var(--ms-transition);
}

.teacher-need-card:hover .teacher-need-card__cta {
	color: var(--ms-primary) !important;
	transform: translateX(4px);
}

.teacher-mobile-only-cta {
	display: none;
}

/* 04 & 05. Main Sales Sections (Split 45/55 and 55/45) */
.teacher-split-layout {
	display: grid;
	grid-template-columns: 45fr 55fr;
	gap: 60px;
	width: 100%;
	align-items: start;
}

/* Aspect ratio adjusted to 16:9 for modern video-style dimensions */
.teacher-split-col-img {
	border-radius: var(--ms-radius-lg);
	overflow: hidden;
	box-shadow: var(--ms-shadow-medium);
	aspect-ratio: 16 / 9;
	position: relative;
	width: 100%;
}

.teacher-split-col-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}

.teacher-split-col-img:hover img {
	transform: scale(1.04);
}

.teacher-split-col-info {
	width: 100%;
}

.teacher-split-layout--reversed {
	grid-template-columns: 55fr 45fr;
}

.teacher-split-layout--reversed .teacher-split-col-img {
	order: 2;
}

.teacher-split-layout--reversed .teacher-split-col-info {
	order: 1;
}

.teacher-split-col-info h3 {
	font-size: 28px;
	color: var(--ms-primary-dark);
	font-weight: 700;
	margin-bottom: 16px;
	line-height: 1.3;
}
.teacher-section-title-full {
	color: var(--ms-primary-dark);
	margin-bottom: 20px;
	text-transform: uppercase;
	text-align: left;
}

.teacher-section-intro-row {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 0;
	margin-bottom: 20px;
	width: 100%;
}

.teacher-section-intro-row .short-desc {
	font-size: 16.5px;
	color: var(--ms-text-muted);
	line-height: 1.6;
	margin: 0;
	flex: 1;
}

.teacher-section-intro-row .btn-pill {
	flex-shrink: 0;
	margin: 0;
}

.teacher-highlights-list {
	margin: 0 0 20px 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.teacher-highlight-card {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 10px 15px;
	border-radius: var(--ms-radius-md);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Specific styling depending on Section background for modern high contrast and rich brand-aligned focus */
.bg-kem .teacher-highlight-card {
	background-color: #FFFFFF;
	border: 1.5px solid rgba(255, 119, 12, 0.22) !important;
	box-shadow: 0 4px 12px rgba(255, 119, 12, 0.05) !important;
}

.bg-white .teacher-highlight-card {
	background-color: #FFFFFF;
	border: 1.5px solid rgba(13, 143, 151, 0.22) !important;
	box-shadow: 0 4px 12px rgba(13, 143, 151, 0.05) !important;
}

.teacher-highlight-card:hover {
	transform: translateY(-3px) !important;
}

.bg-kem .teacher-highlight-card:hover {
	border-color: rgba(255, 119, 12, 0.45) !important;
	box-shadow: 0 6px 18px rgba(255, 119, 12, 0.12) !important;
}

.bg-white .teacher-highlight-card:hover {
	border-color: rgba(13, 143, 151, 0.45) !important;
	box-shadow: 0 6px 18px rgba(13, 143, 151, 0.12) !important;
}

.teacher-highlight-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: var(--ms-radius-sm);
	flex-shrink: 0;
}

.bg-kem .teacher-highlight-card__icon {
	background-color: rgba(255, 119, 12, 0.08);
	color: var(--ms-accent);
}

.bg-white .teacher-highlight-card__icon {
	background-color: rgba(13, 143, 151, 0.08);
	color: var(--ms-primary);
}

.teacher-card-svg {
	width: 20px;
	height: 20px;
	stroke-width: 2.2px;
}

.teacher-highlight-card__content {
	flex: 1;
}

.teacher-highlight-card__title {
	font-size: 16px;
	font-weight: 700;
	color: var(--ms-primary-dark);
	margin: 0 0 3px 0;
	line-height: 1.3;
}

.teacher-highlight-card__desc {
	font-size: 14.5px;
	color: var(--ms-text-muted);
	margin: 0;
	line-height: 1.45;
}

.teacher-params-strip {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin-bottom: 0;
	padding-top: 18px;
	border-top: 1px solid var(--ms-border-light);
}
.teacher-param-item {
	display: flex;
	flex-direction: column;
	white-space: nowrap;
}

.teacher-param-item strong {
	display: block;
	font-size: 16px;
	font-weight: 700;
	color: var(--ms-primary-dark);
	margin-bottom: 4px;
	line-height: 1.3;
	white-space: nowrap;
}

.teacher-param-item span {
	display: block;
	font-size: 14.5px;
	font-weight: 400;
	color: var(--ms-text-muted);
	line-height: 1.45;
	white-space: nowrap;
}

/* 06. Mentor 1:1 cùng TS Sunny */
.teacher-mentor-layout {
	display: flex;
	align-items: center;
	gap: 60px;
}

.teacher-mentor-media {
	flex: 0 0 35%;
	border-radius: var(--ms-radius-lg);
	overflow: hidden;
	box-shadow: var(--ms-shadow-medium);
	aspect-ratio: 1 / 1;
}

.teacher-mentor-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 15%;
}

.teacher-mentor-media-mobile {
	display: none;
}

.teacher-mentor-desc-text {
	font-size: 16.5px;
	color: var(--ms-text-muted);
	line-height: 1.6;
	margin-bottom: 25px;
}

.teacher-mentor-mobile-cta {
	display: none;
}

.teacher-mentor-info {
	flex: 1;
	min-width: 0;
}

.teacher-mentor-info h2,
.teacher-mentor-info .teacher-section-title-full {
	font-size: 32px;
	color: var(--ms-primary-dark);
	font-weight: 700;
	margin-bottom: 20px;
	text-transform: uppercase;
}

#page .teacher-mentor-tag {
	display: inline-block;
	font-family: inherit;
	font-size: 12px;
	font-weight: 700;
	padding: 5px 14px;
	border-radius: var(--ms-radius-pill);
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 20px;
	border: 1.5px solid rgba(13, 143, 151, 0.45) !important;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(13, 143, 151, 0.22)) !important;
	color: var(--ms-primary, #0D8F97) !important;
	backdrop-filter: blur(8px) !important;
	-webkit-backdrop-filter: blur(8px) !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

.teacher-mentor-header-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 25px 0 16px;
	width: 100%;
	gap: 20px;
}

.teacher-mentor-needs-title {
	font-size: 16.5px;
	font-weight: 700;
	color: var(--ms-primary-medium);
	margin: 0;
}

.teacher-mentor-header-row .btn-pill {
	flex-shrink: 0;
	margin: 0 !important;
}

.teacher-mentor-needs-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
	margin: 20px 0 25px;
}

.teacher-mentor-need-card {
	background-color: #FFFFFF;
	border: 1.5px solid rgba(255, 119, 12, 0.12) !important;
	border-radius: var(--ms-radius-md);
	padding: 14px 16px;
	display: flex;
	gap: 12px;
	align-items: flex-start;
	box-shadow: 0 4px 12px rgba(255, 119, 12, 0.03);
	transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.teacher-mentor-need-card:hover {
	transform: translateY(-2px);
	border-color: rgba(255, 119, 12, 0.35) !important;
	box-shadow: 0 6px 18px rgba(255, 119, 12, 0.08) !important;
}

.teacher-mentor-need-card__icon {
	color: var(--ms-accent);
	flex-shrink: 0;
	margin-top: 2px;
}

.teacher-mentor-need-card__icon svg {
	width: 18px;
	height: 18px;
	stroke: currentColor;
	stroke-width: 2.5px;
}

.teacher-mentor-need-card__content {
	flex: 1;
}

.teacher-mentor-need-card__content h5 {
	font-size: 15px;
	font-weight: 700;
	color: var(--ms-primary-dark);
	margin: 0 0 4px 0;
	line-height: 1.3;
}

.teacher-mentor-need-card__content p {
	font-size: 13px;
	color: var(--ms-text-muted);
	margin: 0;
	line-height: 1.45;
}

/* Modal Popup Styles */
.teacher-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.teacher-modal.active {
	opacity: 1;
	pointer-events: auto;
}

.teacher-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(10, 92, 115, 0.45); /* Brand-tinted overlay */
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.teacher-modal-container {
	position: relative;
	background-color: #FFFFFF;
	width: 90%;
	max-width: 540px;
	border-radius: var(--ms-radius-lg, 16px);
	padding: 22px 26px;
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
	transform: scale(0.9);
	transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
	z-index: 2;
	border: 1px solid rgba(13, 143, 151, 0.1);
}

.teacher-modal.active .teacher-modal-container {
	transform: scale(1);
}

.teacher-modal-close {
	position: absolute;
	top: 15px;
	right: 15px;
	background: none;
	border: none;
	font-size: 28px;
	line-height: 1;
	color: var(--ms-text-muted);
	cursor: pointer;
	transition: color 0.2s ease;
}

.teacher-modal-close:hover {
	color: var(--ms-accent);
}

.teacher-modal-header {
	margin-bottom: 10px;
	border-bottom: 1.5px solid var(--ms-border-light);
	padding-bottom: 8px;
}

.teacher-modal-header h3 {
	font-size: 20px;
	font-weight: 700;
	color: var(--ms-primary-dark);
	margin: 0 0 6px 0;
}

.teacher-modal-header p {
	font-size: 13.5px;
	color: var(--ms-text-muted);
	margin: 0;
	line-height: 1.45;
}

/* 07. Bộ tài liệu hành nghề (Store) */
.teacher-library-tabs {
	display: flex;
	justify-content: center;
	gap: 12px;
	margin-bottom: 24px;
	flex-wrap: wrap;
}

.teacher-library-tab-btn {
	background: #FFFFFF;
	border: 1px solid var(--ms-border-light);
	color: var(--ms-primary-dark);
	font-weight: 700;
	font-size: 13.5px;
	padding: 10px 24px;
	border-radius: var(--ms-radius-pill);
	cursor: pointer;
	transition: var(--ms-transition);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.teacher-library-tab-btn:hover,
.teacher-library-tab-btn.active {
	background-color: var(--ms-primary) !important;
	border-color: var(--ms-primary) !important;
	color: #FFFFFF !important;
}

.teacher-library-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	margin-bottom: 0;
}

/* Keep every filtered result row centered. Flexbox lets one, two or three
   visible resources share equal gaps without reserving empty grid columns. */
@media (min-width: 1025px) {
	#teacher-documents .teacher-library-grid.ms-document-cards-grid {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		width: 100%;
		max-width: 1230px;
		margin-inline: auto;
		gap: 30px;
	}

	#teacher-documents .teacher-library-grid.ms-document-cards-grid > .ms-doc-card {
		flex: 0 1 calc((100% - 60px) / 3);
		width: calc((100% - 60px) / 3);
		max-width: 390px;
	}
}

.teacher-library-card {
	position: relative !important;
	background-color: #FFFFFF;
	border: 1px solid var(--ms-border-light);
	border-radius: var(--ms-radius-md);
	overflow: hidden;
	box-shadow: var(--ms-shadow-soft);
	transition: var(--ms-transition);
	display: flex;
	flex-direction: column;
	opacity: 1;
	transform: scale(1);
}

.teacher-library-card.is-hidden {
	display: none;
	opacity: 0;
	transform: scale(0.9);
}

.teacher-library-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--ms-shadow-medium);
	border-color: var(--ms-primary-medium);
}

.teacher-library-card__cover {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	position: relative;
	background-color: var(--ms-bg-kem-dark);
}

.teacher-library-card__cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.teacher-library-card__preview {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	background: #fff;
}

.teacher-library-card:hover .teacher-library-card__cover img {
	transform: scale(1.05);
}

.teacher-library-card__badge {
	position: absolute;
	top: 15px;
	right: 15px;
	font-size: 11px;
	font-weight: 800;
	padding: 4px 10px;
	border-radius: var(--ms-radius-sm);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.teacher-library-card__badge--free {
	background-color: #E2F5F3;
	color: #0B6F78;
}

.teacher-library-card__badge--paid {
	background-color: #FFF3E0;
	color: #E65100;
}

.teacher-library-card__body {
	padding: 24px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.teacher-library-card__type {
	font-size: 11.5px;
	font-weight: 700;
	color: var(--ms-primary-medium);
	text-transform: uppercase;
	margin-bottom: 8px;
	letter-spacing: 0.5px;
}

.teacher-library-card__title {
	font-size: 17px;
	font-weight: 700;
	color: var(--ms-primary-dark);
	margin-bottom: 10px;
	line-height: 1.4;
	min-height: 48px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.teacher-library-card__desc {
	font-size: 14px;
	color: var(--ms-text-muted);
	line-height: 1.5;
	margin-bottom: 20px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 42px;
}

.teacher-library-card__price-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid var(--ms-border-light);
}

.teacher-library-card__price {
	font-size: 16px;
	font-weight: 700;
	color: var(--ms-accent);
}

.teacher-library-card__action {
	font-size: 13.5px;
	font-weight: 700;
	color: var(--ms-primary) !important;
	text-transform: uppercase;
	display: flex;
	align-items: center;
	gap: 4px;
	transition: var(--ms-transition);
}

.teacher-library-card__action::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 10;
	cursor: pointer;
}

.teacher-library-card:hover .teacher-library-card__action {
	color: var(--ms-accent) !important;
}

/* 08. Form tư vấn lộ trình (Quick CTA Banner) */
.teacher-cta-banner {
	background: linear-gradient(135deg, var(--ms-primary-dark, #0A5C73), var(--ms-primary, #0D8F97));
	border-radius: var(--ms-radius-lg, 16px);
	padding: 40px 50px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 40px;
	box-shadow: 0 10px 30px rgba(10, 92, 115, 0.15);
	border: 1px solid rgba(255, 255, 255, 0.1);
	position: relative;
	overflow: hidden;
}

.teacher-cta-banner::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -20%;
	width: 60%;
	height: 200%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
	pointer-events: none;
}

.teacher-cta-banner__content {
	flex: 1;
	text-align: left;
	z-index: 1;
}

.teacher-cta-banner__content h2 {
	color: #FFFFFF !important;
	font-size: 26px;
	font-weight: 700;
	margin: 0 0 10px 0 !important;
	text-transform: none !important;
	letter-spacing: 0;
}

.teacher-cta-banner__content p {
	color: rgba(255, 255, 255, 0.85) !important;
	font-size: 15.5px;
	line-height: 1.5;
	margin: 0;
}

.teacher-cta-banner__action {
	flex-shrink: 0;
	z-index: 1;
}

.teacher-cta-banner__action .btn-pill-orange {
	font-size: 15px !important;
	padding: 14px 32px !important;
}

.teacher-contact-form {
	margin-top: 30px;
}

.teacher-form-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
}

.teacher-form-group {
	display: flex;
	flex-direction: column;
}

.teacher-form-group--full {
	grid-column: span 2;
}

.teacher-form-group label {
	font-size: 13px;
	font-weight: 700;
	color: var(--ms-primary-dark);
	margin-bottom: 2px;
}

.teacher-form-group label .required {
	color: var(--ms-accent);
	margin-left: 2px;
}

.teacher-form-group input,
.teacher-form-group select,
.teacher-form-group textarea {
	font-family: var(--ms-font-body);
	font-size: 14px;
	padding: 8px 12px;
	border: 1px solid var(--ms-border-light);
	border-radius: var(--ms-radius-sm);
	color: var(--ms-text);
	background-color: #FFFFFF;
	transition: var(--ms-transition);
	outline: none;
	box-sizing: border-box;
	width: 100% !important;
}

.teacher-form-group select {
	height: 38px;
}

.teacher-form-group input:focus,
.teacher-form-group select:focus,
.teacher-form-group textarea:focus {
	border-color: var(--ms-primary);
	box-shadow: 0 0 0 3px rgba(11, 111, 120, 0.1);
}

.teacher-form-submit {
	display: block;
	width: 100%;
	max-width: 320px;
	margin: 12px auto 0;
	background-color: var(--ms-accent);
	color: #FFFFFF;
	font-size: 14.5px;
	font-weight: 700;
	padding: 10px 24px;
	border: none;
	border-radius: var(--ms-radius-pill);
	cursor: pointer;
	transition: var(--ms-transition);
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	box-shadow: var(--ms-shadow-accent);
}

.teacher-form-submit:hover {
	background-color: var(--ms-primary-dark);
	box-shadow: var(--ms-shadow-medium);
	transform: translateY(-2px);
}

/* Base Pill Buttons Override */
.btn-pill {
	display: inline-block;
	font-size: 14.5px;
	font-weight: 700;
	padding: 12px 28px;
	border-radius: var(--ms-radius-pill);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	transition: var(--ms-transition);
	cursor: pointer;
	text-align: center;
	border: 2px solid transparent;
}

#page .btn-pill-primary {
	border: 1.5px solid rgba(11, 111, 120, 0.65) !important;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.45), rgba(11, 111, 120, 0.35)) !important;
	color: var(--ms-primary, #0B6F78) !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 5px 16px rgba(11, 111, 120, 0.15) !important;
	backdrop-filter: blur(8px) !important;
	-webkit-backdrop-filter: blur(8px) !important;
}

#page .btn-pill-primary:hover {
	background: var(--ms-primary, #0B6F78) !important;
	border-color: var(--ms-primary, #0B6F78) !important;
	color: #FFFFFF !important;
	transform: translateY(-2px) !important;
	box-shadow: 0 8px 20px rgba(11, 111, 120, 0.25) !important;
}

#page .btn-pill-solid-primary {
	background-color: var(--ms-primary, #0B6F78) !important;
	border: 1.5px solid var(--ms-primary, #0B6F78) !important;
	color: #FFFFFF !important;
	box-shadow: 0 4px 12px rgba(11, 111, 120, 0.18) !important;
	backdrop-filter: none !important;
	-webkit-backdrop-filter: none !important;
	transition: all 0.3s ease !important;
}

#page .btn-pill-solid-primary:hover {
	background-color: var(--ms-primary-dark, #0A5C73) !important;
	border-color: var(--ms-primary-dark, #0A5C73) !important;
	color: #FFFFFF !important;
	transform: translateY(-2px) !important;
	box-shadow: 0 6px 18px rgba(11, 111, 120, 0.3) !important;
}

#page .btn-pill-orange {
	border: 1.5px solid rgba(255, 119, 12, 0.65) !important;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.45), rgba(255, 119, 12, 0.35)) !important;
	color: var(--ms-accent, #FF770C) !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 5px 16px rgba(255, 119, 12, 0.15) !important;
	backdrop-filter: blur(8px) !important;
	-webkit-backdrop-filter: blur(8px) !important;
}

#page .btn-pill-orange:hover {
	background: var(--ms-accent, #FF770C) !important;
	border-color: var(--ms-accent, #FF770C) !important;
	color: #FFFFFF !important;
	transform: translateY(-2px) !important;
	box-shadow: 0 8px 20px rgba(255, 119, 12, 0.25) !important;
}

#page .btn-pill-solid-orange {
	border: 1.8px solid var(--ms-accent, #F28C00) !important;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(242, 140, 0, 0.55)) !important;
	color: #FFFFFF !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 6px 18px rgba(242, 140, 0, 0.28) !important;
	backdrop-filter: blur(8px) !important;
	-webkit-backdrop-filter: blur(8px) !important;
	transition: all 0.3s ease !important;
}

#page .btn-pill-solid-orange:hover {
	background: var(--ms-accent, #F28C00) !important;
	border-color: var(--ms-accent, #F28C00) !important;
	color: #FFFFFF !important;
	transform: translateY(-2px) !important;
	box-shadow: 0 8px 20px rgba(242, 140, 0, 0.3) !important;
}

.btn-pill-outline {
	background-color: transparent;
	border-color: var(--ms-primary);
	color: var(--ms-primary) !important;
}

.btn-pill-outline:hover {
	background-color: var(--ms-primary);
	color: #FFFFFF !important;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
	.teacher-split-layout {
		gap: 40px;
	}
	
	.teacher-mentor-layout {
		gap: 40px;
	}
}

@media (max-width: 767px) {
	/* 01. Mobile Page Banner Fixes */
	.page-template-template-teacher .ms-page-banner {
		min-height: 330px !important;
		display: flex !important;
		flex-direction: column !important;
		justify-content: center !important; /* Vertically center the text and button block */
	}
	
	.page-template-template-teacher .ms-page-banner__content {
		padding: 24px 20px !important;
	}

	.page-template-template-teacher .ms-page-banner__badge {
		display: none !important; /* Hide duplicate badge to save space and reduce clutter */
	}

	.page-template-template-teacher .ms-page-banner__title {
		font-size: 21px !important;
		line-height: 1.35 !important;
		margin-bottom: 8px !important;
		text-align: left !important;
	}

	.page-template-template-teacher .ms-page-banner__desc {
		font-size: 13.5px !important;
		line-height: 1.45 !important;
		margin-bottom: 0 !important;
		-webkit-line-clamp: unset !important;
		display: block !important;
		text-align: left !important;
	}

	.page-template-template-teacher .ms-page-banner__actions {
		display: flex !important;
		flex-direction: row !important;
		gap: 12px !important;
		width: 100% !important;
		margin-top: 20px !important;
		flex-wrap: wrap !important;
		justify-content: flex-start !important; /* Left-align the single button */
	}

	html body .page-template-template-teacher .ms-page-banner__btn {
		flex: 0 0 auto !important; /* Width matches the text length naturally */
		width: auto !important;
		max-width: 100% !important;
		min-height: 42px !important;
		height: auto !important;
		padding: 10px 24px !important; /* Premium spacious padding */
		font-size: 13.5px !important;
		line-height: 1.3 !important;
		text-align: center !important;
		white-space: nowrap !important; /* Keep text on one line since there is no second button */
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
		overflow: visible !important;
		text-overflow: clip !important;
	}

	.teacher-section {
		padding: 16px 0 !important;
	}

	.teacher-section-intro-row {
		display: none;
	}

	.teacher-section-intro-row .btn-pill {
		display: none !important; /* Hide button above image on mobile */
	}

	.teacher-mobile-only-cta {
		display: block !important; /* Show button below highlights/parameters strip */
		width: 100% !important;
		margin-top: 24px !important;
		text-align: center !important;
	}

	.teacher-mobile-only-cta .btn-pill {
		width: 100% !important;
		text-align: center !important;
		display: inline-block !important;
	}
	
	.teacher-section-header {
		margin-bottom: 12px; /* Compact mobile header margin */
	}
	
	.teacher-section-header h2 {
		font-size: 26px;
	}
	
	.teacher-anchor-nav {
		top: 60px;
		width: calc(100% - 20px);
		max-width: calc(100% - 20px);
		border-radius: 12px;
	}
	
	#page .teacher-anchor-nav .teacher-anchor-nav__wrapper {
		padding: 6px 8px !important;
		justify-content: flex-start !important;
		overflow-x: auto;
		overflow-y: hidden;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: 0;
		overscroll-behavior-inline: contain;
	}
	
	#page .teacher-anchor-nav .teacher-anchor-nav__list {
		display: grid !important;
		grid-auto-flow: column;
		grid-auto-columns: calc((100vw - 52px) / 2);
		gap: 6px !important;
		width: max-content;
		min-width: 100% !important;
		justify-content: flex-start !important;
	}

	.teacher-anchor-nav__list > li {
		min-width: 0;
		scroll-snap-align: start;
		scroll-snap-stop: always;
	}
	
	#page .teacher-anchor-nav .teacher-anchor-nav__link {
		display: flex !important;
		width: 100%;
		min-height: 46px;
		box-sizing: border-box;
		align-items: center;
		justify-content: center;
		padding: 7px 8px !important;
		font-size: 11.5px !important;
		line-height: 1.2 !important;
		letter-spacing: .25px !important;
		text-align: center;
		white-space: normal;
		overflow-wrap: break-word;
		word-break: normal;
	}
	
	.teacher-need-grid {
		grid-template-columns: repeat(2, 1fr) !important; /* 2 columns, 2 rows layout on mobile */
		gap: 12px !important;
	}
	
	.teacher-need-card {
		padding: 14px 12px !important; /* Compact padding to maximize horizontal text room */
		border-radius: 12px !important;
	}
	
	.teacher-need-card__header {
		gap: 8px !important;
		margin-bottom: 8px !important;
	}

	.teacher-need-card__icon .teacher-svg-icon {
		width: 18px !important;
		height: 18px !important;
	}

	.teacher-need-card__title {
		font-size: 13.5px !important;
		line-height: 1.25 !important;
		height: 2.5em !important; /* Clamp title to exactly 2 lines */
		-webkit-line-clamp: 2 !important;
	}

	.teacher-need-card__desc {
		font-size: 11px !important;
		line-height: 1.4 !important;
		margin-top: 6px !important;
		margin-bottom: 12px !important;
		height: 2.8em !important; /* Clamp description to 2 lines to align CTA buttons perfectly */
		display: -webkit-box !important;
		-webkit-line-clamp: 2 !important;
		-webkit-box-orient: vertical !important;
		overflow: hidden !important;
		text-overflow: ellipsis !important;
	}

	.teacher-need-card__cta {
		font-size: 11px !important;
		gap: 4px !important;
		white-space: nowrap !important; /* Forces link to sit on exactly one line */
	}
	
	.teacher-split-layout {
		grid-template-columns: 1fr;
		gap: 30px;
	}
	
	.teacher-split-col-img {
		width: 100%;
		aspect-ratio: 16 / 10;
	}
	
	.teacher-split-col-info {
		width: 100%;
	}
	
	.teacher-split-layout--reversed {
		grid-template-columns: 1fr;
	}
	
	.teacher-split-layout--reversed .teacher-split-col-img {
		order: 1;
	}
	
	.teacher-split-layout--reversed .teacher-split-col-info {
		order: 2;
	}
	
	.teacher-params-strip {
		grid-template-columns: 1fr;
		gap: 12px;
		margin-bottom: 25px;
	}
	
	.teacher-mentor-layout {
		flex-direction: column;
		gap: 30px;
	}

	.teacher-mentor-header-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
		margin: 15px 0 10px !important; /* Reduced margin since button is moved */
	}

	.teacher-mentor-header-row .btn-pill {
		display: none !important; /* Hide button above grid on mobile */
	}

	.teacher-mentor-mobile-cta {
		display: block !important; /* Show button below needs grid on mobile */
		width: 100% !important;
		margin-top: 24px !important;
		text-align: center !important;
	}

	.teacher-mentor-mobile-cta .btn-pill {
		width: 100% !important;
		text-align: center !important;
		display: inline-block !important;
	}
	
	.teacher-mentor-media {
		display: none !important; /* Hide original image above title on mobile */
	}

	.teacher-mentor-media-mobile {
		display: block !important; /* Show repositioned image below title on mobile */
		width: 100%;
		aspect-ratio: 1 / 1;
		max-width: 290px;
		margin: 15px auto 20px !important;
		border-radius: var(--ms-radius-lg);
		overflow: hidden;
		box-shadow: var(--ms-shadow-medium);
	}

	.teacher-mentor-media-mobile img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		object-position: center 15%;
	}

	.teacher-mentor-desc-text {
		text-align: justify !important;
		font-size: 14.5px !important;
		line-height: 1.55 !important;
		margin-bottom: 20px !important;
	}
	
	.teacher-mentor-info {
		flex: 0 0 100%;
		width: 100%;
		text-align: center;
	}

	.teacher-mentor-info h2,
	.teacher-mentor-info .teacher-section-title-full {
		font-size: 20px !important;
		white-space: nowrap !important;
		letter-spacing: -0.2px !important;
		margin-bottom: 15px !important;
	}
	
	.teacher-mentor-needs-grid {
		grid-template-columns: 1fr;
		text-align: left;
		max-width: 480px;
		margin: 0 auto;
	}

	.teacher-modal-container {
		padding: 24px 20px;
		width: 95%;
	}

	.teacher-modal-header h3 {
		font-size: 19px;
	}
	
	.teacher-library-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	
	.teacher-library-tabs {
		gap: 8px;
		margin-bottom: 30px;
	}
	
	.teacher-library-tab-btn {
		padding: 8px 18px;
		font-size: 12px;
	}
	
	.teacher-cta-banner {
		flex-direction: column;
		text-align: center;
		padding: 30px 24px;
		gap: 24px;
	}

	.teacher-cta-banner__content {
		text-align: center;
	}

	.teacher-cta-banner__content h2 {
		font-size: 22px;
	}

	.teacher-cta-banner__action {
		width: 100%;
	}

	.teacher-cta-banner__action .btn-pill {
		width: 100%;
		text-align: center;
	}
	
	.teacher-form-grid {
		grid-template-columns: 1fr;
		gap: 18px;
	}
	
	.teacher-form-group--full {
		grid-column: span 1;
	}
}

/* Reusable Alert Modal for Teacher Library */
.teacher-modal-alert {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.teacher-modal-alert.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.teacher-modal-alert-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(3, 34, 38, 0.6);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.teacher-modal-alert-container {
	position: relative;
	width: 90%;
	max-width: 480px;
	background-color: #FFFFFF;
	border-radius: 20px;
	padding: 36px 28px;
	box-shadow: 0 15px 40px rgba(3, 62, 68, 0.2);
	border: 1px solid rgba(11, 111, 120, 0.1);
	z-index: 2;
	text-align: center;
	transform: scale(0.9);
	transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.teacher-modal-alert.is-active .teacher-modal-alert-container {
	transform: scale(1);
}

.teacher-modal-alert-close {
	position: absolute;
	top: 15px;
	right: 15px;
	border: none;
	background: none;
	font-size: 28px;
	line-height: 1;
	color: #94a3b8;
	cursor: pointer;
	transition: 0.2s ease;
}

.teacher-modal-alert-close:hover {
	color: #F28C00;
}

.teacher-modal-alert-logo {
	margin-bottom: 20px;
	display: flex;
	justify-content: center;
}

.teacher-modal-alert-logo img,
.teacher-modal-alert-logo .custom-logo {
	max-width: 160px;
	height: auto;
	max-height: 55px;
	object-fit: contain;
}

.teacher-modal-alert-title {
	font-size: 20px !important;
	font-weight: 800 !important;
	color: #0b6f78 !important;
	margin-bottom: 12px !important;
	line-height: 1.3 !important;
	text-align: center;
}

.teacher-modal-alert-message {
	font-size: 14.5px !important;
	line-height: 1.6 !important;
	color: #64748b !important;
	margin-bottom: 24px !important;
	text-align: justify;
}

.teacher-modal-alert-btn {
	display: inline-block;
	padding: 10px 32px !important;
	background-color: #F28C00 !important;
	color: #FFFFFF !important;
	border: none !important;
	border-radius: 30px !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	cursor: pointer;
	transition: 0.2s ease !important;
	box-shadow: 0 4px 12px rgba(242, 140, 0, 0.15) !important;
}

.teacher-modal-alert-btn:hover {
	background-color: #d97d00 !important;
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(242, 140, 0, 0.3) !important;
}

/* Keep teacher-banner copy inside the empty left third of the supplied image.
   The first person begins at roughly 33% of the artwork, so the copy must end
   before that visual boundary. */
.ms-page-banner--teacher .ms-page-banner__content {
	width: 38% !important;
	max-width: none !important;
	margin: 0 !important;
	padding-left: clamp(40px, 4.5vw, 64px) !important;
	padding-right: 0 !important;
}

.ms-page-banner--teacher .ms-page-banner__badge {
	position: absolute;
	top: 10px;
	left: clamp(40px, 4.5vw, 64px);
	width: max-content;
	max-width: none;
	margin: 0 !important;
	padding: 9px 18px !important;
	flex-wrap: nowrap;
	white-space: nowrap;
	font-size: clamp(12px, .95vw, 14px) !important;
	line-height: 1.2;
}

.ms-page-banner--teacher .ms-page-banner__copy,
.ms-page-banner--teacher .ms-page-banner__desc {
	width: 100%;
	max-width: 100%;
}

#page #content .ms-page-banner--teacher .ms-page-banner__title {
	font-family: var(--ms-font-heading, Arial, Helvetica, sans-serif) !important;
	font-size: clamp(38px, 3vw, 44px) !important;
	font-weight: var(--ms-font-heading-weight, 700) !important;
	font-synthesis: none;
	line-height: 1.18 !important;
	letter-spacing: -0.035em !important;
	white-space: nowrap;
}

#page #content .ms-page-banner--teacher .ms-page-banner__desc {
	font-size: clamp(10px, .85vw, 12px) !important;
	white-space: nowrap;
}

/* At compact laptop widths the banner becomes taller, which pulls the group
   photo left. Keep the image and headline separated without shrinking the
   full desktop treatment. */
@media (min-width: 768px) and (max-width: 1100px) {
	.ms-page-banner--teacher .ms-page-banner__bg {
		background-position: left top !important;
	}

	.ms-page-banner--teacher .ms-page-banner__content {
		padding-left: 5vw !important;
	}

	.ms-page-banner--teacher .ms-page-banner__badge {
		left: 5vw;
		font-size: 11px !important;
	}

	#page #content .ms-page-banner--teacher .ms-page-banner__title {
		font-size: 34px !important;
		letter-spacing: -0.055em !important;
	}
}

/* The teacher artwork is 1920 x 720.  Keep that native ratio on phones so
   the deliberately empty left area is not cropped out and the copy remains
   clear of the team photograph. */
@media (max-width: 767px) {
	.page-template-template-teacher .ms-page-banner.ms-page-banner--teacher {
		display: block !important;
		aspect-ratio: 1920 / 720 !important;
		height: auto !important;
		min-height: 0 !important;
		background: #00262f;
	}

	.ms-page-banner--teacher .ms-page-banner__bg {
		position: absolute !important;
		inset: 0 !important;
		width: 100%;
		height: 100%;
		min-height: 0 !important;
		background-color: #00262f;
		background-position: center top !important;
		background-size: cover !important;
	}

	.ms-page-banner--teacher .ms-page-banner__bg::after {
		display: none;
	}

	.ms-page-banner--teacher .ms-page-banner__content {
		position: absolute;
		inset: 8px auto 8px 8px;
		width: 30.5% !important;
		max-width: 30.5% !important;
		height: auto !important;
		min-height: 0 !important;
		box-sizing: border-box !important;
		padding: 7px 4px !important;
		justify-content: center !important;
		overflow: hidden;
		background: linear-gradient(
			145deg,
			rgba(0, 45, 54, 0.42) 0%,
			rgba(6, 91, 99, 0.26) 100%
		);
		border: 1px solid rgba(255, 255, 255, 0.24);
		border-radius: 10px;
		-webkit-backdrop-filter: blur(2px);
		backdrop-filter: blur(2px);
		box-shadow: 0 6px 18px rgba(0, 20, 24, 0.12);
	}

	.ms-page-banner--teacher .ms-page-banner__badge {
		display: none !important;
	}

	.page-template-template-teacher #page #content .ms-page-banner.ms-page-banner--teacher .ms-page-banner__title {
		width: 100% !important;
		font-size: clamp(11px, 3.6vw, 14px) !important;
		line-height: 1.08 !important;
		max-width: 100% !important;
		margin-inline: 0 !important;
		letter-spacing: -0.025em !important;
		text-transform: none !important;
		white-space: normal !important;
		overflow: hidden;
		overflow-wrap: normal !important;
		word-break: normal !important;
	}

	.page-template-template-teacher #page #content .ms-page-banner.ms-page-banner--teacher .ms-page-banner__title-line {
		display: block;
		width: 100%;
		max-width: 100%;
		overflow: hidden;
		text-overflow: clip;
		white-space: nowrap !important;
	}

	.page-template-template-teacher #page #content .ms-page-banner.ms-page-banner--teacher .ms-page-banner__title br {
		display: none;
	}

	#page #content .ms-page-banner--teacher .ms-page-banner__desc {
		font-size: 8px !important;
		line-height: 1.28 !important;
		margin-top: 4px !important;
		white-space: normal;
	}

	.page-template-template-teacher .ms-page-banner--teacher .ms-page-banner__actions {
		width: 100% !important;
		margin-top: 5px !important;
		justify-content: center !important;
	}

	html body .ms-page-banner--teacher .ms-page-banner__btn {
		flex: 0 1 auto !important;
		width: auto !important;
		max-width: none !important;
		min-height: 23px !important;
		padding: 4px 5px !important;
		font-size: 7.5px !important;
		line-height: 1.2 !important;
		color: #FFFFFF !important;
		background: linear-gradient(135deg, #0D828C 0%, #085A62 100%) !important;
		border-color: #45C4D1 !important;
	}
}

/* Match the compact horizontal document cards used on the Parent page. */
@media (max-width: 767px) {
	.teacher-library-grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.teacher-library-tabs {
		gap: 8px;
		margin-bottom: 16px;
	}

	.teacher-library-tab-btn {
		padding: 8px 17px;
		font-size: 12px;
	}

	.teacher-library-card {
		flex-direction: row;
		height: 160px;
		min-height: 160px;
		max-height: 160px;
	}

	.teacher-library-card__cover {
		flex: 0 0 44%;
		height: 100%;
		min-height: 0;
		aspect-ratio: unset;
	}

	.teacher-library-card__badge {
		top: 8px;
		right: 8px;
		padding: 3px 7px;
		font-size: 10px;
	}

	.teacher-library-card__body {
		min-width: 0;
		height: 100%;
		min-height: 0;
		padding: 13px;
		box-sizing: border-box;
		overflow: hidden;
		justify-content: space-between;
	}

	.teacher-library-card__type {
		font-size: 10px;
		margin-bottom: 0;
	}

	.teacher-library-card__title {
		font-size: 14px;
		line-height: 1.35;
		min-height: 0;
		margin: 0;
	}

	.teacher-library-card__desc,
	.teacher-library-card__price {
		display: none;
	}

	.teacher-library-card__price-row {
		justify-content: flex-start;
		margin-top: 0;
		padding-top: 8px;
	}

	.teacher-library-card__action {
		font-size: 11.5px;
	}
}
