/* Extracted from new/templ/page/learn.templ (templ Learn) */

/* iOS Safari ignores overflow-x:hidden on body for touch panning (AOS
   slide-ins and pre-init carousels transiently overflow); only clip on the
   root element actually prevents the page being dragged sideways. */
html, body { overflow-x: clip; }
@supports not (overflow-x: clip) {
	html, body { overflow-x: hidden; }
}
.transition-all { transition: all 0.3s ease; }
.hover-bg-opacity-20:hover { background-color: rgba(255, 255, 255, 0.2) !important; }

/* Assignments card */
.assignment-card {
	position: relative;
	overflow: hidden;
	/* main.css gives every .card height: calc(100% - 1.25rem); iOS WebKit
	   resolves that against the viewport-tall ancestor chain and stretches
	   the card far past its content. */
	height: auto !important;
	/* Deeper, moodier brand gradient than the inline fallback so the white
	   type and glass cards have contrast to bite into. */
	background: radial-gradient(900px 420px at 88% -10%, rgba(165, 180, 252, 0.4), transparent 55%),
		radial-gradient(700px 380px at -5% 110%, rgba(56, 46, 180, 0.55), transparent 60%),
		linear-gradient(135deg, #6d63f2 0%, #5348e8 45%, #3b2fc0 100%) !important;
	box-shadow: 0 24px 48px -20px rgba(67, 56, 202, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}
.assignment-card::before,
.assignment-card::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	/* Soft glows, not outlined discs: the old filled+bordered circles read
	   as a hard-edged band slicing across the top of the card on phones. */
	background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 45%, transparent 70%);
	pointer-events: none;
}
.assignment-card::before {
	width: 360px;
	height: 360px;
	top: -160px;
	right: -120px;
}
.assignment-card::after {
	width: 240px;
	height: 240px;
	bottom: -120px;
	left: -90px;
}
/* Fine dot texture keeps the big flat gradient from looking like a slab. */
.assignment-card .card-body {
	position: relative;
	background-image: radial-gradient(rgba(255, 255, 255, 0.14) 0.5px, transparent 0.5px);
	background-size: 22px 22px;
}
.assignment-card-title {
	text-shadow: 0 2px 12px rgba(30, 27, 95, 0.35);
}
.assignment-count-circle {
	width: 60px;
	height: 60px;
	background: linear-gradient(160deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.08));
	border: 2px solid rgba(255, 255, 255, 0.55);
	box-shadow: 0 8px 20px rgba(30, 27, 95, 0.3), 0 0 0 6px rgba(255, 255, 255, 0.08),
		inset 0 1px 0 rgba(255, 255, 255, 0.35);
	backdrop-filter: blur(4px);
}
.task-icon {
	width: 44px;
	height: 44px;
	min-width: 44px;
	background: rgba(255, 255, 255, 0.18) !important;
	border: 1px solid rgba(255, 255, 255, 0.25);
	font-size: 1.05rem;
	transition: all 0.3s ease;
}

/* Assignments swiper (task cards) */
.tasks-swiper {
	/* Breathing room so hover lift and card shadows aren't clipped by
	   Swiper's overflow:hidden. */
	padding: 8px 2px 10px;
	position: relative;
	z-index: 1;
}
/* Equal-height slides via flex stretch only. Percentage heights
   (Swiper's wrapper height:100% + a h-100 card) resolve against an
   auto-height chain and iOS WebKit blows the slide up to a huge height. */
.tasks-swiper .swiper-wrapper {
	height: auto;
}
.tasks-swiper .swiper-slide {
	display: flex;
	height: auto;
}
.tasks-swiper .swiper-slide > .task-card {
	min-width: 0;
}
.task-card {
	/* Ink-tinted glass instead of white-wash: the white type and progress
	   bars need a darker pane behind them to read crisply. */
	background: linear-gradient(165deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
		linear-gradient(165deg, rgba(30, 27, 95, 0.28), rgba(30, 27, 95, 0.16));
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-top-color: rgba(255, 255, 255, 0.4);
	border-radius: 20px;
	backdrop-filter: blur(8px);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 12px 26px -14px rgba(20, 16, 80, 0.55);
	transition: all 0.3s ease;
}
.task-card:hover {
	background: linear-gradient(165deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08)),
		linear-gradient(165deg, rgba(30, 27, 95, 0.24), rgba(30, 27, 95, 0.12));
	border-color: rgba(255, 255, 255, 0.5);
	transform: translateY(-4px);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 18px 34px -12px rgba(20, 16, 80, 0.65);
}
.task-card .task-icon {
	width: 48px;
	height: 48px;
	min-width: 48px;
	background: linear-gradient(150deg, #ffffff, #dbe2ff) !important;
	border: none;
	box-shadow: 0 6px 14px rgba(30, 27, 95, 0.32), inset 0 -2px 0 rgba(79, 70, 229, 0.15);
}
.task-card .task-icon i {
	color: #4f46e5 !important;
}
.task-card:hover .task-icon {
	transform: scale(1.08) rotate(-4deg);
}
.task-card-title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	line-height: 1.35;
	min-height: 2.7em;
	margin-bottom: 2px;
}
.task-card-course {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.task-card-meta {
	font-size: 0.78rem;
}
/* Percent reads as a chip so the eye lands on it before the bar animates. */
.task-card .task-card-meta.fw-bold {
	background: rgba(255, 255, 255, 0.16);
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 999px;
	padding: 1px 9px;
	font-variant-numeric: tabular-nums;
}
.task-card-chevron {
	width: 32px;
	height: 32px;
	min-width: 32px;
	background: rgba(255, 255, 255, 0.18);
	border: 1px solid rgba(255, 255, 255, 0.25);
	color: #fff;
	font-size: 0.75rem;
	transition: all 0.3s ease;
}
.task-card:hover .task-card-chevron {
	background: #fff;
	color: #4f46e5;
	transform: translateX(3px);
}
.task-card-progress {
	height: 8px;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.2);
	overflow: hidden;
}
.task-card-progress-fill {
	height: 100%;
	border-radius: 4px;
	background: linear-gradient(90deg, #ffffff, #c7d2fe);
	box-shadow: 0 0 10px rgba(255, 255, 255, 0.45);
	transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}
/* Hide the pager once every task fits in view (Swiper's watchOverflow adds
   the *-lock classes), and when there's only one task at all. */
.tasks-swiper-wrap.is-single .tasks-swiper-controls,
.tasks-swiper-controls:has(.swiper-pagination-lock) {
	display: none !important;
}
.tasks-swiper-wrap.is-single .tasks-swiper {
	padding-bottom: 2px;
}
/* A lone task stretches across the panel as a horizontal card instead of
   leaving two empty columns beside it. */
@media (min-width: 992px) {
	.tasks-swiper-wrap.is-single .task-card {
		display: grid !important;
		grid-template-columns: auto minmax(0, 1fr) minmax(240px, 32%);
		grid-template-rows: auto auto;
		column-gap: 1.25rem;
		row-gap: 0.15rem;
		align-items: center;
		padding: 1.25rem 1.5rem !important;
	}
	.tasks-swiper-wrap.is-single .task-card > .d-flex:first-child {
		grid-row: 1 / span 2;
		grid-column: 1;
		flex-direction: column;
		align-items: flex-start;
		gap: 0.6rem;
		margin-bottom: 0 !important;
	}
	.tasks-swiper-wrap.is-single .task-card-title {
		grid-row: 1;
		grid-column: 2;
		align-self: end;
		-webkit-line-clamp: 2;
	}
	.tasks-swiper-wrap.is-single .task-card-course {
		grid-row: 2;
		grid-column: 2;
		align-self: start;
		margin-bottom: 0 !important;
	}
	.tasks-swiper-wrap.is-single .task-card > .mt-auto {
		grid-row: 1 / span 2;
		grid-column: 3;
		margin-top: 0 !important;
	}
}

.tasks-swiper-controls {
	position: relative;
	z-index: 1;
}
.tasks-swiper-controls .tasks-swiper-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px;
	min-width: 0;
	/* Swiper's bundle CSS absolutely positions .swiper-pagination; keep it
	   in the flex row between the arrows. */
	position: static;
	width: auto;
}
/* Long task lists: "3 / 48" counter instead of a dot per task. */
.tasks-swiper-controls .tasks-swiper-pagination-fraction {
	min-width: 64px;
	padding: 4px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.15);
	border: 1px solid rgba(255, 255, 255, 0.25);
	color: #fff;
	font-size: 0.8rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.3px;
}
.tasks-swiper-pagination-fraction .swiper-pagination-total {
	opacity: 0.7;
}
.tasks-swiper-pagination .swiper-pagination-bullet {
	background: #fff;
	opacity: 0.35;
	border-radius: 4px;
	margin: 0 !important;
	transition: all 0.25s ease;
}
.tasks-swiper-pagination .swiper-pagination-bullet:hover {
	opacity: 0.7;
}
.tasks-swiper-pagination .swiper-pagination-bullet-active {
	opacity: 1;
	width: 22px;
	box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}
