/* Catalog overlays on existing theme classes only. */

.teachers-list {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
}

.teachers-list .teacher-item,
a.teacher-item {
	box-sizing: border-box;
	flex: 0 0 calc((100% - 60px) / 3);
	width: calc((100% - 60px) / 3);
	max-width: calc((100% - 60px) / 3);
}

a.teacher-item {
	color: inherit;
	text-decoration: none;
	display: block;
}

.teachers-list .teacher-item__content {
	position: relative;
	z-index: 1;
	padding-right: 110px;
}

.teachers-list .teacher-title {
	width: auto;
	max-width: 100%;
	overflow-wrap: anywhere;
}

.teachers-list ul.post-tags {
	max-width: 100%;
}

.teachers-list ul.post-tags li {
	box-sizing: border-box;
	width: auto;
	max-width: 100%;
	white-space: normal;
	overflow-wrap: anywhere;
	line-height: 1.3;
	text-align: left;
}

.teachers-list .teacher-thumbnail {
	position: absolute;
	top: 16px;
	right: 16px;
	bottom: auto;
	left: auto;
	width: 88px;
	height: 88px;
	border-radius: 16px;
	overflow: hidden;
}

.teachers-list .teacher-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

@media (max-width: 768px) {
	.teachers-list .teacher-item,
	a.teacher-item {
		flex: 0 0 calc((100% - 30px) / 2);
		width: calc((100% - 30px) / 2);
		max-width: calc((100% - 30px) / 2);
	}
}

@media (max-width: 576px) {
	.teachers-list .teacher-item,
	a.teacher-item {
		flex: 0 0 100%;
		width: 100%;
		max-width: 100%;
	}

	.teachers-list .teacher-title {
		max-width: 100%;
	}
}

.catalog-filter .wpforms-field-container {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 16px;
}

.catalog-filter select,
.catalog-filter input[type="text"] {
	color: #939393;
	border: 1px solid #939393;
	border-radius: 66px;
	text-indent: 15px;
	font-family: "Tilda", Sans-serif;
	font-size: 15px;
	width: 100%;
	height: 48px;
	background: #fff;
}

.catalog-card-meta {
	margin: 16px 0 24px;
}

.catalog-card-meta .post-tags {
	margin-bottom: 16px;
}

.catalog-looks-like .teachers-list {
	margin-top: 20px;
}

.catalog-pages {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-top: 40px;
}
