/**
 * Elementor widget styles – Course cards & Instructors
 */

/* ========== Course cards ========== */
.clc-courses-elementor {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(var(--clc-cols, 3), 1fr);
}

.clc-course-card {
	background: var(--clc-card-bg, #fff);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.2s ease;
}

.clc-course-card:hover {
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.clc-course-card__header {
	position: relative;
	background: var(--clc-header-bg, #722F37);
	min-height: 180px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.clc-course-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.clc-course-card__placeholder {
	font-size: 48px;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.4);
	letter-spacing: 0.02em;
}

.clc-course-card__category {
	position: absolute;
	top: 12px;
	right: 12px;
	background: var(--clc-category-bg, #C4A35A);
	color: #fff;
	padding: 6px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
}

.clc-course-card__body {
	padding: 20px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.clc-course-card__title {
	margin: 0 0 10px;
	font-size: 1.25rem;
	line-height: 1.35;
}

.clc-course-card__title a {
	color: inherit;
	text-decoration: none;
}

.clc-course-card__title a:hover {
	text-decoration: underline;
}

.clc-course-card__excerpt {
	font-size: 0.9rem;
	color: #555;
	line-height: 1.5;
	margin-bottom: 14px;
	flex: 1;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.clc-course-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 16px;
	font-size: 0.85rem;
	color: #666;
}

.clc-course-card__instructor::before {
	content: "";
	display: inline-block;
	width: 1em;
	height: 1em;
	margin-right: 6px;
	vertical-align: -0.2em;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") no-repeat center;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") no-repeat center;
	-webkit-mask-size: contain;
	mask-size: contain;
	opacity: 0.7;
}

.clc-course-card__duration::before {
	content: "";
	display: inline-block;
	width: 1em;
	height: 1em;
	margin-right: 6px;
	vertical-align: -0.2em;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E") no-repeat center;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E") no-repeat center;
	-webkit-mask-size: contain;
	mask-size: contain;
	opacity: 0.7;
}

.clc-course-card__trainees::before {
	content: "";
	display: inline-block;
	width: 1em;
	height: 1em;
	margin-right: 6px;
	vertical-align: -0.2em;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E") no-repeat center;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E") no-repeat center;
	-webkit-mask-size: contain;
	mask-size: contain;
	opacity: 0.7;
}

.clc-course-card__btn {
	display: inline-block;
	padding: 10px 20px;
	background: var(--clc-button-bg, #722F37);
	color: #fff !important;
	text-decoration: none;
	border-radius: 8px;
	font-weight: 600;
	text-align: center;
	transition: opacity 0.2s ease;
}

.clc-course-card__btn:hover {
	opacity: 0.9;
	color: #fff !important;
}

.clc-no-courses {
	margin: 0;
	padding: 20px;
	grid-column: 1 / -1;
	text-align: center;
	color: #666;
}

/* Columns */
.clc-courses-cols-1 { --clc-cols: 1; }
.clc-courses-cols-2 { --clc-cols: 2; }
.clc-courses-cols-3 { --clc-cols: 3; }
.clc-courses-cols-4 { --clc-cols: 4; }

@media (max-width: 1024px) {
	.clc-courses-elementor {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.clc-courses-elementor {
		grid-template-columns: 1fr;
	}
}

/* ========== Instructors ========== */
.clc-instructors-elementor {
	display: grid;
	gap: 24px;
}

.clc-instructors-elementor.clc-instructors-grid {
	grid-template-columns: repeat(var(--clc-instructor-cols, 4), 1fr);
}

.clc-instructors-elementor.clc-instructors-list {
	grid-template-columns: 1fr;
}

.clc-instructors-list .clc-instructor-card {
	flex-direction: row;
	align-items: center;
	text-align: left;
}

.clc-instructors-list .clc-instructor-card__avatar {
	flex-shrink: 0;
}

.clc-instructor-card {
	background: var(--clc-instructor-card-bg, #fff);
	border-radius: 12px;
	padding: 24px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	transition: box-shadow 0.2s ease;
}

.clc-instructor-card:hover {
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.clc-instructor-card__avatar {
	margin-bottom: 12px;
}

.clc-instructor-card__img {
	border-radius: 50%;
	display: block;
	width: 120px;
	height: 120px;
	object-fit: cover;
}

.clc-instructor-card__name {
	margin: 0 0 6px;
	font-size: 1.1rem;
}

.clc-instructor-card__count {
	margin: 0;
	font-size: 0.9rem;
	color: #666;
}

.clc-no-instructors {
	margin: 0;
	padding: 20px;
	grid-column: 1 / -1;
	text-align: center;
	color: #666;
}

.clc-instructors-cols-2 { --clc-instructor-cols: 2; }
.clc-instructors-cols-3 { --clc-instructor-cols: 3; }
.clc-instructors-cols-4 { --clc-instructor-cols: 4; }

@media (max-width: 1024px) {
	.clc-instructors-elementor.clc-instructors-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.clc-instructors-elementor.clc-instructors-grid {
		grid-template-columns: 1fr;
	}
}