.tasks-swiper-btn {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.3);
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	font-size: 0.8rem;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
}
.tasks-swiper-btn:hover {
	background: #fff;
	color: #4f46e5;
	transform: scale(1.08);
	box-shadow: 0 6px 16px rgba(30, 27, 95, 0.35);
}
.tasks-swiper-btn.swiper-button-disabled {
	opacity: 0.35;
	pointer-events: none;
}
.assignment-progress-bar {
	position: relative;
	overflow: hidden;
	border-radius: 5px;
	/* background-image so the dark theme's bg-white restore keeps working. */
	background-image: linear-gradient(90deg, #ffffff, #c7d2fe);
	box-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
	transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.assignment-progress-bar::after {
	content: "";
	position: absolute;
	top: 0;
	left: -100%;
	width: 60%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.35), transparent);
	animation: progress-shimmer 2.2s ease-in-out infinite;
}
@keyframes progress-shimmer {
	0% { left: -100%; }
	100% { left: 160%; }
}
.alert-top {
	height: 150px;
	width: auto;
}
.fw-black { font-weight: 900; }
.fw-medium { font-weight: 500; }
.character-win {
	height: 100px;
	width: 100px;
	max-width: 100px;
	min-width: 100px;
	min-height: 100px;
	object-fit: cover;
	transform: scale(1.2);
}

/* Modern Layout Styles */
.btn-white {
	background-color: #fff;
	border: 1px solid #e2e8f0;
	color: #64748b;
}
.btn-white:hover {
	background-color: #f8fafc;
	color: #0f172a;
}
.search-input-modern {
	background: #fff !important;
	border-radius: 22px !important;
	overflow: hidden;
	border: 1.5px solid #e2e8f0;
	transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
	padding: 7px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 32px -18px rgba(15, 23, 42, 0.12) !important;
}
.search-input-modern:hover {
	border-color: #cbd5e1;
}
.search-input-modern:focus-within {
	border-color: var(--primary);
	box-shadow: 0 10px 30px -8px rgba(0, 140, 255, 0.25), 0 0 0 4px rgba(0, 140, 255, 0.08) !important;
	transform: translateY(-2px);
}
.search-input-modern .input-group-text {
	font-size: 1.1rem;
	transition: color 0.25s ease;
}
.search-input-modern:focus-within .input-group-text i {
	color: var(--primary) !important;
}
.search-input-modern .form-control::placeholder {
	color: #94a3b8;
	font-weight: 500;
}
.bg-primary-light {
	background-color: #f0f7ff;
}
.course-card-request {
	background: #fff;
	border: 2px dashed #e2e8f0;
	border-radius: 24px;
	cursor: pointer;
	transition: all 0.2s;
	position: relative;
	overflow: hidden;
}
.course-card-request:hover {
	border-color: var(--primary);
	background: #f0f7ff;
	transform: translateY(-2px);
}
.page-content.bg-light {
	background-color: #f8fafc !important;
	/* Ambient glow behind the "My Learning" header so the page opens on a
	   soft hero wash instead of a flat canvas. */
	background-image: radial-gradient(900px 380px at 12% -80px, rgba(99, 102, 241, 0.09), transparent 70%),
		radial-gradient(760px 320px at 85% -60px, rgba(168, 85, 247, 0.07), transparent 70%);
	background-repeat: no-repeat;
}
.explore-section {
	background-color: #ffffff;
	background-image: radial-gradient(1100px 420px at 18% -60px, rgba(0, 140, 255, 0.07), transparent 70%),
		radial-gradient(900px 380px at 88% -40px, rgba(99, 102, 241, 0.06), transparent 70%);
	background-repeat: no-repeat;
	border-radius: 40px 40px 0 0;
	/* The last learning section carries mb-5 (3rem); pull the card back up
	   so the guides grid and the library hero read as one page. */
	margin-top: -1.25rem;
	padding-top: 2.5rem;
	padding-bottom: 5rem;
	box-shadow: 0 -20px 25px -5px rgba(0, 0, 0, 0.05);
	position: relative;
	z-index: 1;
}
/* Nothing renders above the explore card (no classes, assignments or
   saved guides) - drop the floating-card treatment entirely so the page
   reads as plain white from the header down, instead of opening on a
   band of empty grey background with a rounded card under it. The
   -2rem margin cancels #main-content's inline 2rem top padding. */
