/* Imago Course Templates — Frontend Styles */

/* ── Breadcrumb ── */
.imago-breadcrumb {
	font-size: 13px;
	color: #64748b;
	margin-bottom: 16px;
}
.imago-breadcrumb a {
	color: #2271b1;
	text-decoration: none;
}
.imago-breadcrumb a:hover {
	text-decoration: underline;
}
.imago-breadcrumb-sep {
	margin: 0 6px;
	color: #94a3b8;
}
.imago-breadcrumb-current {
	color: #1e293b;
}

/* ── Single Course ── */
.imago-single-course {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px 60px;
}
.imago-course-header {
	margin-bottom: 30px;
}
.imago-course-header .entry-title {
	margin-bottom: 15px;
}
.imago-course-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.imago-badge {
	display: inline-block;
	padding: 4px 14px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.5;
}
.imago-badge--track { background: #e8f0fe; color: #1a56db; }
.imago-badge--level { background: #fef3c7; color: #92400e; }
.imago-badge--format { background: #d1fae5; color: #065f46; }
.imago-badge--category { background: #f3e8ff; color: #7c3aed; }

.imago-course-layout {
	display: grid;
	grid-template-columns: 1fr 380px;
	gap: 40px;
	align-items: start;
}
@media (max-width: 900px) {
	.imago-course-layout { grid-template-columns: 1fr; }
}

.imago-course-section { margin-bottom: 35px; }
.imago-course-section h2 {
	font-size: 22px;
	margin-bottom: 12px;
	padding-bottom: 8px;
	border-bottom: 2px solid #e5e7eb;
}
.imago-section-subtitle {
	font-size: 16px;
	color: #64748b;
	margin: 16px 0 8px;
}

/* Requirements list */
.imago-requirements-list {
	list-style: none;
	padding: 0;
	margin: 0;
}
.imago-requirements-list li {
	position: relative;
	padding: 8px 0 8px 28px;
	border-bottom: 1px solid #f3f4f6;
}
.imago-requirements-list li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	top: 8px;
	color: #059669;
	font-weight: 700;
}

/* Sidebar info card */
.imago-course-info-card {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 24px;
	position: sticky;
	top: 100px;
}
.imago-course-info-card h3 {
	font-size: 18px;
	margin: 0 0 16px;
	padding-bottom: 12px;
	border-bottom: 2px solid #e2e8f0;
}
.imago-info-row {
	display: flex;
	flex-direction: column;
	padding: 10px 0;
	border-bottom: 1px solid #f1f5f9;
}
.imago-info-row:last-child { border-bottom: none; }
.imago-info-label {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #64748b;
	margin-bottom: 2px;
}
.imago-info-value {
	font-size: 15px;
	color: #1e293b;
}
.imago-info-value a {
	color: var(--imago-teal);
	text-decoration: none;
}
.imago-info-value a:hover { text-decoration: underline; }

.imago-register-btn {
	display: block;
	text-align: center;
	background: var(--imago-teal);
	color: #fff;
	padding: 12px 24px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 16px;
	text-decoration: none;
	margin-top: 8px;
	transition: background 0.2s;
}
.imago-register-btn:hover { background: var(--imago-teal-dark); color: #fff; }

/* ── Instructor Cards ── */
.imago-instructor-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 16px;
}
.imago-instructor-card {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	transition: box-shadow 0.15s;
}
.imago-instructor-card:hover {
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.imago-instructor-photo {
	flex-shrink: 0;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #e2e8f0;
}
.imago-instructor-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.imago-instructor-photo--placeholder {
	background: #2271b1;
	color: #fff;
	font-size: 24px;
	font-weight: 700;
	text-decoration: none;
}
.imago-instructor-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.imago-instructor-name {
	font-weight: 600;
	font-size: 15px;
	color: #1e293b;
	text-decoration: none;
}
.imago-instructor-name:hover {
	color: var(--imago-teal);
}
.imago-instructor-title {
	font-size: 13px;
	color: #2271b1;
	font-weight: 500;
}
.imago-instructor-location,
.imago-instructor-lang {
	font-size: 13px;
	color: #64748b;
}

/* ── Archive Grid ── */
:root {
	--imago-teal: #0d8a8a;
	--imago-teal-dark: #0a6e6e;
	--imago-gold: #d4a843;
}

.imago-archive {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px 60px;
}
.imago-archive-header {
	margin-bottom: 32px;
}
.imago-archive-header .entry-title {
	margin-bottom: 4px;
	font-size: 32px;
}
.imago-archive-count {
	color: #64748b;
	font-size: 14px;
	margin: 0;
}

.imago-course-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}
@media (max-width: 960px) {
	.imago-course-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	.imago-course-grid { grid-template-columns: 1fr; }
}

/* ── Course Card ── */
.imago-course-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
	transition: box-shadow 0.2s, transform 0.2s;
}
.imago-course-card:hover {
	box-shadow: 0 10px 25px rgba(0,0,0,0.1);
	transform: translateY(-2px);
}

/* Card image */
.imago-card-image {
	display: block;
	position: relative;
	aspect-ratio: 4/3;
	overflow: hidden;
	background: linear-gradient(135deg, #0d8a8a 0%, #065f5f 100%);
}
.imago-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s;
}
.imago-course-card:hover .imago-card-image img {
	transform: scale(1.05);
}
.imago-card-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #0d8a8a 0%, #065f5f 100%);
}
.imago-card-placeholder svg {
	opacity: 0.4;
	stroke: #fff;
}
.imago-card-format-badge {
	position: absolute;
	top: 12px;
	right: 12px;
	background: rgba(0,0,0,0.65);
	color: #fff;
	padding: 4px 12px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.02em;
	backdrop-filter: blur(4px);
}

/* Card body */
.imago-card-body {
	padding: 18px 20px 12px;
	flex: 1;
}
.imago-card-badges {
	display: flex;
	gap: 6px;
	margin-bottom: 10px;
	flex-wrap: wrap;
}
.imago-card-badge {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 3px 10px;
	border-radius: 4px;
}
.imago-card-badge--cat {
	background: #e8f5f5;
	color: var(--imago-teal);
}
.imago-card-badge--level {
	background: #fef3c7;
	color: #92400e;
}
.imago-card-title {
	font-size: 18px;
	line-height: 1.35;
	margin: 0 0 14px;
	font-weight: 600;
}
.imago-card-title a {
	color: #1e293b;
	text-decoration: none;
}
.imago-card-title a:hover {
	color: var(--imago-teal);
}

/* Card details */
.imago-card-details {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.imago-card-detail {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 13px;
	color: #475569;
	line-height: 1.4;
}
.imago-card-icon {
	flex-shrink: 0;
	font-size: 14px;
	line-height: 1.4;
	width: 18px;
	text-align: center;
}
.imago-card-detail--date {
	color: #1e293b;
	font-weight: 600;
}

/* Card footer */
.imago-card-footer {
	padding: 12px 20px 18px;
}
.imago-card-btn {
	display: inline-block;
	padding: 10px 24px;
	background: var(--imago-teal);
	color: #fff;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.15s;
}
.imago-card-btn:hover {
	background: var(--imago-teal-dark);
	color: #fff;
}

/* Archive empty */
.imago-archive-empty {
	text-align: center;
	padding: 80px 20px;
	color: #94a3b8;
	font-size: 16px;
}

/* Pagination */
.imago-archive .pagination,
.imago-archive .nav-links {
	margin-top: 40px;
	text-align: center;
	display: flex;
	justify-content: center;
	gap: 4px;
}
.imago-archive .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 8px;
	text-decoration: none;
	color: #475569;
	font-weight: 500;
	border: 1px solid #e2e8f0;
	transition: all 0.15s;
}
.imago-archive .page-numbers:hover {
	background: #f1f5f9;
}
.imago-archive .page-numbers.current {
	background: var(--imago-teal);
	color: #fff;
	border-color: var(--imago-teal);
}
.imago-archive .page-numbers.prev,
.imago-archive .page-numbers.next {
	width: auto;
	padding: 0 16px;
}

/* ── Template Preview (frontend form) ── */
.imago-template-preview {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-left: 4px solid #2271b1;
	border-radius: 6px;
	padding: 20px 24px;
	margin: 16px 0;
	font-size: 14px;
	line-height: 1.6;
}
.imago-preview-heading {
	font-size: 16px;
	font-weight: 600;
	margin: 0 0 8px;
	color: #1e293b;
}
.imago-preview-inner > p {
	color: #64748b;
	margin: 0 0 16px;
	font-size: 13px;
}
.imago-preview-field { padding: 4px 0; }
.imago-preview-field strong { color: #475569; }
.imago-template-preview h5 {
	font-size: 14px;
	font-weight: 600;
	margin: 16px 0 6px;
	color: #334155;
	border-bottom: 1px solid #e2e8f0;
	padding-bottom: 4px;
}
.imago-template-preview ul {
	margin: 0;
	padding: 0 0 0 20px;
}
.imago-template-preview li {
	padding: 3px 0;
	color: #475569;
}
.imago-preview-desc {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 4px;
	padding: 12px 16px;
	margin-top: 6px;
	color: #475569;
}
.imago-preview-empty {
	color: #94a3b8;
	font-style: italic;
}
