/*
 * Courses Page
 * Path: /assets/css/pages/courses.css
 */

.courses-page {
	background: #ffffff;
}

/* =========================
   Page Hero
========================= */

.page-hero {
	padding-top: 18px;
	padding-bottom: 72px;
}

.page-hero-card {
	position: relative;
	min-height: 420px;
	border-radius: 18px;
	overflow: hidden;
	display: grid;
	place-items: center;
	background:
		linear-gradient(
			120deg,
			rgba(255, 255, 255, 0.78),
			rgba(245, 244, 255, 0.8)
		),
		linear-gradient(
			135deg,
			#dad4d0,
			#ede8e5
		);
}

.page-hero-card::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(
			90deg,
			rgba(255, 255, 255, 0.16),
			rgba(255, 255, 255, 0.28)
		);
	pointer-events: none;
}

.page-hero-content {
	position: relative;
	z-index: 3;
	text-align: center;
	padding: 30px 20px;
}

.page-hero-content h1 {
	margin: 0 0 18px;
	font-family: "Manrope", "Inter", Arial, sans-serif;
	font-size: clamp(42px, 5vw, 55px);
	font-weight: 800;
	line-height: 1;
	color: var(--ink, #16151d);
}

/* =========================
   Breadcrumb
========================= */

.breadcrumb {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px;
	font-size: 13px;
	color: var(--muted, #696575);
}

.breadcrumb a {
	color: var(--primary, #2f20ff);
	font-weight: 600;
	transition:
		color 0.2s ease,
		opacity 0.2s ease;
}

.breadcrumb a:hover {
	opacity: 0.75;
}

.breadcrumb span[aria-current="page"] {
	color: var(--ink, #16151d);
}

/* =========================
   Hero Decorative Artwork
========================= */

.hero-art {
	position: absolute;
	z-index: 2;
	display: grid;
	place-items: center;
	color: #7d758a;
	font-size: 12px;
	font-weight: 600;
	text-align: center;
	border: 2px dashed rgba(45, 32, 120, 0.18);
	background: rgba(255, 255, 255, 0.25);
}

.art-left {
	left: 50px;
	top: 55px;
	width: 300px;
	height: 280px;
	transform: rotate(-8deg);
}

.art-right {
	right: 0;
	top: 0;
	width: 310px;
	height: 100%;
	border-radius: 50% 0 0 50%;
}

/* =========================
   Courses Section
========================= */

.courses-section {
	padding-top: 10px;
	padding-bottom: 100px;
}

.course-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

/* =========================
   Course Card
========================= */

.course-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 17px;
	background: #ffffff;
	border: 1px solid #f1eff7;
	border-radius: var(--radius-md, 16px);
	box-shadow: var(
		--shadow,
		0 10px 28px rgba(30, 22, 100, 0.09)
	);
	overflow: hidden;
	transition:
		transform 0.25s ease,
		box-shadow 0.25s ease,
		border-color 0.25s ease;
}

.course-card:hover {
	transform: translateY(-6px);
	border-color: rgba(47, 32, 255, 0.18);
	box-shadow: 0 18px 40px rgba(30, 22, 100, 0.14);
}

/* =========================
   Course Image
========================= */

.course-media {
	position: relative;
	height: 235px;
	overflow: hidden;
	border-radius: 13px;
	display: grid;
	place-items: center;
	color: #625a9d;
	font-size: 14px;
	font-weight: 600;
	background:
		linear-gradient(
			135deg,
			#d8d3ff,
			#f0edff
		);
	border: 1px dashed rgba(70, 50, 180, 0.22);
}

.course-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 0.35s ease;
}

.course-card:hover .course-media img {
	transform: scale(1.04);
}

.course-media-blue {
	background:
		linear-gradient(
			135deg,
			#7ea0ff,
			#c3d1ff
		);
}

.course-media-pink {
	background:
		linear-gradient(
			135deg,
			#ffc8d8,
			#f7dce7
		);
}

.course-media-purple {
	background:
		linear-gradient(
			135deg,
			#a494e9,
			#d2c8ff
		);
}

.course-media-lilac {
	background:
		linear-gradient(
			135deg,
			#c9bcff,
			#ddd4ff
		);
}

/* =========================
   Round Arrow Link
========================= */

.round-link {
	position: absolute;
	right: -4px;
	top: -4px;
	z-index: 2;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: var(--primary, #2f20ff);
	color: #ffffff;
	font-size: 28px;
	line-height: 1;
	border: 7px solid #ffffff;
	transition:
		transform 0.25s ease,
		background-color 0.25s ease;
}

.round-link:hover {
	transform: rotate(8deg) scale(1.05);
	background: var(--primary-dark, #2110cb);
	color: #ffffff;
}

/* =========================
   Course Content
========================= */

.course-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 18px 0 0;
}

.course-category {
	align-self: flex-start;
	display: inline-flex;
	padding: 5px 10px;
	border-radius: 4px;
	background: #f6f4ff;
	color: var(--primary, #2f20ff);
	font-size: 11px;
	font-weight: 600;
	line-height: 1.4;
}

.course-content h2 {
	margin: 14px 0 24px;
	min-height: 54px;
	font-family: "Manrope", "Inter", Arial, sans-serif;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.5;
	color: var(--ink, #16151d);
}

.course-content h2 a {
	color: inherit;
	transition: color 0.2s ease;
}

.course-content h2 a:hover {
	color: var(--primary, #2f20ff);
}

/* =========================
   Course Meta
========================= */

.course-meta {
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid var(--line, #eceaf4);
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	color: var(--primary, #2f20ff);
	font-size: 12px;
}

.course-meta span {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	white-space: nowrap;
}

.course-meta b {
	color: #272432;
	font-weight: 500;
	margin-left: 2px;
}

/* =========================
   Empty State
========================= */

.courses-empty {
	grid-column: 1 / -1;
	margin: 0;
	padding: 45px 25px;
	text-align: center;
	color: var(--muted, #696575);
	background: var(--surface, #f6f4ff);
	border: 1px solid var(--line, #eceaf4);
	border-radius: var(--radius-md, 16px);
}

/* =========================
   Tablet
========================= */

@media (max-width: 1024px) {

	.course-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.art-left {
		left: 15px;
		width: 230px;
	}

	.art-right {
		width: 250px;
	}
}

/* =========================
   Mobile
========================= */

@media (max-width: 760px) {

	.page-hero {
		padding-top: 14px;
		padding-bottom: 52px;
	}

	.page-hero-card {
		min-height: 300px;
		border-radius: 15px;
	}

	.page-hero-content h1 {
		font-size: 42px;
	}

	.hero-art {
		opacity: 0.45;
	}

	.art-left {
		left: -40px;
		top: 45px;
		width: 190px;
		height: 200px;
	}

	.art-right {
		right: -60px;
		width: 190px;
	}

	.courses-section {
		padding-bottom: 70px;
	}

	.course-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.course-media {
		height: 230px;
	}

	.course-content h2 {
		min-height: auto;
	}
}

/* =========================
   Small Mobile
========================= */

@media (max-width: 480px) {

	.page-hero-card {
		min-height: 260px;
	}

	.page-hero-content h1 {
		font-size: 36px;
	}

	.course-card {
		padding: 13px;
	}

	.course-media {
		height: 210px;
	}

	.round-link {
		width: 50px;
		height: 50px;
		font-size: 24px;
		border-width: 6px;
	}

	.course-meta {
		gap: 8px;
		font-size: 11px;
	}
}
/* =========================
   Category-first course flow
========================= */
.courses-section-heading {
	max-width: 720px;
	margin: 0 auto 38px;
	text-align: center;
}

.courses-eyebrow {
	display: inline-block;
	margin-bottom: 10px;
	padding: 7px 12px;
	border-radius: 999px;
	background: #f0eeff;
	color: var(--primary, #2f20ff);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
}

.courses-section-heading h2 {
	margin: 0 0 12px;
	font-family: "Manrope", "Inter", Arial, sans-serif;
	font-size: clamp(30px, 4vw, 44px);
	line-height: 1.15;
}

.courses-section-heading p {
	margin: 0;
	color: var(--muted, #696575);
}

.course-category-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.course-category-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 17px;
	background: #fff;
	border: 1px solid #f1eff7;
	border-radius: var(--radius-md, 16px);
	box-shadow: var(--shadow, 0 10px 28px rgba(30, 22, 100, .09));
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.course-category-card:hover {
	transform: translateY(-6px);
	border-color: rgba(47, 32, 255, .18);
	box-shadow: 0 18px 40px rgba(30, 22, 100, .14);
}

.course-category-media {
	position: relative;
	display: grid;
	place-items: center;
	height: 235px;
	overflow: hidden;
	border: 1px dashed rgba(70, 50, 180, .22);
	border-radius: 13px;
	background: linear-gradient(135deg, #d8d3ff, #f0edff);
	color: #625a9d;
	font-weight: 600;
}

.course-category-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}

.course-category-card:hover .course-category-media img {
	transform: scale(1.04);
}

.course-category-content {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 22px 4px 5px;
}

.course-count {
	align-self: flex-start;
	padding: 6px 10px;
	border-radius: 6px;
	background: #f3f1ff;
	color: var(--primary, #2f20ff);
	font-size: 12px;
	font-weight: 700;
}

.course-category-content h2 {
	margin: 17px 0 10px;
	font-size: 23px;
	line-height: 1.25;
}

.course-category-content h2 a {
	color: var(--ink, #16151d);
}

.course-category-content p {
	margin: 0 0 20px;
	color: var(--muted, #696575);
	font-size: 14px;
}

.category-details-link,
.course-details-button {
	margin-top: auto;
	font-weight: 700;
	color: var(--primary, #2f20ff);
}

.course-details-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 20px;
	padding: 12px 18px;
	border-radius: 8px;
	background: var(--primary, #2f20ff);
	color: #fff;
}

.course-details-button:hover {
	color: #fff;
	opacity: .88;
}

.navigation.pagination {
	margin-top: 42px;
	text-align: center;
}

.nav-links {
	display: flex;
	justify-content: center;
	gap: 8px;
}

.nav-links .page-numbers {
	display: grid;
	place-items: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border: 1px solid #ece9f7;
	border-radius: 8px;
	background: #fff;
}

.nav-links .current {
	background: var(--primary, #2f20ff);
	color: #fff;
}

@media (max-width: 1024px) {
	.course-category-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 680px) {
	.course-category-grid {
		grid-template-columns: 1fr;
	}

	.course-category-media {
		height: 220px;
	}
}
