.commission-section {
	max-width: 1200px;
	margin: 60px auto;
	padding: 0 20px;
	font-family: 'Inter', sans-serif;
}

.commission-section h1,
.commission-section h2 {
	font-size: 2rem;
	margin-bottom: 32px;
	color: var(--text-color);
	text-align: center;
}

.commission-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 24px;
}

.teacher-card {
	display: flex;
	align-items: flex-end;
	justify-content: flex-start;
	background-size: cover;
	background-position: center;
	height: 360px;
	border-radius: 16px;
	text-decoration: none;
	overflow: hidden;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
	transition: transform 0.3s ease;
	position: relative;
}

.teacher-card:hover {
	transform: scale(1.02);
}

.teacher-info {
	background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
	width: 100%;
	padding: 16px;
	color: #fff;
}

.teacher-info h3 {
	margin: 0;
	font-size: 1.1rem;
	font-weight: 600;
}

.tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-bottom: 30px;
}

.tab-button {
	padding: 10px 20px;
	border: 1px solid #5865f2;
	background-color: transparent;
	color: #5865f2;
	cursor: pointer;
	border-radius: 5px;
	font-weight: 500;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.tab-button.active,
.tab-button:hover {
	background-color: #5865f2;
	color: white;
}

.commission-tab-content {
	display: none;
	animation: fadeIn 0.3s ease-in-out;
}

.commission-tab-content.active {
	display: block;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

body.dark-theme .tab-button {
	border-color: #8da1ff;
	color: #8da1ff;
	background-color: transparent;
}

body.dark-theme .tab-button.active,
body.dark-theme .tab-button:hover {
	background-color: #8da1ff;
	color: #111;
}
