/* ==========================================================
   LMS Course & Trainer Manager — Default Styling
   To match your theme's/Elementor's colors, feel free to override this
   CSS (in a child theme or in Elementor's Custom CSS).
   ========================================================== */

/* Trainer box (Single Course page) */
.lms-trainer-box {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	padding: 20px;
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	margin: 24px 0;
	background: #fafafa;
}
.lms-trainer-photo img {
	width: 90px;
	height: 90px;
	object-fit: cover;
	border-radius: 50%;
}
.lms-trainer-label {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #888;
}
.lms-trainer-name {
	margin: 4px 0;
}
.lms-trainer-name a {
	text-decoration: none;
	color: inherit;
}
.lms-trainer-designation {
	color: #666;
	font-weight: 500;
	margin: 0 0 6px;
}
.lms-trainer-bio {
	margin: 0 0 10px;
	color: #444;
}
.lms-trainer-links a {
	margin-right: 14px;
	font-size: 14px;
}

/* Bullet lists (Features/Requirements/Outcomes/Expertise) */
.lms-bullet-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.lms-bullet-list li {
	position: relative;
	padding-left: 26px;
	margin-bottom: 8px;
}
.lms-bullet-list li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: #1a7f37;
	font-weight: bold;
}

/* Module/Day Tabs */
.lms-module-tabs {
	margin: 24px 0;
}
.lms-module-tab-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
	border-bottom: 1px solid #e5e5e5;
	padding-bottom: 12px;
}
.lms-tab-btn {
	padding: 10px 18px;
	border: 1px solid #ddd;
	background: #f7f7f7;
	cursor: pointer;
	border-radius: 6px;
	font-size: 14px;
	transition: background 0.15s ease, color 0.15s ease;
}
.lms-tab-btn:hover {
	background: #eee;
}
.lms-tab-btn.active {
	background: #1e1e1e;
	color: #fff;
	border-color: #1e1e1e;
}
.lms-tab-pane {
	display: none;
	line-height: 1.7;
}
.lms-tab-pane.active {
	display: block;
}
.lms-module-duration {
	display: inline-block;
	font-size: 13px;
	color: #666;
	margin-bottom: 8px;
}
.lms-topic-list {
	margin: 10px 0;
	padding-left: 20px;
}
.lms-topic-list li {
	margin-bottom: 6px;
}
.lms-module-video {
	margin: 14px 0;
}
.lms-module-video iframe {
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
}
.lms-assignment {
	background: #fff8e1;
	padding: 10px 14px;
	border-radius: 6px;
	margin-top: 12px;
}

/* Trainer's Course list (Single Trainer page) */
.lms-trainer-courses {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 18px;
	margin: 20px 0;
}
.lms-course-card {
	display: block;
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.lms-course-card:hover {
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}
.lms-course-card-thumb img {
	width: 100%;
	height: 150px;
	object-fit: cover;
	display: block;
}
.lms-course-card-body {
	padding: 14px;
}
.lms-course-card-body h4 {
	margin: 0 0 6px;
}
.lms-course-card-body p {
	margin: 0;
	color: #666;
	font-size: 14px;
}
.lms-no-courses {
	color: #888;
}

/* Price */
.lms-price {
	font-weight: 700;
	font-size: 16px;
	color: #1e1e1e;
}
.lms-price-free {
	color: #1a7f37;
}
.lms-price-discounted .lms-price-old {
	text-decoration: line-through;
	color: #999;
	font-weight: 400;
	font-size: 13px;
	margin-right: 8px;
}
.lms-price-discounted .lms-price-new {
	color: #c0392b;
	font-weight: 700;
}

/* Status badge */
.lms-status-badge {
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	padding: 3px 10px;
	border-radius: 20px;
	margin-bottom: 8px;
}
.lms-status-upcoming { background: #e3f2fd; color: #1565c0; }
.lms-status-running  { background: #e8f5e9; color: #1a7f37; }
.lms-status-closed   { background: #ffebee; color: #c0392b; }
.lms-status-completed{ background: #eceff1; color: #546e7a; }

/* Course meta table */
.lms-course-meta-table {
	width: 100%;
	border-collapse: collapse;
	margin: 20px 0;
}
.lms-course-meta-table th,
.lms-course-meta-table td {
	text-align: left;
	padding: 10px 12px;
	border-bottom: 1px solid #eee;
	font-size: 14px;
}
.lms-course-meta-table th {
	width: 40%;
	color: #666;
	font-weight: 600;
}

/* Trainer contact */
.lms-trainer-contact {
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
}
.lms-trainer-contact li {
	margin-bottom: 8px;
	font-size: 14px;
}
.lms-trainer-contact a {
	text-decoration: none;
	color: #1565c0;
}

/* CTA button */
.lms-cta-button {
	display: inline-block;
	padding: 12px 26px;
	background: #1e1e1e;
	color: #fff !important;
	border-radius: 8px;
	text-decoration: none !important;
	font-weight: 600;
	transition: background 0.15s ease, transform 0.15s ease;
}
.lms-cta-button:hover {
	background: #1a7f37;
	transform: translateY(-1px);
}

/* Generic Grid (Course/Trainer) — for showing a card grid on any page
   without needing Elementor Pro's Loop Grid */
.lms-grid {
	display: grid;
	grid-template-columns: repeat(var(--lms-grid-cols, 3), 1fr);
	gap: 22px;
	margin: 20px 0;
}
.lms-grid-card {
	border: 1px solid #e5e5e5;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.lms-grid-card:hover {
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
	transform: translateY(-3px);
}
.lms-grid-card-link {
	display: block;
	text-decoration: none;
	color: inherit;
}
.lms-grid-card-thumb img {
	width: 100%;
	height: 170px;
	object-fit: cover;
	display: block;
}
.lms-trainer-grid-thumb img {
	height: 200px;
}
.lms-grid-card-body {
	padding: 16px;
}
.lms-grid-card-title {
	margin: 4px 0 8px;
	font-size: 17px;
}
.lms-grid-card-desc {
	color: #666;
	font-size: 14px;
	margin: 0 0 12px;
	line-height: 1.5;
}
.lms-grid-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 10px;
}
.lms-grid-card-more {
	font-size: 13px;
	color: #1565c0;
	font-weight: 600;
}
.lms-trainer-course-count {
	display: inline-block;
	font-size: 13px;
	color: #888;
}

/* Responsive */
@media (max-width: 900px) {
	.lms-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 600px) {
	.lms-trainer-box {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
	.lms-grid {
		grid-template-columns: 1fr;
	}
}