.explore-section.flush {
	margin-top: -2rem;
	border-radius: 0;
	box-shadow: none;
	/* No card edge to clear, so the hero can sit close under the header. */
	padding-top: 1.5rem;
}
.explore-section.flush::before {
	border-radius: 0;
}
.explore-section::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 100%;
	background-image: radial-gradient(#c7ddf2 0.5px, transparent 0.5px);
	background-size: 24px 24px;
	pointer-events: none;
	opacity: 0.45;
	border-radius: 40px 40px 0 0;
	/* Keep the texture out of the header area - fade it in below the
	   title/search block so it reads as background, not noise. */
	-webkit-mask-image: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, 0.6) 220px, #000 340px);
	mask-image: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, 0.6) 220px, #000 340px);
}
/* Explore header */
.explore-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	background: linear-gradient(120deg, rgba(0, 140, 255, 0.1), rgba(99, 102, 241, 0.1));
	border: 1px solid rgba(0, 140, 255, 0.18);
	color: #0369a1;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	border-radius: 999px;
	padding: 0.32rem 0.85rem;
}
.explore-eyebrow i {
	font-size: 0.8rem;
	color: var(--primary, #008cff);
}
.explore-title {
	background: linear-gradient(120deg, #0f172a 40%, #008cff 95%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	letter-spacing: -0.03em;
	font-size: calc(1.35rem + 1vw);
}
.explore-subtitle {
	color: #64748b;
}
.explore-count {
	color: var(--primary, #008cff);
	font-weight: 800;
}
.filter-btn-modern {
	width: 54px;
	height: 54px;
	background: #fff;
	border: 1.5px solid #e2e8f0;
	color: #475569;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 24px -14px rgba(15, 23, 42, 0.18) !important;
	transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.filter-btn-modern:hover {
	transform: translateY(-2px);
	border-color: rgba(0, 140, 255, 0.4);
	color: var(--primary, #008cff);
	box-shadow: 0 16px 30px -14px rgba(0, 140, 255, 0.35) !important;
}

.access-pass-banner {
	cursor: pointer;
	transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.access-pass-banner:hover {
	transform: translateY(-4px) scale(1.02);
}
.banner-gradient {
	background: linear-gradient(135deg, #00a3ff 0%, #0070e0 55%, #4f46e5 120%);
	box-shadow: 0 20px 40px -12px rgba(0, 112, 224, 0.45);
	position: relative;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 24px !important;
}
.banner-shine {
	position: absolute;
	top: 0;
	bottom: 0;
	left: -75%;
	width: 50%;
	background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.22) 50%, transparent 100%);
	transform: skewX(-20deg);
	pointer-events: none;
}
.access-pass-banner:hover .banner-shine {
	animation: banner-shine-sweep 0.9s ease;
}
@keyframes banner-shine-sweep {
	0% { left: -75%; }
	100% { left: 130%; }
}
.banner-gradient::after {
	content: "";
	position: absolute;
	top: -50%;
	right: -10%;
	width: 400px;
	height: 400px;
	background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
	pointer-events: none;
}
.banner-gradient::before {
	content: "";
	position: absolute;
	bottom: -20%;
	left: -10%;
	width: 250px;
	height: 250px;
	background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
	pointer-events: none;
}
.banner-img {
	height: 90px;
	width: 90px;
	object-fit: contain;
	filter: drop-shadow(0 8px 16px rgba(0,0,0,0.25));
	transition: transform 0.4s ease;
}
.access-pass-banner:hover .banner-img {
	transform: rotate(5deg) scale(1.1);
}
@media (max-width: 768px) {
	.banner-img {
		height: 60px;
		width: 60px;
	}
	.banner-text h3 {
		font-size: 1.25rem;
	}
}

/* Banner seated inside the courses grid beside one or two cards: stack the
   copy vertically so it reads well at a third / two thirds of the row, and
   always show the button (the full-width banner hides it on small screens). */
.courses-grid > [class*="col-"]:not(.col-12) > .access-pass-banner .banner-gradient {
	flex-direction: column;
	align-items: flex-start;
	gap: 1.25rem;
}
.courses-grid > [class*="col-"]:not(.col-12) > .access-pass-banner .banner-gradient > .d-flex {
	align-items: flex-start !important;
}
.courses-grid > [class*="col-"]:not(.col-12) > .access-pass-banner .banner-action {
	display: block !important;
}
.courses-grid > .col-xl-4 > .access-pass-banner .banner-gradient > .d-flex {
	flex-direction: column;
	gap: 1rem;
}
.courses-grid > .col-xl-4 > .access-pass-banner .banner-icon-wrapper {
	margin-right: 0 !important;
}
.courses-grid > [class*="col-"] > .access-pass-banner:hover {
	transform: translateY(-4px);
}

/* Learn header polish */
.learn-title-gradient {
	/* Three-stop gradient so the hue shifts smoothly across both words
	   instead of "My" reading black and "Learning" flipping fully purple. */
	background: linear-gradient(100deg, #0f172a 0%, #312e81 55%, #4f46e5 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	letter-spacing: -0.035em;
	line-height: 1.08;
	/* background-clip: text only paints inside the box, and a 1.08 line box
	   is shorter than the glyphs - the "g" descender came out sliced flat.
	   Pad the box and pull the margin back so layout doesn't shift. */
	padding: 0.06em 0 0.16em;
	margin-bottom: calc(0.25rem - 0.16em) !important;
	font-size: clamp(2.05rem, 1.45rem + 2.2vw, 2.9rem);
}
.learn-subtitle {
	display: block;
	color: #64748b;
	font-size: 0.95rem;
	letter-spacing: 0.01em;
}
.learn-section-title {
	letter-spacing: -0.025em;
	font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.7rem);
}
.assignment-card-title {
	letter-spacing: -0.02em;
	font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.65rem);
}
@media (max-width: 575.98px) {
	.learn-home-link {
		padding: 0.5rem 0.95rem;
		font-size: 0.82rem;
	}
	.learn-subtitle {
		font-size: 0.88rem;
	}
}
.learn-home-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 999px;
	padding: 0.6rem 1.2rem;
	font-weight: 800;
	font-size: 0.88rem;
	color: #0f172a;
	text-decoration: none;
	transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.learn-home-link:hover {
	transform: translateY(-2px);
	border-color: #c7d2fe;
	color: #4f46e5;
	box-shadow: 0 14px 26px -12px rgba(79, 70, 229, 0.35) !important;
}
.learn-home-link i { color: #6366f1; }
.learn-home-new {
	background: linear-gradient(120deg, #6366f1, #a855f7);
	color: #fff;
	font-size: 0.6rem;
	font-weight: 900;
	letter-spacing: 0.08em;
	border-radius: 999px;
	padding: 0.14rem 0.5rem;
}

/* Hearts variant */
.banner-gradient.variant-hearts {
	background: linear-gradient(135deg, #ff4b7d 0%, #b3005e 100%);
	box-shadow: 0 20px 40px -10px rgba(255, 75, 125, 0.4);
}
.banner-gradient.variant-hearts .badge {
	color: #b3005e !important;
}

/* ============ Dark theme ============ */
/* theme.css stamps html[data-theme="dark"] and supplies the --tt-* scale.
   The assignment gradient card, access-pass banner and hearts variant are
   already dark brand artwork and keep their light-mode look. */

/* Header buttons / links */
html[data-theme="dark"] .btn-white {
	background-color: var(--tt-surface, #111a2e);
	border-color: var(--tt-line, #263450);
	color: var(--tt-muted, #94a3b8);
}
html[data-theme="dark"] .btn-white:hover {
	background-color: var(--tt-surface-2, #17233b);
	color: var(--tt-ink, #e6ebf5);
}
html[data-theme="dark"] .learn-home-link {
	background: var(--tt-surface, #111a2e);
	border-color: var(--tt-line, #263450);
	color: var(--tt-ink, #e6ebf5);
}
html[data-theme="dark"] .learn-home-link:hover {
	border-color: rgba(124, 128, 242, 0.55);
	color: #a5b4fc;
	box-shadow: 0 14px 26px -12px rgba(0, 0, 0, 0.6) !important;
}
html[data-theme="dark"] .learn-home-link i { color: #a5b4fc; }

/* Title gradients: swap the near-black stop for ink so text stays legible */
html[data-theme="dark"] .learn-title-gradient {
	background: linear-gradient(100deg, #e6ebf5 0%, #b4b8fa 55%, #7c80f2 100%);
	-webkit-background-clip: text;
	background-clip: text;
}
html[data-theme="dark"] .learn-subtitle { color: var(--tt-muted, #94a3b8); }
html[data-theme="dark"] .explore-title {
	background: linear-gradient(120deg, #e6ebf5 40%, #38b6ff 95%);
	-webkit-background-clip: text;
	background-clip: text;
}
html[data-theme="dark"] .explore-subtitle { color: var(--tt-muted, #94a3b8); }

/* Search input */
html[data-theme="dark"] .search-input-modern {
	background: var(--tt-surface, #111a2e) !important;
	border-color: var(--tt-line, #263450);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -18px rgba(0, 0, 0, 0.5) !important;
}
html[data-theme="dark"] .search-input-modern:hover {
	border-color: var(--tt-line-strong, #33436a);
}
html[data-theme="dark"] .search-input-modern:focus-within {
	box-shadow: 0 10px 30px -8px rgba(0, 140, 255, 0.3), 0 0 0 4px rgba(0, 140, 255, 0.12) !important;
}
html[data-theme="dark"] .search-input-modern .form-control {
	background: transparent;
	color: var(--tt-ink, #e6ebf5);
}
html[data-theme="dark"] .search-input-modern .input-group-text {
	background: transparent;
	color: var(--tt-muted, #94a3b8);
}
html[data-theme="dark"] .search-input-modern .form-control::placeholder {
	color: var(--tt-muted, #94a3b8);
}

/* Tinted helpers / request card */
html[data-theme="dark"] .bg-primary-light {
	background-color: rgba(0, 140, 255, 0.14);
}
html[data-theme="dark"] .course-card-request {
	background: var(--tt-surface, #111a2e);
	border-color: var(--tt-line-strong, #33436a);
}
html[data-theme="dark"] .course-card-request:hover {
	border-color: var(--primary, #008cff);
	background: rgba(0, 140, 255, 0.12);
}

/* Page canvas + explore section */
html[data-theme="dark"] .page-content.bg-light {
	background-color: var(--tt-bg, #0b1120) !important;
	/* Stronger wash in dark: the flat navy canvas otherwise swallows the
	   header and the class pills fade into the background. */
	background-image: radial-gradient(1000px 420px at 12% -80px, rgba(124, 128, 242, 0.16), transparent 70%),
		radial-gradient(820px 360px at 85% -60px, rgba(168, 85, 247, 0.1), transparent 70%);
}
/* The purple assignment hero deserves an ambient halo on the dark canvas so
   it reads as glowing rather than pasted on. */
html[data-theme="dark"] .assignment-card {
	box-shadow: 0 30px 70px -22px rgba(99, 102, 241, 0.55), 0 0 90px -30px rgba(124, 128, 242, 0.4),
		inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}
/* Section headings sit directly on the canvas; theme.css's text-dark
   override can lag behind - keep them ink. */
html[data-theme="dark"] .learn-section-title { color: var(--tt-ink, #e6ebf5) !important; }
html[data-theme="dark"] .explore-section {
	background-color: var(--tt-surface, #111a2e);
	background-image: radial-gradient(1100px 420px at 18% -60px, rgba(0, 140, 255, 0.1), transparent 70%),
		radial-gradient(900px 380px at 88% -40px, rgba(124, 128, 242, 0.09), transparent 70%);
	box-shadow: 0 -20px 25px -5px rgba(0, 0, 0, 0.35);
}
html[data-theme="dark"] .explore-section.flush {
	box-shadow: none;
}
html[data-theme="dark"] .explore-section::before {
	background-image: radial-gradient(#2a3b5c 0.5px, transparent 0.5px);
	opacity: 0.55;
}
html[data-theme="dark"] .explore-eyebrow {
	background: linear-gradient(120deg, rgba(0, 140, 255, 0.16), rgba(124, 128, 242, 0.16));
	border-color: rgba(0, 140, 255, 0.3);
	color: #7cc4ff;
}

/* Brand-gradient artwork (assignment card, access-pass banners) keeps its
   light-mode chrome: theme.css's generic `.bg-white → surface` override would
   otherwise stamp dark navy chips onto the blue gradients. */
html[data-theme="dark"] .access-pass-banner .badge.bg-white,
html[data-theme="dark"] .assignment-card .badge.bg-white,
html[data-theme="dark"] .assignment-card .progress-bar.bg-white {
	background-color: #fff !important;
}
html[data-theme="dark"] .access-pass-banner .badge.bg-white.bg-opacity-25,
html[data-theme="dark"] .assignment-card .badge.bg-white.bg-opacity-25 {
	background-color: rgba(255, 255, 255, 0.25) !important;
}
html[data-theme="dark"] .access-pass-banner .btn-white {
	background-color: #fff;
	border-color: transparent;
	color: var(--primary, #008cff);
}

/* theme.css's [class*="card"] hammer also matches .task-card* inside the
   purple assignment gradient and stamps them --tt-surface; restore the
   frosted-glass chrome (these sit on brand artwork, not the page canvas). */
html[data-theme="dark"] .task-card {
	background: linear-gradient(165deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
		linear-gradient(165deg, rgba(30, 27, 95, 0.28), rgba(30, 27, 95, 0.16));
	border-color: rgba(255, 255, 255, 0.22);
	border-top-color: rgba(255, 255, 255, 0.4);
}
html[data-theme="dark"] .task-card:hover {
	background: linear-gradient(165deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08)),
		linear-gradient(165deg, rgba(30, 27, 95, 0.24), rgba(30, 27, 95, 0.12));
	border-color: rgba(255, 255, 255, 0.5);
}
html[data-theme="dark"] .task-card-course {
	background-color: transparent;
}
html[data-theme="dark"] .task-card-chevron {
	background: rgba(255, 255, 255, 0.18);
	border-color: rgba(255, 255, 255, 0.25);
}
html[data-theme="dark"] .task-card:hover .task-card-chevron {
	background: #fff;
}
html[data-theme="dark"] .task-card-progress {
	background: rgba(255, 255, 255, 0.2);
}
html[data-theme="dark"] .task-card-progress-fill {
	background: linear-gradient(90deg, #ffffff, #c7d2fe);
}

/* Filter button */
html[data-theme="dark"] .filter-btn-modern {
	background: var(--tt-surface, #111a2e);
	border-color: var(--tt-line, #263450);
	color: #c3cddd;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 24px -14px rgba(0, 0, 0, 0.55) !important;
}
html[data-theme="dark"] .filter-btn-modern:hover {
	border-color: rgba(0, 140, 255, 0.5);
	color: #38b6ff;
	box-shadow: 0 16px 30px -14px rgba(0, 140, 255, 0.3) !important;
}

/* ===================== Page-wide polish (2026-09) ===================== */

/* Header entrance + living title gradient */
.learning-header {
	animation: learnHeaderIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes learnHeaderIn {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: translateY(0); }
}
.learn-title-gradient {
	background-size: 200% 100%;
	animation: learnTitleDrift 8s ease-in-out infinite alternate;
}
@keyframes learnTitleDrift {
	from { background-position: 0% 50%; }
	to { background-position: 100% 50%; }
}
.learn-home-new {
	animation: learnNewGlow 2.2s ease-in-out infinite;
}
@keyframes learnNewGlow {
	0%, 100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.45); }
	50% { box-shadow: 0 0 0 5px rgba(168, 85, 247, 0); }
}

/* Section titles get a gradient underline that grows in */
.learn-section-title {
	position: relative;
	padding-bottom: 6px;
}
.learn-section-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 44px;
	height: 4px;
	border-radius: 4px;
	background: linear-gradient(90deg, #6366f1, #a855f7);
	transform-origin: left;
	animation: learnUnderlineGrow 0.7s cubic-bezier(0.22, 1, 0.36, 1) both 0.15s;
}
@keyframes learnUnderlineGrow {
	from { transform: scaleX(0); opacity: 0; }
	to { transform: scaleX(1); opacity: 1; }
}

/* Section count chips shimmer softly */
.class-courses-section .badge.bg-primary-light,
.my-courses-section .badge.bg-primary-light {
	position: relative;
	overflow: hidden;
}
.class-courses-section .badge.bg-primary-light::after,
.my-courses-section .badge.bg-primary-light::after {
	content: "";
	position: absolute;
	top: 0;
	left: -80%;
	width: 60%;
	height: 100%;
	background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.7), transparent);
	transform: skewX(-20deg);
	animation: learnChipShine 4s ease-in-out infinite;
}
@keyframes learnChipShine {
	0%, 70% { left: -80%; }
	100% { left: 140%; }
}

/* Assignments hero: gently breathing task counter */
.assignment-count-circle {
	animation: learnCountBreathe 3.2s ease-in-out infinite;
}
@keyframes learnCountBreathe {
	0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.28); }
	50% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
}

/* Course cards float up on hover (wraps the shared CourseListing card) */
.courses-grid > [class*="col-"] {
	transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.courses-grid > [class*="col-"]:hover {
	transform: translateY(-6px);
}

/* Search box: animated focus ring */
.search-input-modern:focus-within {
	animation: learnSearchRing 0.6s ease;
}
@keyframes learnSearchRing {
	0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.35); }
	100% { box-shadow: 0 0 0 8px rgba(99, 102, 241, 0); }
}

/* Explore eyebrow compass slowly spins on section hover */
.explore-header:hover .explore-eyebrow i {
	animation: learnCompassSpin 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes learnCompassSpin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
	.learning-header, .learn-title-gradient, .learn-home-new,
	.learn-section-title::after,
	.class-courses-section .badge.bg-primary-light::after,
	.my-courses-section .badge.bg-primary-light::after,
	.assignment-count-circle, .search-input-modern:focus-within,
	.explore-header:hover .explore-eyebrow i {
		animation: none !important;
	}
	.courses-grid > [class*="col-"]:hover { transform: none; }
}

/* Topic preview that fills the empty columns beside a lone class course */
.class-peek {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	flex: 1;
	min-width: 0;
	min-height: 0;
	/* The course cards beside this tile are height:100%, so whatever is
	   tallest in the row sets the row height. Size containment stops the
	   peek's topic list from being that thing: it contributes nothing to
	   the row's height and simply stretches to match the cards, clipping
	   any topics that don't fit. */
	contain: size;
	padding: 1.75rem 1.75rem 1.5rem;
	border-radius: 32px;
	text-decoration: none;
	color: var(--tt-ink, #0f172a);
	background:
		radial-gradient(circle at 100% 0%, rgba(168, 85, 247, 0.10), transparent 45%),
		linear-gradient(135deg, rgba(99, 102, 241, 0.07), rgba(14, 165, 233, 0.05));
	border: 1px solid rgba(99, 102, 241, 0.16);
}
.class-peek:hover { color: var(--tt-ink, #0f172a); border-color: rgba(99, 102, 241, 0.4); }
.class-peek-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.75rem;
}
.class-peek-eyebrow {
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #6366f1;
	margin-bottom: 0.35rem;
}
.class-peek-title { font-size: 1.5rem; }
.class-peek-stats { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.class-peek-stats span {
	padding: 0.35rem 0.8rem;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 600;
	background: rgba(99, 102, 241, 0.1);
	color: #6366f1;
}
.class-peek-topics {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.6rem;
	flex: 1;
	min-height: 0;
	overflow: hidden;
	align-content: start;
	/* Fade rather than hard-cut the last topic when the list is clipped;
	   when everything fits the faded band is empty space. */
	-webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 2.5rem), transparent);
	mask-image: linear-gradient(to bottom, #000 calc(100% - 2.5rem), transparent);
}
.class-peek-wide .class-peek-topics { grid-template-columns: 1fr 1fr; }
.class-peek-topic {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-width: 0;
	padding: 0.7rem 0.9rem;
	border-radius: 16px;
	background: var(--tt-surface, #fff);
	border: 1px solid rgba(99, 102, 241, 0.1);
	transition: transform 0.2s ease;
}
.class-peek:hover .class-peek-topic { transform: translateX(2px); }
.class-peek-num {
	flex: 0 0 30px;
	height: 30px;
	display: grid;
	place-items: center;
	border-radius: 10px;
	font-weight: 800;
	font-size: 0.85rem;
	color: #fff;
	background: linear-gradient(135deg, #6366f1, #a855f7);
}
.class-peek-name {
	flex: 1;
	min-width: 0;
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.class-peek-count { font-size: 0.8rem; font-weight: 700; opacity: 0.55; }
.class-peek-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 1rem;
	border-top: 1px solid rgba(99, 102, 241, 0.14);
	font-size: 0.9rem;
	font-weight: 600;
	opacity: 0.85;
}
.class-peek-cta { color: #6366f1; font-weight: 800; }
html[data-theme="dark"] .class-peek-topic { background: rgba(255, 255, 255, 0.05); }
html[data-theme="dark"] .class-peek-eyebrow,
html[data-theme="dark"] .class-peek-cta,
html[data-theme="dark"] .class-peek-stats span { color: #a5b4fc; }

/* ===================== "Cooler" pass (2026-09-21) ===================== */

/* Title: vivid indigo → violet → pink sweep */
.learn-title-gradient {
	background: linear-gradient(100deg, #0f172a 0%, #4338ca 35%, #a855f7 65%, #ec4899 100%);
	background-size: 200% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	filter: drop-shadow(0 6px 18px rgba(99, 102, 241, 0.18));
}
html[data-theme="dark"] .learn-title-gradient {
	background: linear-gradient(100deg, #e6ebf5 0%, #a5b4fc 35%, #c084fc 65%, #f472b6 100%);
	background-size: 200% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	filter: drop-shadow(0 6px 22px rgba(124, 128, 242, 0.35));
}

/* Header pills: gradient hairline border */
.learn-home-link {
	border: 1.5px solid transparent;
	background: linear-gradient(#fff, #fff) padding-box,
		linear-gradient(120deg, #c7d2fe, #e9d5ff 50%, #fbcfe8) border-box;
}
.learn-home-link:hover {
	background: linear-gradient(#fff, #fff) padding-box,
		linear-gradient(120deg, #6366f1, #a855f7 50%, #ec4899) border-box;
}
html[data-theme="dark"] .learn-home-link {
	border-color: transparent;
	background: linear-gradient(var(--tt-surface, #111a2e), var(--tt-surface, #111a2e)) padding-box,
		linear-gradient(120deg, rgba(124, 128, 242, 0.55), rgba(192, 132, 252, 0.4) 50%, rgba(244, 114, 182, 0.4)) border-box;
}
html[data-theme="dark"] .learn-home-link:hover {
	border-color: transparent;
	background: linear-gradient(var(--tt-surface-2, #17233b), var(--tt-surface-2, #17233b)) padding-box,
		linear-gradient(120deg, #7c80f2, #c084fc 50%, #f472b6) border-box;
}

/* Assignments hero: the flat outline circles become drifting aurora orbs */
.assignment-card::before,
.assignment-card::after {
	border: none;
	filter: blur(28px);
	will-change: transform;
}
.assignment-card::before {
	width: 460px;
	height: 460px;
	top: -220px;
	right: -120px;
	background: radial-gradient(circle, rgba(236, 72, 153, 0.55), rgba(168, 85, 247, 0.25) 45%, transparent 70%);
	animation: learnOrbDriftA 14s ease-in-out infinite alternate;
}
.assignment-card::after {
	width: 380px;
	height: 380px;
	bottom: -200px;
	left: -100px;
	background: radial-gradient(circle, rgba(34, 211, 238, 0.45), rgba(56, 189, 248, 0.2) 45%, transparent 70%);
	animation: learnOrbDriftB 17s ease-in-out infinite alternate;
}
@keyframes learnOrbDriftA {
	from { transform: translate(0, 0) scale(1); }
	to { transform: translate(-140px, 90px) scale(1.2); }
}
@keyframes learnOrbDriftB {
	from { transform: translate(0, 0) scale(1); }
	to { transform: translate(160px, -70px) scale(1.15); }
}
html[data-theme="dark"] .assignment-card {
	background: radial-gradient(900px 420px at 88% -10%, rgba(129, 140, 248, 0.3), transparent 55%),
		radial-gradient(700px 380px at -5% 110%, rgba(30, 27, 95, 0.7), transparent 60%),
		linear-gradient(135deg, #4f46e5 0%, #3b2fc0 45%, #231a82 100%) !important;
}

/* Task counter: orbiting light on the ring */
.assignment-count-circle {
	position: relative;
}
.assignment-count-circle::before {
	content: "";
	position: absolute;
	inset: -8px;
	border-radius: 50%;
	background: conic-gradient(from 0deg, transparent 0 55%, rgba(255, 255, 255, 0.95) 85%, transparent 100%);
	-webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
	mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
	animation: learnRingSpin 3.6s linear infinite;
	pointer-events: none;
}
@keyframes learnRingSpin {
	to { transform: rotate(360deg); }
}

/* Task cards: staggered entrance, pointer-tracked spotlight, hover sheen */
.task-card {
	position: relative;
	overflow: hidden;
	animation: learnTaskIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.tasks-swiper .swiper-slide:nth-child(2) .task-card { animation-delay: 0.08s; }
.tasks-swiper .swiper-slide:nth-child(3) .task-card { animation-delay: 0.16s; }
.tasks-swiper .swiper-slide:nth-child(n+4) .task-card { animation-delay: 0.24s; }
@keyframes learnTaskIn {
	from { opacity: 0; transform: translateY(18px) scale(0.97); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}
.task-card > * {
	position: relative;
	z-index: 1;
}
/* --mx/--my are set by the pointer tracker in tasksSwiperInit */
.task-card::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.28), transparent 65%);
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
}
.task-card:hover::before {
	opacity: 1;
}
.task-card::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: -80%;
	width: 45%;
	background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.2), transparent);
	transform: skewX(-20deg);
	pointer-events: none;
}
.task-card:hover::after {
	animation: banner-shine-sweep 0.9s ease;
}
.task-card:hover {
	transform: translateY(-6px);
}
/* Urgent / overdue tasks carry a warm edge so they stand out in the row */
.task-card:has(.task-deadline-urgent),
html[data-theme="dark"] .task-card:has(.task-deadline-urgent) {
	border-color: rgba(253, 164, 175, 0.55);
	border-top-color: rgba(254, 205, 211, 0.8);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 14px 30px -14px rgba(244, 63, 94, 0.6);
}
.task-card-progress-fill {
	background: linear-gradient(90deg, #ffffff, #a5f3fc 60%, #f0abfc);
}
html[data-theme="dark"] .task-card-progress-fill {
	background: linear-gradient(90deg, #ffffff, #a5f3fc 60%, #f0abfc);
}
.assignment-progress-bar {
	background-image: linear-gradient(90deg, #ffffff, #a5f3fc 60%, #f0abfc);
	box-shadow: 0 0 16px rgba(165, 243, 252, 0.55);
}

@media (prefers-reduced-motion: reduce) {
	.assignment-card::before, .assignment-card::after,
	.assignment-count-circle::before, .task-card,
	.task-card:hover::after {
		animation: none !important;
	}
}

/* ===================== Explore hero (2026-09-25 redesign) ===================== */
/* The header used to be a stack of loose parts: an eyebrow, a gradient title,
   a search bar and a filter button floating on its own in the top-right.
   It is now one composed block: copy on top, a single search row beneath
   (search + labelled Filters button as one control), a soft radial glow and
   a ghost compass watermark so the section opens with some depth. */
.explore-hero {
	position: relative;
	isolation: isolate;
	padding: 0.5rem 0 0.25rem;
}
.explore-hero-glow {
	position: absolute;
	inset: -40px -10% auto -10%;
	height: 260px;
	background: radial-gradient(520px 220px at 12% 30%, rgba(0, 140, 255, 0.16), transparent 70%),
		radial-gradient(420px 200px at 55% 10%, rgba(99, 102, 241, 0.1), transparent 70%);
	filter: blur(6px);
	pointer-events: none;
	z-index: -1;
}
.explore-hero-watermark {
	position: absolute;
	right: -0.5rem;
	top: -1.25rem;
	font-size: 11rem;
	line-height: 1;
	color: var(--primary, #008cff);
	opacity: 0.045;
	pointer-events: none;
	z-index: -1;
	transform: rotate(-12deg);
	transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease;
}
.explore-header:hover .explore-hero-watermark {
	transform: rotate(8deg) scale(1.04);
	opacity: 0.07;
}
.explore-hero-copy {
	margin-bottom: 1.5rem;
}
.explore-eyebrow {
	position: relative;
	gap: 0.5rem;
	padding: 0.38rem 0.95rem 0.38rem 0.75rem;
	margin-bottom: 0.9rem;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 6px 18px -12px rgba(0, 140, 255, 0.5);
}
.explore-eyebrow-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--primary, #008cff);
	box-shadow: 0 0 0 0 rgba(0, 140, 255, 0.5);
	animation: exploreDotPulse 2.4s ease-out infinite;
}
@keyframes exploreDotPulse {
	0% { box-shadow: 0 0 0 0 rgba(0, 140, 255, 0.55); }
	70% { box-shadow: 0 0 0 7px rgba(0, 140, 255, 0); }
	100% { box-shadow: 0 0 0 0 rgba(0, 140, 255, 0); }
}
.explore-title {
	/* Base word stays ink; only the accent word carries the gradient so
	   the title reads at a glance instead of fading into blue mid-word. */
	background: none;
	-webkit-text-fill-color: initial;
	color: #0f172a;
	font-size: clamp(2.1rem, 1.4rem + 2.2vw, 3.4rem);
	line-height: 1.02;
	letter-spacing: -0.035em;
	margin-bottom: 0.65rem;
}
.explore-title-accent {
	position: relative;
	display: inline-block;
	background: linear-gradient(110deg, #008cff 0%, #38b6ff 45%, #6366f1 100%);
	background-size: 200% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	animation: exploreAccentShift 7s ease-in-out infinite alternate;
}
@keyframes exploreAccentShift {
	from { background-position: 0% 50%; }
	to { background-position: 100% 50%; }
}
.explore-title-accent::after {
	/* Underline swash beneath the accent word; grows on hover. */
	content: "";
	position: absolute;
	left: 0.02em;
	right: 0.02em;
	bottom: -0.08em;
	height: 0.16em;
	border-radius: 999px;
	background: linear-gradient(90deg, rgba(0, 140, 255, 0.55), rgba(99, 102, 241, 0.35));
	opacity: 0.55;
	transform-origin: left center;
	transform: scaleX(0.35);
	transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}
.explore-header:hover .explore-title-accent::after {
	transform: scaleX(1);
	opacity: 0.8;
}
.explore-subtitle {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem;
	font-size: 1.05rem;
	color: #64748b;
}
.explore-count {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.28rem 0.75rem 0.28rem 0.6rem;
	border-radius: 999px;
	background: #fff;
	border: 1px solid #e2e8f0;
	color: #0f172a;
	font-weight: 800;
	font-size: 0.9rem;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 20px -14px rgba(15, 23, 42, 0.25);
}
.explore-count i {
	color: var(--primary, #008cff);
	font-size: 0.85rem;
}

/* Search row: input + Filters button as one control */
.explore-search-row {
	display: flex;
	align-items: stretch;
	gap: 0.75rem;
}
.explore-search-row .search-input-modern {
	flex: 1 1 auto;
	margin: 0;
	padding: 5px 5px 5px 4px;
	border-radius: 20px !important;
	border: 1.5px solid #e2e8f0;
	background: rgba(255, 255, 255, 0.92) !important;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}
.explore-search-row .search-input-modern .input-group-text {
	color: #94a3b8;
	font-size: 1.15rem;
}
.explore-search-row .search-input-modern .form-control {
	font-size: 1.15rem;
	font-weight: 500;
	color: #0f172a;
	box-shadow: none;
}
.explore-search-row .filter-btn-modern {
	flex: 0 0 auto;
	width: auto;
	height: auto;
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0 1.25rem;
	border-radius: 20px;
	font-weight: 700;
	font-size: 0.95rem;
	color: #334155;
}
.explore-search-row .filter-btn-modern i {
	font-size: 1.15rem;
	--fa-primary-color: var(--primary, #008cff);
	--fa-secondary-color: var(--primary, #008cff);
	--fa-secondary-opacity: 0.35;
}
.explore-search-row .filter-btn-modern:hover {
	transform: translateY(-1px);
	background: linear-gradient(120deg, rgba(0, 140, 255, 0.08), rgba(99, 102, 241, 0.08));
}
@media (max-width: 575.98px) {
	.explore-section:not(.flush) { margin-top: -1.75rem; padding-top: 2rem; }
	.explore-hero-watermark { font-size: 7.5rem; right: -1.25rem; top: -0.5rem; }
	.explore-search-row { gap: 0.5rem; }
	.explore-search-row .search-input-modern .input-group-text { padding-left: 1rem !important; }
	.explore-search-row .search-input-modern .form-control { font-size: 1.02rem; }
	.explore-search-row .filter-btn-modern { padding: 0 0.95rem; }
	.explore-search-row .filter-btn-label { display: none; }
	.explore-subtitle { font-size: 0.95rem; }
}

/* Dark theme */
html[data-theme="dark"] .explore-hero-glow {
	background: radial-gradient(520px 220px at 12% 30%, rgba(0, 140, 255, 0.22), transparent 70%),
		radial-gradient(420px 200px at 55% 10%, rgba(124, 128, 242, 0.16), transparent 70%);
}
html[data-theme="dark"] .explore-hero-watermark { color: #7cc4ff; opacity: 0.06; }
html[data-theme="dark"] .explore-header:hover .explore-hero-watermark { opacity: 0.09; }
html[data-theme="dark"] .explore-eyebrow {
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 22px -12px rgba(0, 140, 255, 0.55);
}
html[data-theme="dark"] .explore-title {
	background: none;
	color: var(--tt-ink, #e6ebf5);
}
html[data-theme="dark"] .explore-title-accent {
	background: linear-gradient(110deg, #38b6ff 0%, #7cc4ff 45%, #a5a8ff 100%);
	background-size: 200% 100%;
	-webkit-background-clip: text;
	background-clip: text;
}
html[data-theme="dark"] .explore-count {
	background: rgba(255, 255, 255, 0.05);
	border-color: var(--tt-line-strong, #33436a);
	color: var(--tt-ink, #e6ebf5);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 20px -14px rgba(0, 0, 0, 0.6);
}
html[data-theme="dark"] .explore-count i { color: #38b6ff; }
html[data-theme="dark"] .explore-search-row .search-input-modern {
	background: rgba(15, 23, 42, 0.72) !important;
	border-color: var(--tt-line-strong, #33436a);
}
html[data-theme="dark"] .explore-search-row .search-input-modern .form-control { color: var(--tt-ink, #e6ebf5); }
html[data-theme="dark"] .explore-search-row .filter-btn-modern {
	color: #c3cddd;
	border-color: var(--tt-line-strong, #33436a);
}
html[data-theme="dark"] .explore-search-row .filter-btn-modern i {
	--fa-primary-color: #38b6ff;
	--fa-secondary-color: #38b6ff;
}
html[data-theme="dark"] .explore-search-row .filter-btn-modern:hover {
	background: linear-gradient(120deg, rgba(0, 140, 255, 0.16), rgba(124, 128, 242, 0.16));
	color: #fff;
}
@media (prefers-reduced-motion: reduce) {
	.explore-eyebrow-dot, .explore-title-accent { animation: none !important; }
	.explore-hero-watermark, .explore-title-accent::after { transition: none !important; }
}

/* ===================== Courses empty state (2026-09-27) ===================== */
/* Rendered by buildNoCoursesState() in courses.js when a search/filter set
   returns nothing. Glass card, glowing search orb, removable filter chips. */
.no-courses {
	position: relative;
	width: 100%;
	margin: 0.5rem 0 2rem;
	padding: clamp(2rem, 5vw, 3.25rem) clamp(1.25rem, 4vw, 2.5rem);
	text-align: center;
	border-radius: 28px;
	border: 1px solid var(--tt-line, #e2e8f0);
	background:
		radial-gradient(60% 45% at 50% 0%, rgba(0, 140, 255, 0.14), transparent 70%),
		var(--tt-surface, #fff);
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 24px 48px -28px rgba(15, 23, 42, 0.25);
	overflow: hidden;
	animation: noCoursesIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.no-courses::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image: radial-gradient(rgba(15, 23, 42, 0.08) 1px, transparent 1px);
	background-size: 22px 22px;
	mask-image: radial-gradient(65% 65% at 50% 30%, #000 30%, transparent 100%);
	-webkit-mask-image: radial-gradient(65% 65% at 50% 30%, #000 30%, transparent 100%);
}
@keyframes noCoursesIn {
	from { opacity: 0; transform: translateY(14px) scale(0.985); }
	to { opacity: 1; transform: none; }
}

.no-courses__art {
	position: relative;
	width: 132px;
	height: 132px;
	margin: 0 auto 1.5rem;
}
.no-courses__orb {
	position: absolute;
	inset: 22px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	font-size: 34px;
	color: #fff;
	background: linear-gradient(135deg, #00a3ff 0%, #0070e0 55%, #4f46e5 120%);
	box-shadow: 0 18px 36px -12px rgba(0, 112, 224, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
	animation: noCoursesFloat 4s ease-in-out infinite;
}
.no-courses__orb i { --fa-secondary-opacity: 0.55; }
.no-courses__ring {
	position: absolute;
	inset: 6px;
	border-radius: 50%;
	border: 1.5px dashed rgba(0, 140, 255, 0.35);
	animation: noCoursesSpin 28s linear infinite;
}
.no-courses__ring--2 {
	inset: -6px;
	border-style: solid;
	border-color: rgba(0, 140, 255, 0.12);
	animation: noCoursesPulse 3.2s ease-in-out infinite;
}
.no-courses__spark {
	position: absolute;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #38b6ff;
	box-shadow: 0 0 12px 2px rgba(56, 182, 255, 0.6);
	animation: noCoursesTwinkle 2.6s ease-in-out infinite;
}
.no-courses__spark--1 { top: 10px; right: 14px; }
.no-courses__spark--2 { bottom: 16px; left: 8px; width: 6px; height: 6px; animation-delay: 0.8s; background: #a78bfa; box-shadow: 0 0 12px 2px rgba(167, 139, 250, 0.6); }
.no-courses__spark--3 { top: 52px; left: -6px; width: 5px; height: 5px; animation-delay: 1.6s; }
@keyframes noCoursesFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes noCoursesSpin { to { transform: rotate(360deg); } }
@keyframes noCoursesPulse { 0%, 100% { transform: scale(1); opacity: 0.6; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes noCoursesTwinkle { 0%, 100% { transform: scale(0.6); opacity: 0.35; } 50% { transform: scale(1.15); opacity: 1; } }

.no-courses__title {
	margin: 0 0 0.5rem;
	font-size: clamp(1.45rem, 3.2vw, 1.9rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.15;
	color: var(--tt-ink, #0f172a);
	overflow-wrap: anywhere;
}
.no-courses__body {
	max-width: 32rem;
	margin: 0 auto;
	font-size: 1rem;
	line-height: 1.55;
	color: var(--tt-muted, #64748b);
}

.no-courses__chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 1.5rem;
}
.no-courses__chip {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.45rem 0.7rem 0.45rem 0.95rem;
	border-radius: 999px;
	border: 1px solid var(--tt-line-strong, #cbd5e1);
	background: var(--tt-surface-2, #f8fafc);
	color: var(--tt-ink, #0f172a);
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s, background 0.2s, color 0.2s;
}
.no-courses__chip i {
	display: grid;
	place-items: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	font-size: 0.7rem;
	background: var(--tt-surface-3, #e2e8f0);
	color: var(--tt-muted, #64748b);
	transition: background 0.2s, color 0.2s;
}
.no-courses__chip:hover {
	transform: translateY(-1px);
	border-color: rgba(239, 68, 68, 0.5);
	color: #dc2626;
}
.no-courses__chip:hover i { background: rgba(239, 68, 68, 0.14); color: #dc2626; }

.no-courses__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.6rem;
	margin-top: 1.5rem;
}
.no-courses__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.7rem 1.15rem;
	border-radius: 999px;
	border: 1.5px solid var(--tt-line-strong, #cbd5e1);
	background: var(--tt-surface, #fff);
	color: var(--tt-ink, #0f172a);
	font-weight: 700;
	font-size: 0.92rem;
	line-height: 1;
	cursor: pointer;
	transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s, border-color 0.2s;
}
.no-courses__btn:hover { transform: translateY(-2px); border-color: rgba(0, 140, 255, 0.5); box-shadow: 0 14px 28px -16px rgba(0, 140, 255, 0.4); }
.no-courses__btn:active { transform: translateY(0) scale(0.98); }
.no-courses__btn--primary {
	border-color: transparent;
	color: #fff;
	background: linear-gradient(135deg, #00a3ff 0%, #0070e0 60%, #4f46e5 130%);
	box-shadow: 0 12px 28px -12px rgba(0, 112, 224, 0.6);
}
.no-courses__btn--primary:hover { border-color: transparent; box-shadow: 0 18px 34px -12px rgba(0, 112, 224, 0.65); }

html[data-theme="dark"] .no-courses {
	border-color: var(--tt-line, #263450);
	background:
		radial-gradient(60% 45% at 50% 0%, rgba(0, 140, 255, 0.2), transparent 70%),
		var(--tt-surface, #111a2e);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 30px 56px -30px rgba(0, 0, 0, 0.7);
}
html[data-theme="dark"] .no-courses::before { background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px); }
html[data-theme="dark"] .no-courses__chip { background: var(--tt-surface-2, #16213a); border-color: var(--tt-line, #263450); color: #e2e8f0; }
html[data-theme="dark"] .no-courses__chip i { background: var(--tt-surface-3, #1f2c48); color: #94a3b8; }
html[data-theme="dark"] .no-courses__chip:hover { color: #f87171; border-color: rgba(248, 113, 113, 0.5); }
html[data-theme="dark"] .no-courses__chip:hover i { background: rgba(248, 113, 113, 0.16); color: #f87171; }
html[data-theme="dark"] .no-courses__btn { background: var(--tt-surface-2, #16213a); border-color: var(--tt-line, #263450); color: #e2e8f0; }
html[data-theme="dark"] .no-courses__btn--primary { border-color: transparent; color: #fff; background: linear-gradient(135deg, #00a3ff 0%, #0070e0 60%, #4f46e5 130%); }

@media (prefers-reduced-motion: reduce) {
	.no-courses, .no-courses__orb, .no-courses__ring, .no-courses__spark { animation: none !important; }
}

/* Empty-guide peek (My Guides row, course with no topics yet): one centred
   message instead of the topic grid, so the panel doesn't look half-loaded. */
.class-peek-empty .class-peek-topics {
	grid-template-columns: 1fr;
	align-content: center;
	justify-items: center;
	-webkit-mask-image: none;
	mask-image: none;
}
.class-peek-empty .class-peek-topic {
	max-width: 32rem;
	padding: 1rem 1.25rem;
}
.class-peek-empty .class-peek-name {
	white-space: normal;
	line-height: 1.35;
}
