/**
 * EduBlink Companion frontend styles.
 * 1. Rich live-search dropdown items.
 */

.ebc-live-results {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ebc-live-results .ebc-result {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-bottom: 1px solid var(--edublink-color-border, #e5e5e5);
}

.ebc-live-results .ebc-result:last-child {
	border-bottom: 0;
}

.ebc-live-results .ebc-result-thumb {
	flex: 0 0 48px;
}

.ebc-live-results .ebc-result-thumb img {
	width: 48px;
	height: 48px;
	object-fit: cover;
	border-radius: 6px;
	display: block;
}

.ebc-live-results .ebc-result-body {
	min-width: 0;
	display: block;
}

.ebc-live-results .ebc-result-title {
	display: block;
	font-weight: 500;
	color: var(--edublink-color-heading, #181818);
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ebc-live-results .ebc-result-title:hover {
	color: var(--edublink-color-primary, #002d74);
}

.ebc-live-results .ebc-result-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	color: var(--edublink-color-body, #808080);
}

.ebc-live-results .ebc-result-meta del {
	opacity: 0.6;
	margin-right: 4px;
}

/* Price pill badge (used by both the Elementor template and PHP fallback). */
.ebc-result-price {
	display: inline-block;
	background-color: var(--edublink-color-primary, #002d74);
	color: #ffffff;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	padding: 6px 12px;
	border-radius: 20px;
	vertical-align: middle;
	white-space: nowrap;
}

.ebc-result-price .ebc-price-free {
	color: #ffffff;
	font-weight: 600;
}

.ebc-result-price del {
	color: rgba(255, 255, 255, 0.65);
	margin-right: 6px;
}

.ebc-result-price ins {
	text-decoration: none;
	color: #ffffff;
}

.ebc-live-results .ebc-no-result {
	padding: 12px;
}

/*
 * Course card (style 1) override helpers: the difficulty-level badge sits
 * top-LEFT on the thumbnail (theme default puts the time badge top-right).
 */
.edublink-single-course .thumbnail .time-top.ebc-badge-left {
	right: auto;
	left: 10px;
}

.edublink-single-course .time-top .duration i[class^="ri-"] {
	line-height: 1;
	vertical-align: -2px;
	margin-right: 5px;
}

/*
 * Remix icons: the theme's icomoon base rule declares line-height 1, but
 * remixicon.css does not - so large remix icons inherit the page line
 * height and inflate their containers (e.g. 48px category icons became
 * ~77px tall). Normalize them wherever the theme renders icons.
 */
.eb-course-cat-wrapper .icon i[class^="ri-"],
.eb-course-cat-wrapper .icon i[class*=" ri-"] {
	line-height: 1;
	display: inline-block;
}

/* Elementor-templated result items lay themselves out. */
.ebc-live-results .ebc-result-elementor {
	display: block;
	padding: 6px 10px;
}

/* Vertically center the inline meta row (category + price). */
.ebc-live-results .ebc-result-elementor .elementor-widget-wrap {
	align-items: center;
}

/* "View all results" footer link when more matches exist than shown. */
.ebc-live-results .ebc-view-all {
	text-align: center;
	padding: 12px;
}

.ebc-live-results .ebc-view-all a {
	color: var(--edublink-color-primary, #002d74);
	font-weight: 500;
	text-decoration: none;
}

.ebc-live-results .ebc-view-all a:hover {
	text-decoration: underline;
}

/*
 * 2. Elementor-templated search popup: fill the screen from the moment it
 *    opens (the theme's .content-wrap only guarantees min-height 560px, so
 *    the panel used to grow only once results arrived) and allow scrolling
 *    when results exceed the viewport.
 */
.eb-elementor-search-popup.open {
	overflow-y: auto;
}

.eb-elementor-search-popup .content-wrap {
	min-height: 100vh;
	align-items: flex-start;
	padding-top: 14vh;
	padding-bottom: 60px;
}

/*
 * Inside the popup the results panel joins the normal page flow (the theme
 * absolutely-positions it as a dropdown, which made long lists overflow
 * the screen). In flow, the popup itself grows and scrolls naturally.
 */
.eb-elementor-search-popup .edublink-course-ajax-search-result-area {
	position: static;
	width: 100%;
}

.eb-elementor-search-popup .edublink-course-ajax-search-result-inner ul {
	margin: 0;
}

/*
 * Results mode ("ebc-has-results" set by frontend.js while suggestions
 * are showing): every template widget except the course search collapses
 * upward in one motion (shrink + fade + slide), the container's top
 * spacing eases down so the search box glides to the top, and the box
 * pins there while the results scroll beneath it.
 */
/* Widgets rendered inside result items are excluded — only the template's
   own intro widgets collapse. */
.eb-elementor-search-popup .inner .elementor-widget:not([class*="-course-search"]):not(.edublink-course-ajax-search-result-area .elementor-widget) {
	overflow: hidden;
	max-height: 320px;
	opacity: 1;
	transform: translateY(0);
	/* 0.7s ease matches the theme popup's own open/close animation. */
	transition: max-height 0.7s ease, opacity 0.5s ease, transform 0.7s ease, margin 0.7s ease;
}

.eb-elementor-search-popup.ebc-has-results .inner .elementor-widget:not([class*="-course-search"]):not(.edublink-course-ajax-search-result-area .elementor-widget) {
	max-height: 0;
	opacity: 0;
	transform: translateY(-24px);
	margin: 0;
}

.eb-elementor-search-popup .edublink-course-search form.edublink-course-search-form {
	/* The exact top value is measured and set by frontend.js once the
	   headings finish collapsing, so the box pins precisely where it
	   landed. 40px is the pre-measurement fallback. */
	position: sticky;
	top: 40px;
	z-index: 20;
	background-color: var(--edublink-color-white, #ffffff);
}

/*
 * Full-width mask above the pinned box: while results are showing, this
 * band covers the gap between the viewport top and the search box, so
 * scrolled results vanish beneath it instead of reappearing above the box.
 * Its height comes from the same measurement JS used to pin the box.
 */
.eb-elementor-search-popup.ebc-has-results .edublink-course-search form.edublink-course-search-form::before {
	content: "";
	position: absolute;
	z-index: -1;
	left: 50%;
	transform: translateX(-50%);
	width: 100vw;
	top: calc(-1 * var(--ebc-pin-top, 40px));
	bottom: -14px;
	background-color: var(--edublink-color-white, #ffffff);
}

.eb-elementor-search-popup .content-wrap {
	transition: padding 0.7s ease;
}

.eb-elementor-search-popup.ebc-has-results .content-wrap {
	padding-top: 40px;
}

/* Results rise in gently as they arrive. */
.eb-elementor-search-popup .edublink-course-ajax-search-result-inner > ul {
	animation: ebc-fade-up 0.35s ease both;
}

@keyframes ebc-fade-up {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.eb-elementor-search-popup .inner .elementor-widget:not([class*="-course-search"]),
	.eb-elementor-search-popup .content-wrap {
		transition: none;
	}
	.eb-elementor-search-popup .edublink-course-ajax-search-result-inner > ul {
		animation: none;
	}
}

/*
 * Inside the fullscreen popup, results display as a 2-column grid
 * (single column below tablet width and in header-field dropdowns).
 */
.eb-elementor-search-popup .ebc-live-results {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px 28px;
}

.eb-elementor-search-popup .ebc-live-results .ebc-view-all,
.eb-elementor-search-popup .ebc-live-results .ebc-no-result {
	grid-column: 1 / -1;
}

@media (max-width: 767px) {
	.eb-elementor-search-popup .ebc-live-results {
		grid-template-columns: 1fr;
		gap: 0;
	}

	/* On small screens the intro stack pushed the box toward mid-page;
	   tighten the popup's top spacing so the search box sits high. */
	.eb-elementor-search-popup .content-wrap {
		padding-top: 48px;
	}

	.eb-elementor-search-popup.ebc-has-results .content-wrap {
		padding-top: 20px;
	}

	/* Compress vertical spacing inside each result item. The !important
	   is deliberate: it must win over per-element responsive settings
	   saved in the item template, and it is scoped to popup results on
	   small screens only. */
	.eb-elementor-search-popup .ebc-live-results .ebc-result-elementor {
		padding: 4px 6px;
	}

	.eb-elementor-search-popup .ebc-live-results .ebc-result-elementor .elementor-section {
		padding-top: 0 !important;
		padding-bottom: 0 !important;
	}

	.eb-elementor-search-popup .ebc-live-results .ebc-result-elementor .elementor-element-populated {
		padding-top: 0 !important;
		padding-bottom: 0 !important;
	}

	.eb-elementor-search-popup .ebc-live-results .ebc-result-elementor .elementor-widget {
		margin-bottom: 0 !important;
	}
}

/* Polish for Elementor-templated result items. */
.ebc-live-results .ebc-result-elementor {
	border-bottom: 1px solid var(--edublink-color-border, #e5e5e5);
	border-radius: 8px;
	transition: background-color 0.2s ease;
}

.ebc-live-results .ebc-result-elementor:hover {
	background-color: var(--edublink-color-shade, #f5f5f5);
}

.ebc-live-results .ebc-result-elementor .elementor-widget {
	margin-bottom: 0;
}

.ebc-live-results .ebc-result-elementor .elementor-heading-title a {
	text-decoration: none;
}

/* --------------------------------------------------------------
 * Course card (style 1) fixes
 * -------------------------------------------------------------- */

/* Level badge on card thumbnails: IIT navy instead of the theme's yellow. */
.edublink-single-course .thumbnail .duration,
.ebc-list-card-badge {
	background-color: var(--edublink-color-primary, #002D74);
	color: #fff;
}

/* Tutor prints the duration with .tutor-color-secondary, which stays dark
 * on the card's hover overlay — force it white there like the rest. */
.edublink-single-course .course-hover-content .course-meta .tutor-meta-level,
.edublink-single-course .course-hover-content .course-meta .tutor-meta-value {
	color: #ffffff !important;
}

/* Course-widget sliders miss the theme's -15px gutter compensation (its own
 * carousels get it via .eb-swiper-carousel-activator), so the first card sat
 * 15px right of the boxed content line - align them with the headings/logo. */
.eb-slider-wrapper > .swiper-container:not(.eb-swiper-carousel-activator) {
	margin-left: -15px;
	margin-right: -15px;
}

/* Equal card heights: let slider/grid items stretch and pin the meta row
 * to the bottom so short titles don't produce shorter cards. */
.eb-slider-wrapper .swiper-slide.edublink-slider-item {
	height: auto;
	display: flex;
}

.eb-slider-wrapper .swiper-slide.edublink-slider-item > .edublink-single-course.course-style-1 {
	width: 100%;
}

.edublink-single-course.course-style-1 {
	height: 100%;
	display: flex;
	flex-direction: column;
}

.edublink-single-course.course-style-1 > .inner {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
}

.edublink-single-course.course-style-1 > .inner .content {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
}

.edublink-single-course.course-style-1 > .inner .content .course-meta {
	margin-top: auto;
}

/* Flex children stretch by default — keep the category pill shrink-to-fit
 * like it was before the equal-height change. */
.edublink-single-course.course-style-1 > .inner .content > .course-level {
	align-self: flex-start;
}

/* --------------------------------------------------------------
 * Course bundle cards ([ebc_course_bundles])
 * -------------------------------------------------------------- */
.ebc-bundle-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 30px;
}

.ebc-bundle-grid.ebc-bundle-cols-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ebc-bundle-grid.ebc-bundle-cols-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1199px) {
	.ebc-bundle-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 991px) {
	.ebc-bundle-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 575px) {
	.ebc-bundle-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Mobile: same swipeable, full-width, auto-scrolling treatment as the
 * homepage course rows above, instead of stacking into a vertical list. */
@media only screen and (max-width: 767px) {
	.ebc-bundle-grid {
		display: flex !important;
		flex-wrap: nowrap !important;
		overflow-x: auto !important;
		gap: 14px;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		-ms-overflow-style: none;
	}

	.ebc-bundle-grid::-webkit-scrollbar {
		display: none;
	}

	.ebc-bundle-grid > .ebc-bundle-card {
		flex: 0 0 100% !important;
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 !important;
		scroll-snap-align: start;
	}
}

.ebc-bundle-card .content .title {
	margin-bottom: 10px;
}

/* Three meta items wrap in the card width - keep the rows tight instead of
 * the theme's tall inline-block line boxes and wide 29px margins. High
 * specificity + !important: other stylesheets load after this one. */
.edublink-single-course.ebc-bundle-card .content .course-meta {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	gap: 5px 26px !important;
}

.edublink-single-course.ebc-bundle-card .content .course-meta li {
	margin: 0 !important;
	line-height: 1.4;
}

.edublink-single-course.ebc-bundle-card .content .course-meta li:after {
	right: -14px;
}

/* --------------------------------------------------------------
 * Course package single page
 * -------------------------------------------------------------- */

/* The hero replaces the theme's title banner (title would repeat). */
body.post-type-archive-course-bundle .edublink-page-title-area,
body.single-course-bundle .edublink-page-title-area,
body.single-courses .edublink-page-title-area {
	display: none;
}

/* Tutor part templates print their own headings inside our sections. */
.ebc-course-curriculum .tutor-course-details-widget-title,
.ebc-course-reviews .tutor-course-details-widget-title {
	font-size: 24px;
}

.ebc-package-main .tutor-course-details-widget {
	margin-bottom: 40px;
}

/* Align with the site's boxed layout: content is exactly 1280px wide on
 * large screens (no extra inset), and below that the 5% side gutters take
 * over — the gutter is whichever is larger, the centering space or 5%. */
.ebc-package-single .tutor-container {
	max-width: none;
	padding-left: max(calc((100% - 1280px) / 2), 5%);
	padding-right: max(calc((100% - 1280px) / 2), 5%);
}

.ebc-package-hero {
	position: relative;
	overflow: hidden;
	background: linear-gradient(135deg, var(--edublink-color-primary, #002D74) 0%, #071022 100%);
	color: #fff;
	padding: 56px max(calc((100% - 1280px) / 2), 5%) 150px;
}

/* Right-side decor: soft blue glow + concentric rings... */
.ebc-package-hero::before {
	content: "";
	position: absolute;
	top: -170px;
	right: -120px;
	width: 560px;
	height: 560px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.10);
	background: radial-gradient(closest-side, rgba(2, 138, 242, 0.28), transparent 72%);
	box-shadow: 0 0 0 70px rgba(255, 255, 255, 0.03), 0 0 0 150px rgba(255, 255, 255, 0.02);
	pointer-events: none;
}

/* ...plus a dotted grid lower right. */
.ebc-package-hero::after {
	content: "";
	position: absolute;
	right: 8%;
	bottom: -30px;
	width: 320px;
	height: 230px;
	background-image: radial-gradient(rgba(255, 255, 255, 0.35) 1.5px, transparent 1.6px);
	background-size: 24px 24px;
	opacity: 0.4;
	pointer-events: none;
	-webkit-mask-image: linear-gradient(105deg, transparent 0%, #000 40%);
	mask-image: linear-gradient(105deg, transparent 0%, #000 40%);
}

.ebc-package-hero-inner {
	position: relative;
	z-index: 2;
	max-width: 1280px;
	margin: 0 auto;
}

@media (max-width: 991px) {
	.ebc-package-hero::before {
		width: 380px;
		height: 380px;
		top: -140px;
		right: -160px;
	}

	.ebc-package-hero::after {
		display: none;
	}
}

.ebc-package-hero-content {
	max-width: 700px;
}

.ebc-package-breadcrumb {
	font-size: 14px;
	margin-bottom: 28px;
	color: rgba(255, 255, 255, 0.55);
}

.ebc-package-breadcrumb a {
	color: rgba(255, 255, 255, 0.75);
}

.ebc-package-breadcrumb a:hover {
	color: #fff;
}

.ebc-package-breadcrumb-sep {
	margin: 0 8px;
}

.ebc-package-breadcrumb-current {
	color: rgba(255, 255, 255, 0.55);
}

.ebc-package-eyebrow {
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--edublink-color-secondary, #028AF2);
	margin-bottom: 14px;
}

.ebc-package-title {
	color: #fff;
	font-size: 42px;
	line-height: 1.2;
	margin: 0 0 16px;
}

.ebc-package-excerpt {
	color: rgba(255, 255, 255, 0.78);
	font-size: 17px;
	max-width: 560px;
	margin-bottom: 24px;
}

.ebc-package-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.ebc-package-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(255, 255, 255, 0.10);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 30px;
	padding: 8px 18px;
	font-size: 14px;
	color: #fff;
	white-space: nowrap;
}

.ebc-package-chip i {
	color: var(--edublink-color-secondary, #028AF2);
	font-size: 16px;
	line-height: 1;
}

.ebc-package-rating {
	margin-top: 18px;
}

.ebc-package-main {
	padding-top: 56px;
}

/* Breathing room before the footer (matches the theme's section rhythm). */
.ebc-package-body {
	padding-bottom: 100px;
}

@media (max-width: 991px) {
	.ebc-package-body {
		padding-bottom: 60px;
	}
}

/* --------------------------------------------------------------
 * Course listing pages (/courses/ + Insight Workshop)
 * -------------------------------------------------------------- */

/* The hero replaces the theme banner on listing pages too. */
body.ebc-listing-page .edublink-page-title-area {
	display: none;
}

.ebc-listing-hero .ebc-package-hero-content {
	max-width: 760px;
}

.ebc-listing-hero {
	padding-bottom: 70px;
}

/* Hero search bar. */
.ebc-listing-search {
	display: flex;
	align-items: center;
	gap: 10px;
	background: #fff;
	border-radius: 40px;
	padding: 8px 8px 8px 24px;
	margin-top: 28px;
	max-width: 560px;
	box-shadow: 0 18px 40px rgba(7, 16, 34, 0.25);
}

.ebc-listing-search i {
	color: var(--edublink-color-primary, #002D74);
	font-size: 20px;
	line-height: 1;
}

.ebc-listing-search input {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	outline: none;
	background: transparent;
	font-size: 15px;
	color: var(--edublink-color-heading, #181818);
	padding: 10px 0;
}

.ebc-listing-search button {
	flex: 0 0 auto;
	border: 0;
	cursor: pointer;
	background: var(--edublink-color-primary, #002D74);
	color: #fff;
	font-weight: 600;
	font-size: 14px;
	padding: 12px 28px;
	border-radius: 30px;
	transition: background-color 0.25s ease;
}

.ebc-listing-search button:hover {
	background: var(--edublink-color-secondary, #028AF2);
}

/* Filter sidebar: each widget becomes a card. */
.edublink-course-filter-sidebar .filter-widget {
	background: #fff;
	border: 1px solid var(--edublink-color-border, #e5e5e5);
	border-radius: 12px;
	padding: 20px 22px;
	margin-bottom: 16px;
}

.edublink-course-filter-sidebar .filter-widget .widget-title {
	font-size: 15px;
	letter-spacing: 0.5px;
	margin-bottom: 12px;
}

/* The hero search is the visible one - the sidebar's search stays in the
 * form (the query and live filtering depend on its input) but is hidden. */
.edublink-course-filter-sidebar .filter-widget.widget-search {
	display: none;
}

/* Collapsed filter cards hug their title instead of leaving empty space. */
.edublink-course-filter-sidebar .filter-widget.collapsed {
	padding-top: 14px;
	padding-bottom: 14px;
}

.edublink-course-filter-sidebar .filter-widget.collapsed .widget-title {
	margin-bottom: 0;
}

.edublink-course-filter-sidebar .filter-search-widget .input-search {
	width: 100%;
	border: 1px solid var(--edublink-color-border, #e5e5e5);
	border-radius: 12px;
	padding: 12px 18px;
	background: #fff;
}

.edublink-course-filter-sidebar .eb-filter-content label {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 0;
	margin: 0;
	cursor: pointer;
	font-size: 14px;
	color: var(--edublink-color-body, #6f6f6f);
	transition: color 0.2s ease;
}

.edublink-course-filter-sidebar .eb-filter-content label:hover {
	color: var(--edublink-color-primary, #002D74);
}

.edublink-course-filter-sidebar .eb-filter-content input[type="checkbox"],
.edublink-course-filter-sidebar .eb-filter-content input[type="radio"] {
	accent-color: var(--edublink-color-secondary, #028AF2);
	width: 16px;
	height: 16px;
	flex: 0 0 auto;
}

.edublink-course-filter-sidebar .eb-filter-content .filter-cat-name {
	flex: 1 1 auto;
	min-width: 0;
}

.edublink-course-filter-sidebar .eb-filter-content .filter-count {
	display: none;
}

/* Empty state: animated icon + friendly message (listing pages and the
 * header search popup share the treatment). */
.no-course-found.filter-course,
.ebc-live-results .ebc-no-result {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 60px 20px 70px;
	font-size: 22px;
	color: var(--edublink-color-heading, #181818);
}

.no-course-found.filter-course::before,
.ebc-live-results .ebc-no-result::before {
	content: "\f0cf"; /* ri-search-eye-line */
	font-family: 'remixicon' !important;
	font-style: normal;
	font-weight: 400;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 96px;
	height: 96px;
	margin-bottom: 26px;
	font-size: 44px;
	color: var(--edublink-color-secondary, #028AF2);
	background: rgba(2, 138, 242, 0.08);
	border-radius: 50%;
	animation: ebc-empty-float 2.4s ease-in-out infinite;
}

.no-course-found.filter-course::after,
.ebc-live-results .ebc-no-result::after {
	content: "Try different keywords or adjust the filters.";
	display: block;
	margin-top: 10px;
	font-size: 15px;
	font-weight: 400;
	color: var(--edublink-color-body, #6f6f6f);
}

.ebc-live-results .ebc-no-result {
	font-size: 18px;
	padding: 40px 20px 46px;
}

.ebc-live-results .ebc-no-result::before {
	width: 72px;
	height: 72px;
	font-size: 34px;
	margin-bottom: 18px;
}

@keyframes ebc-empty-float {
	0%, 100% { transform: translateY(0) rotate(0deg); }
	35%      { transform: translateY(-10px) rotate(-6deg); }
	70%      { transform: translateY(0) rotate(4deg); }
}

@media (prefers-reduced-motion: reduce) {
	.no-course-found.filter-course::before,
	.ebc-live-results .ebc-no-result::before {
		animation: none;
	}
}

/* Apply/Reset: full-width stacked buttons (the theme's fixed button sizing
 * clipped the labels to "Appl"/"Rese" inside the sidebar card). */
.edublink-course-filter-buttons {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 4px;
}

.edublink-course-filter-buttons .edu-btn,
.edublink-course-filter-buttons a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-width: 0;
	height: 48px;
	padding: 0 20px;
	white-space: nowrap;
	overflow: visible;
	text-align: center;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 600;
	box-sizing: border-box;
}

.edublink-course-filter-buttons a {
	border: 1px solid var(--edublink-color-border, #e5e5e5);
	color: var(--edublink-color-heading, #181818);
	transition: all 0.2s ease;
}

.edublink-course-filter-buttons a:hover {
	border-color: var(--edublink-color-secondary, #028AF2);
	color: var(--edublink-color-secondary, #028AF2);
}

/* Toolbar above the grid. */
.edublink-course-filter-sidebar .edu-top-sorting-area {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 14px 20px;
	background: #fff;
	border: 1px solid var(--edublink-color-border, #e5e5e5);
	border-radius: 12px;
	padding: 12px 14px 12px 22px;
	margin-bottom: 24px;
}

.edublink-course-filter-sidebar .edu-top-sorting-area .course-found {
	font-size: 14px;
	font-weight: 500;
	color: var(--edublink-color-body, #6f6f6f);
	margin: 0;
}

.edublink-course-filter-sidebar .edu-top-sorting-area .course-found {
	letter-spacing: 0;
	line-height: 1.6;
}

.edublink-course-filter-sidebar .edu-top-sorting-area .course-found .course-count {
	color: var(--edublink-color-primary, #002D74);
	font-weight: 700;
	margin: 0 5px;
}

.edublink-course-filter-sidebar .edu-top-sorting-area .course-found .count-from {
	margin-left: 0;
}

.edublink-course-filter-sidebar .edu-top-sorting-right {
	display: flex;
	align-items: center;
	gap: 18px;
}

.edublink-course-filter-sidebar .edu-course-sorting .course-orderby {
	height: 44px;
	min-width: 190px;
	border: 1px solid var(--edublink-color-border, #e5e5e5);
	border-radius: 10px;
	background-color: #fff;
	font-size: 14px;
}

@media only screen and (max-width: 991px) {
	.edublink-course-filter-sidebar .edu-top-sorting-area {
		display: flex;
	}

	.edublink-course-filter-sidebar .edu-top-sorting-area .layout-switcher,
	.edublink-course-filter-sidebar .edu-top-sorting-area .edu-course-sorting {
		margin-top: 0;
	}
}

/* List view card (course-block-list.php): horizontal row - cover left,
 * details middle, actions bottom-right. */
.ebc-list-card {
	display: flex;
	gap: 26px;
	background: #fff;
	border: 1px solid var(--edublink-color-border, #e5e5e5);
	border-radius: 14px;
	padding: 16px;
	margin-bottom: 20px;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.ebc-list-card:hover {
	box-shadow: 0 16px 40px rgba(0, 45, 116, 0.12);
	transform: translateY(-2px);
}

.ebc-list-card-thumb {
	position: relative;
	flex: 0 0 300px;
	max-width: 300px;
	border-radius: 10px;
	overflow: hidden;
	align-self: stretch;
	min-height: 190px;
}

.ebc-list-card-thumb img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ebc-list-card-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	background: var(--edublink-color-primary, #002D74);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	border-radius: 20px;
	padding: 4px 14px;
}

.ebc-list-card-body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	padding: 6px 6px 6px 0;
}

.ebc-list-card-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}

.ebc-list-card .course-level {
	align-self: auto;
}

.ebc-list-card .title {
	font-size: 20px;
	margin: 0 0 8px;
}

.ebc-list-card-excerpt {
	font-size: 14px;
	color: var(--edublink-color-body, #6f6f6f);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-bottom: 12px;
}

.ebc-list-card-excerpt p {
	margin: 0;
}

.ebc-list-card-footer {
	margin-top: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

/* The theme's meta-row reset targets ".content .course-meta", which this
 * card doesn't use - reset and lay it out here. */
.ebc-list-card .course-meta {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 20px;
}

.ebc-list-card .course-meta li {
	display: inline-flex;
	align-items: center;
	margin: 0;
	font-size: 13px;
	color: var(--edublink-color-heading, #181818);
}

.ebc-list-card .course-meta li i {
	margin-right: 8px;
	font-size: 14px;
	color: #a7a7a7;
	line-height: 1;
}

.ebc-list-card-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ebc-list-card-actions .wishlist-top-right {
	position: static;
	display: inline-flex;
}

@media only screen and (max-width: 767px) {
	.ebc-list-card {
		flex-direction: column;
		gap: 16px;
	}

	.ebc-list-card-thumb {
		flex-basis: auto;
		max-width: 100%;
		min-height: 0;
		aspect-ratio: 3 / 2;
	}

	.ebc-list-card-thumb img {
		position: static;
	}

	.ebc-list-card-body {
		padding: 0 4px 6px;
	}
}

/* --------------------------------------------------------------
 * Homepage hero
 * -------------------------------------------------------------- */
.ebc-home-hero {
	position: relative;
	overflow: hidden;
}

.ebc-home-hero::before {
	content: "";
	position: absolute;
	top: -170px;
	right: -120px;
	width: 560px;
	height: 560px;
	border-radius: 50%;
	border: 2px solid rgba(0, 45, 116, 0.08);
	background: radial-gradient(closest-side, rgba(2, 138, 242, 0.10), transparent 72%);
	box-shadow: 0 0 0 70px rgba(0, 45, 116, 0.03), 0 0 0 150px rgba(0, 45, 116, 0.02);
	pointer-events: none;
}

.ebc-home-hero::after {
	content: "";
	position: absolute;
	left: 4%;
	bottom: -30px;
	width: 300px;
	height: 220px;
	background-image: radial-gradient(rgba(0, 45, 116, 0.30) 1.5px, transparent 1.6px);
	background-size: 24px 24px;
	opacity: 0.35;
	pointer-events: none;
	-webkit-mask-image: linear-gradient(75deg, #000 55%, transparent 100%);
	mask-image: linear-gradient(75deg, #000 55%, transparent 100%);
}

/* Chips on the light hero: white pills instead of translucent-on-navy. */
.ebc-home-hero .ebc-package-chip {
	background: #fff;
	border-color: var(--edublink-color-border, #e5e5e5);
	color: var(--edublink-color-heading, #181818);
	box-shadow: 0 6px 16px rgba(0, 45, 116, 0.06);
}

.ebc-home-hero .ebc-hero-covers .ebc-hero-cover {
	box-shadow: 0 24px 50px rgba(7, 16, 34, 0.22);
}

.ebc-home-hero > .e-con-inner {
	position: relative;
	z-index: 2;
}

/* --------------------------------------------------------------
 * Hero v2: centred content over the connected-globe photo backdrop.
 * The image brings its own sparkle, so the drawn decor goes away.
 * -------------------------------------------------------------- */
.ebc-home-hero.ebc-hero-v2::before,
.ebc-home-hero.ebc-hero-v2::after {
	display: none;
}

.ebc-hero-v2 .ebc-hero-content {
	max-width: 860px;
	margin-inline: auto;
	text-align: center;
}

.ebc-hero-v2 .ebc-hero-content .elementor-widget-text-editor {
	max-width: 660px;
	margin-inline: auto;
}

.ebc-hero-v2 .ebc-hero-content .edublink-button-widget-wrapper {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
}

.ebc-hero-v2 .ebc-hero-chips {
	justify-content: center;
}

.ebc-hero-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 20px;
	border-radius: 999px;
	background: rgba(2, 138, 242, 0.10);
	border: 1px solid rgba(2, 138, 242, 0.22);
	color: var(--edublink-color-secondary, #028AF2);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	line-height: 1;
}

.ebc-hero-eyebrow i {
	font-size: 15px;
	line-height: 1;
}

@media (max-width: 575px) {
	.ebc-hero-eyebrow {
		font-size: 11px;
		padding: 8px 16px;
	}
}

/* Hero stats chips (shortcode reuses the chip styles on navy). */
.ebc-hero-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

/* Fanned stack of real course covers. */
.ebc-hero-covers {
	position: relative;
	width: 100%;
	max-width: 520px;
	aspect-ratio: 5 / 4;
}

@media (min-width: 1400px) {
	.ebc-hero-covers {
		max-width: 560px;
	}
}

.ebc-hero-cover {
	position: absolute;
	width: 62%;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 30px 60px rgba(0, 0, 0, 0.38);
	transition: transform 0.35s ease;
}

.ebc-hero-cover img {
	width: 100%;
	display: block;
}

.ebc-hero-cover-1 {
	left: 0;
	top: 14%;
	transform: rotate(-9deg);
	z-index: 1;
}

.ebc-hero-cover-2 {
	left: 19%;
	top: 26%;
	transform: rotate(1deg);
	z-index: 3;
}

.ebc-hero-cover-3 {
	left: 38%;
	top: 8%;
	transform: rotate(8deg);
	z-index: 2;
}

.ebc-hero-cover:hover {
	transform: rotate(0deg) translateY(-8px);
	z-index: 4;
}

@keyframes ebc-hero-drift {
	0%, 100% { translate: 0 0; }
	50% { translate: 0 -10px; }
}

/* `translate` composes with the rotate in `transform`, and hover still wins. */
.ebc-hero-cover-2 {
	animation: ebc-hero-drift 6s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
	.ebc-hero-cover-2 {
		animation: none;
	}
}

@media (max-width: 1024px) {
	.ebc-home-hero::after {
		display: none;
	}

	/* Columns stack on tablet: centre the fan and trim its dead space. */
	.ebc-hero-covers {
		margin: 0 auto;
		max-width: 440px;
	}
}

/* "Start Learning" grid (masonry disabled): equal-height cards. The theme
 * row is already flex, so each card just fills its stretched cell. */
.elementor-element-ff72347 .edublink-single-course,
.elementor-element-ff72347 .edublink-single-course .inner {
	height: 100%;
}

/* Insight Workshop grid keeps masonry (its filter pills depend on it), so
 * equalise the cards instead: titles always occupy exactly two lines,
 * which is the only thing that varies between seminar cards. */
.elementor-element-ebchcba .edublink-single-course .content .title a {
	line-height: 1.4em;
	min-height: 2.8em;
}

/* Insight Workshop section: no "All" view — the series pills are the only
 * filters (frontend.js activates the first one on load). */
.elementor-element-ebchcba .edublink-filter-course .filter-item[data-filter="*"] {
	display: none;
}

/* Category pill on course cards: never wrap — clip long series names
 * (e.g. "Manufacturing/Production Series") with an ellipsis. Applies to
 * both the front face and the hover face of every card style. */
.edublink-single-course .content .course-level {
	max-width: 100%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	vertical-align: top;
}

/* Course/package cards: quiet deep-navy outline, firmer on hover.
 * Sits on the card wrapper so both faces share it. */
.edublink-single-course {
	border: 1px solid rgba(0, 45, 116, 0.16);
}

.edublink-single-course:hover {
	border-color: rgba(0, 45, 116, 0.5);
}

/* Hover face price states: distinct colors so Free, paid and
 * Application Required read differently on the navy background. */
.edublink-single-course .course-hover-content .content .course-price .ebc-price-free {
	color: #3EE6A4;
}

.edublink-single-course .course-hover-content .content .course-price .ebc-price-app {
	color: #FFC24B;
}

.edublink-single-course .course-hover-content .content .course-price .ebc-price-paid,
.edublink-single-course .course-hover-content .content .course-price .ebc-price-paid .price {
	color: #7CC4FF;
}

/* The theme's hover face is an inline-table, which may stretch wider than
 * the card when its text prefers longer lines — the overflow then gets
 * cropped at the card edge mid-word. Pin it to the card's width. */
.edublink-single-course .course-hover-content {
	width: 100%;
	table-layout: fixed;
}

/* Hover face: stop the pill short of the wishlist heart in the top-right
 * corner, so long series names ellipsize instead of running under it. */
.edublink-single-course .course-hover-content .content .course-level {
	max-width: calc(100% - 52px);
}

/* --------------------------------------------------------------
 * Explore by Categories: compact cards, 4-up grid.
 * Overrides the theme's 3-up, 80px-tall, green-tinted boxes.
 * -------------------------------------------------------------- */
.eb-course-cat-grid.edublink-row {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px 12px;
	margin: 0;
}

/* Flex cell so every card stretches to its row's height. */
.eb-course-cat-grid .edublink-course-single-cat {
	width: 100%;
	max-width: 100%;
	padding: 0;
	margin: 0;
	display: flex;
}

.eb-course-cat-grid .edublink-category-1 {
	position: relative;
	flex: 1;
	padding: 10px 14px;
	min-height: 0;
	gap: 11px;
	background: #fff;
	border: 1px solid var(--edublink-color-border, #e5e5e5);
	border-radius: 12px;
}

.eb-course-cat-grid .edublink-category-1 .icon {
	min-width: 38px;
	width: 38px;
	height: 38px;
	align-items: center;
	justify-content: center;
	font-size: 19px;
	border-radius: 10px;
	background: rgba(2, 138, 242, 0.10);
	color: var(--edublink-color-secondary, #028AF2);
}

.eb-course-cat-grid .edublink-category-1 .title {
	line-height: 1.3;
}

.eb-course-cat-grid .edublink-category-1 .title a {
	font-size: 14px;
}

/* Whole card clickable, not just the title text. */
.eb-course-cat-grid .edublink-category-1 .title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.eb-course-cat-grid .edublink-category-1:hover {
	border-color: var(--edublink-color-primary, #002D74);
	box-shadow: 0 12px 26px rgba(7, 16, 34, 0.10);
}

.eb-course-cat-grid .edublink-category-1:hover .icon {
	background: rgba(255, 255, 255, 0.16);
}

@media (max-width: 1199px) {
	.eb-course-cat-grid.edublink-row {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 767px) {
	.eb-course-cat-grid.edublink-row {
		grid-template-columns: repeat(2, 1fr);
		gap: 8px 10px;
	}

	.eb-course-cat-grid .edublink-category-1 {
		padding: 8px 11px;
		gap: 9px;
	}

	.eb-course-cat-grid .edublink-category-1 .icon {
		min-width: 34px;
		width: 34px;
		height: 34px;
		font-size: 17px;
		border-radius: 8px;
	}

	.eb-course-cat-grid .edublink-category-1 .title a {
		font-size: 13px;
	}
}

@media (max-width: 419px) {
	.eb-course-cat-grid.edublink-row {
		grid-template-columns: 1fr;
	}
}

/* --------------------------------------------------------------
 * Apply-to-enroll states (courses/packages requiring admin approval).
 * -------------------------------------------------------------- */
.ebc-apply-box {
	text-align: center;
}

.ebc-apply-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 13px 20px;
	border-radius: 6px;
	background: var(--edublink-color-primary, #002D74);
	color: #fff;
	font-weight: 600;
	transition: background 0.25s ease;
}

.ebc-apply-btn:hover {
	background: var(--edublink-color-secondary, #028AF2);
	color: #fff;
}

.ebc-apply-note {
	margin: 10px 0 0;
	font-size: 13px;
	line-height: 1.55;
	color: var(--edublink-color-body, #6f6f6f);
}

.ebc-apply-note-under {
	text-align: center;
}

.ebc-apply-pending {
	background: rgba(248, 148, 31, 0.08);
	border: 1px solid rgba(248, 148, 31, 0.35);
	border-radius: 10px;
	padding: 16px;
}

.ebc-apply-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	color: #B36A08;
}

.ebc-apply-pending .ebc-apply-note {
	margin-top: 6px;
}

.ebc-apply-locked {
	background: rgba(0, 45, 116, 0.05);
	border: 1px solid rgba(0, 45, 116, 0.18);
	border-radius: 10px;
	padding: 16px;
}

.ebc-apply-locked .ebc-apply-badge {
	color: var(--edublink-color-primary, #002D74);
}

.ebc-apply-locked .ebc-apply-note {
	margin-top: 6px;
}

/* --------------------------------------------------------------
 * Contact page: brand hero, overlapping info tiles + form card, map.
 * -------------------------------------------------------------- */
body.page-id-17213 .edublink-page-title-area {
	display: none;
}

.ebc-package-hero.ebc-contact-hero {
	padding-bottom: 130px;
}

.ebc-contact-body {
	margin-top: -70px;
	position: relative;
	z-index: 2;
}

.ebc-contact-heading {
	font-size: 22px;
	margin: 0 0 16px;
}

.ebc-contact-cards {
	display: grid;
	gap: 14px;
}

.ebc-contact-card {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	background: #fff;
	border: 1px solid var(--edublink-color-border, #e5e5e5);
	border-radius: 14px;
	padding: 18px;
	box-shadow: 0 10px 26px rgba(7, 16, 34, 0.05);
}

.ebc-contact-ic {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: rgba(2, 138, 242, 0.10);
	color: var(--edublink-color-secondary, #028AF2);
	font-size: 21px;
}

.ebc-contact-card h4 {
	font-size: 16px;
	margin: 2px 0 6px;
}

.ebc-contact-card p {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
}

.ebc-contact-card p + p {
	margin-top: 4px;
}

.ebc-contact-note {
	color: var(--edublink-color-body, #6f6f6f);
	font-size: 13px;
}

.ebc-contact-social {
	display: flex;
	gap: 8px;
	margin-top: 4px;
}

.ebc-contact-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(2, 138, 242, 0.10);
	color: var(--edublink-color-secondary, #028AF2);
	font-size: 16px;
	transition: all 0.25s ease;
}

.ebc-contact-social a:hover {
	background: var(--edublink-color-primary, #002D74);
	color: #fff;
}

/* Form card: the column wrapper carries the class. */
.ebc-contact-form-card > .elementor-widget-wrap {
	background: #fff;
	border: 1px solid var(--edublink-color-border, #e5e5e5);
	border-radius: 16px;
	padding: 30px 28px !important;
	box-shadow: 0 20px 50px rgba(7, 16, 34, 0.07);
}

.ebc-contact-form-head p {
	margin: 0 0 10px;
	font-size: 14px;
	color: var(--edublink-color-body, #6f6f6f);
}

.ebc-contact-form-card input[type="submit"] {
	background: var(--edublink-color-primary, #002D74);
}

.ebc-contact-form-card input[type="submit"]:hover {
	background: var(--edublink-color-secondary, #028AF2);
}

.ebc-contact-map iframe {
	width: 100%;
	border-radius: 16px;
	border: 1px solid var(--edublink-color-border, #e5e5e5);
	display: block;
}

@media (max-width: 991px) {
	.ebc-package-hero.ebc-contact-hero {
		padding-bottom: 110px;
	}

	.ebc-contact-body {
		margin-top: -60px;
	}

	.ebc-contact-body .ebc-contact-form-card {
		margin-top: 24px;
	}
}

/* --------------------------------------------------------------
 * Auth pages (login / register / forgot / reset)
 * -------------------------------------------------------------- */
body.ebc-auth-page .edublink-page-title-area {
	display: none;
}

.ebc-auth {
	background: #F0F4F5;
	padding: 80px max(calc((100% - 1280px) / 2), 5%) 100px;
}

.ebc-auth-card {
	max-width: 480px;
	margin: 0 auto;
	background: #fff;
	border: 1px solid var(--edublink-color-border, #e5e5e5);
	border-radius: 16px;
	padding: 40px 40px 36px;
	text-align: center;
	box-shadow: 0 20px 50px rgba(7, 16, 34, 0.07);
}

.ebc-auth-card--wide {
	max-width: 620px;
}

.ebc-auth-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: rgba(2, 138, 242, 0.10);
	color: var(--edublink-color-secondary, #028AF2);
	font-size: 32px;
	margin-bottom: 16px;
}

.ebc-auth-title {
	font-size: 26px;
	margin-bottom: 6px;
}

.ebc-auth-sub {
	font-size: 14px;
	color: var(--edublink-color-body, #6f6f6f);
	margin-bottom: 26px;
}

.ebc-auth-form {
	text-align: left;
}

.ebc-auth-form label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: var(--edublink-color-heading, #181818);
	margin-bottom: 14px;
}

.ebc-auth-form input[type="text"],
.ebc-auth-form input[type="email"],
.ebc-auth-form input[type="password"],
.ebc-auth-form .input,
.ebc-auth-form .tutor-form-control {
	width: 100%;
	height: 48px;
	border: 1px solid var(--edublink-color-border, #e5e5e5);
	border-radius: 10px;
	padding: 0 16px;
	margin-top: 7px;
	font-size: 15px;
	font-weight: 400;
	background: #fff;
	transition: border-color 0.2s ease;
}

.ebc-auth-form input:focus {
	outline: none;
	border-color: var(--edublink-color-secondary, #028AF2);
}

.ebc-auth-form .form-row {
	margin-bottom: 6px;
}

.ebc-auth-form input[type="submit"],
.ebc-auth-form button[type="submit"],
.ebc-auth-form .button-primary {
	width: 100%;
	height: 50px;
	margin-top: 10px;
	border: 0;
	border-radius: 10px;
	background: var(--edublink-color-primary, #002D74);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.25s ease;
}

.ebc-auth-form input[type="submit"]:hover,
.ebc-auth-form button[type="submit"]:hover,
.ebc-auth-form .button-primary:hover {
	background: var(--edublink-color-secondary, #028AF2);
}

.ebc-auth-form a {
	color: var(--edublink-color-secondary, #028AF2);
	font-weight: 500;
}

.ebc-auth-form .message,
.ebc-auth-form .event_auth_forgot_password_message {
	font-size: 14px;
	color: var(--edublink-color-body, #6f6f6f);
	margin-bottom: 14px;
}

@media (max-width: 575px) {
	.ebc-auth {
		padding-top: 50px;
		padding-bottom: 70px;
	}

	.ebc-auth-card {
		padding: 30px 22px 28px;
	}
}

/* --------------------------------------------------------------
 * 404 page
 * -------------------------------------------------------------- */
body.error404 .edublink-page-title-area {
	display: none;
}

.ebc-404 {
	background: #F0F4F5;
	padding: 110px max(calc((100% - 1280px) / 2), 5%) 120px;
	text-align: center;
}

.ebc-404-inner {
	max-width: 640px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.ebc-404-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 96px;
	height: 96px;
	border-radius: 50%;
	background: rgba(2, 138, 242, 0.10);
	color: var(--edublink-color-secondary, #028AF2);
	font-size: 44px;
	margin-bottom: 20px;
	animation: ebc-empty-float 2.4s ease-in-out infinite;
}

.ebc-404-code {
	font-size: 120px;
	font-weight: 800;
	line-height: 1;
	color: var(--edublink-color-primary, #002D74);
	letter-spacing: 4px;
	margin-bottom: 8px;
}

.ebc-404-code span {
	color: var(--edublink-color-secondary, #028AF2);
}

.ebc-404-title {
	font-size: 30px;
	margin-bottom: 12px;
}

.ebc-404-text {
	font-size: 16px;
	color: var(--edublink-color-body, #6f6f6f);
	margin-bottom: 28px;
}

.ebc-404-search {
	width: 100%;
	margin: 0 0 28px;
	box-shadow: 0 14px 34px rgba(0, 45, 116, 0.10);
}

.ebc-404-actions {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 14px 26px;
}

.ebc-404-actions .edu-btn i {
	margin-right: 8px;
}

.ebc-404-secondary {
	font-size: 15px;
	font-weight: 600;
	color: var(--edublink-color-primary, #002D74);
}

.ebc-404-secondary i {
	margin-left: 8px;
	transition: margin 0.2s ease;
}

.ebc-404-secondary:hover {
	color: var(--edublink-color-secondary, #028AF2);
}

.ebc-404-secondary:hover i {
	margin-left: 12px;
}

@media (max-width: 767px) {
	.ebc-404 {
		padding-top: 70px;
		padding-bottom: 80px;
	}

	.ebc-404-code {
		font-size: 84px;
	}

	.ebc-404-title {
		font-size: 24px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ebc-404-icon {
		animation: none;
	}
}

/* --------------------------------------------------------------
 * Category/series filter buttons (homepage Insight Workshop section)
 * -------------------------------------------------------------- */
.edublink-filter-course {
	gap: 10px;
}

/* Extra ancestor in the selectors: the core plugin's stylesheet loads after
 * this one and resets .filter-item to transparent/borderless - higher
 * specificity keeps the pill styling in charge regardless of load order. */
.edublink-course-filter-wrapper .edublink-filter-course .filter-item {
	background: #fff;
	border: 1px solid var(--edublink-color-border, #e5e5e5);
	border-radius: 30px;
	padding: 11px 22px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	color: var(--edublink-color-body, #6f6f6f);
	margin: 0 !important;
	transition: all 0.25s ease;
}

/* The theme's underline indicator - not needed on pills. */
.edublink-course-filter-wrapper .edublink-filter-course .filter-item::after {
	display: none !important;
}

.edublink-course-filter-wrapper .edublink-filter-course .filter-item:hover {
	border-color: var(--edublink-color-secondary, #028AF2);
	color: var(--edublink-color-secondary, #028AF2);
}

.edublink-course-filter-wrapper .edublink-filter-course .filter-item.current {
	background: var(--edublink-color-primary, #002D74);
	border-color: var(--edublink-color-primary, #002D74);
	color: #fff;
	box-shadow: 0 8px 18px rgba(0, 45, 116, 0.22);
}

/* Mobile: one swipeable row instead of a tall stack of wrapped pills. */
@media only screen and (max-width: 767px) {
	.edublink-filter-course {
		flex-wrap: nowrap;
		justify-content: flex-start;
		overflow-x: auto;
		padding: 4px 2px 12px;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		-ms-overflow-style: none;
	}

	.edublink-filter-course::-webkit-scrollbar {
		display: none;
	}

	.edublink-filter-course .filter-item {
		flex: 0 0 auto;
		white-space: nowrap;
		padding: 10px 18px;
	}
}

/* --------------------------------------------------------------
 * Course category archive
 * -------------------------------------------------------------- */
body.tax-course-category .edublink-page-title-area {
	display: none;
}

.ebc-archive-body {
	padding: 56px max(calc((100% - 1280px) / 2), 5%) 100px;
}

.ebc-archive-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px 30px;
}

/* Keep 4-up on common desktops (1280/1366); tighten the gap instead. */
@media (max-width: 1399px) {
	.ebc-archive-grid {
		gap: 16px 20px;
	}
}

@media (max-width: 1199px) {
	.ebc-archive-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.ebc-archive-grid .ebc-archive-grid-item > .edublink-single-course,
.ebc-archive-grid .ebc-archive-grid-item {
	height: 100%;
}

@media (max-width: 991px) {
	.ebc-archive-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ebc-archive-body {
		padding-top: 40px;
		padding-bottom: 60px;
	}
}

@media (max-width: 575px) {
	.ebc-archive-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Pagination bar: "Page 1 of 6" left, page numbers + chevrons right.
 * Shared by the archive (.ebc-pagination) and the listing pages' widget
 * (.eb-custom-pagination, label injected by frontend.js). */
.ebc-pagination,
.edublink-course-filter-sidebar .eb-custom-pagination {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px 20px;
	flex-wrap: wrap;
	background: #fff;
	border: 1px solid var(--edublink-color-border, #e5e5e5);
	border-radius: 12px;
	padding: 8px 16px;
	margin-top: 32px;
}

/* The theme paints the hover/active circle with a ::before gradient - the
 * anchor's own background is transparent, so kill the pseudo instead. */
.ebc-pagination .page-numbers::before,
.edublink-course-filter-sidebar .eb-custom-pagination .page-numbers::before {
	display: none !important;
}

.ebc-page-label {
	font-size: 13px;
	color: var(--edublink-color-body, #6f6f6f);
}

.ebc-page-label b {
	color: var(--edublink-color-heading, #181818);
	font-weight: 700;
	margin: 0 2px;
}

.ebc-pagination .page-number,
.edublink-course-filter-sidebar .eb-custom-pagination .page-number {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
}

.ebc-pagination .page-numbers,
.edublink-course-filter-sidebar .eb-custom-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	width: auto !important;
	height: 28px !important;
	line-height: 1 !important;
	padding: 0 4px;
	border: 0 !important;
	background: transparent !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	font-size: 13px;
	font-weight: 600;
	color: var(--edublink-color-heading, #181818);
	border-bottom: 2px solid transparent !important;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.ebc-pagination .page-numbers:hover,
.edublink-course-filter-sidebar .eb-custom-pagination .page-numbers:hover {
	color: var(--edublink-color-secondary, #028AF2);
}

.ebc-pagination .page-numbers.current,
.edublink-course-filter-sidebar .eb-custom-pagination .page-numbers.current {
	color: var(--edublink-color-secondary, #028AF2) !important;
	border-bottom-color: var(--edublink-color-secondary, #028AF2) !important;
}

.ebc-pagination .page-numbers.dots,
.edublink-course-filter-sidebar .eb-custom-pagination .page-numbers.dots {
	color: var(--edublink-color-body, #6f6f6f);
	border: 0;
}

/* Prev/next: plain text arrows, no boxes. */
.ebc-pagination .page-numbers.prev,
.ebc-pagination .page-numbers.next,
.edublink-course-filter-sidebar .eb-custom-pagination .page-numbers.prev,
.edublink-course-filter-sidebar .eb-custom-pagination .page-numbers.next {
	margin-left: 6px;
	border-bottom: 0 !important;
	background: transparent !important;
	color: var(--edublink-color-primary, #002D74);
	font-size: 12px;
}

.ebc-pagination .page-numbers.prev,
.edublink-course-filter-sidebar .eb-custom-pagination .page-numbers.prev {
	margin-left: 0;
	margin-right: 6px;
}

.ebc-pagination .page-numbers.prev:hover,
.ebc-pagination .page-numbers.next:hover,
.edublink-course-filter-sidebar .eb-custom-pagination .page-numbers.prev:hover,
.edublink-course-filter-sidebar .eb-custom-pagination .page-numbers.next:hover {
	color: var(--edublink-color-secondary, #028AF2);
}

@media (max-width: 767px) {
	.ebc-pagination,
	.edublink-course-filter-sidebar .eb-custom-pagination {
		flex-direction: column;
		justify-content: center;
		padding: 16px;
	}
}

/* Equal heights in the listing pages' grid (masonry is disabled; make the
 * flex row stretch its columns). */
.edublink-course-filter-sidebar .display-layout-grid {
	align-items: stretch;
}

.edublink-course-filter-sidebar .display-layout-grid > [class*="edublink-col-"] > div,
.edublink-course-filter-sidebar .display-layout-grid .edublink-single-course {
	height: 100%;
}

/* Small "View All" button beside the department headings. */
.ebc-viewall-btn .edu-btn {
	height: auto;
	line-height: 1;
	padding: 11px 22px;
	font-size: 13px;
	font-weight: 600;
	background: transparent;
	color: var(--edublink-color-primary, #002D74);
	border: 1px solid var(--edublink-color-border, #e5e5e5);
	border-radius: 8px;
	transition: all 0.25s ease;
}

.ebc-viewall-btn .edu-btn::after {
	display: none;
}

.ebc-viewall-btn .edu-btn:hover {
	background: var(--edublink-color-primary, #002D74);
	border-color: var(--edublink-color-primary, #002D74);
	color: #fff;
}

/* Loading state while the grid refreshes without a reload. */
.edublink-course-filter-sidebar .filtered-courses {
	transition: opacity 0.2s ease;
}

.edublink-course-filter-sidebar.ebc-loading .filtered-courses {
	opacity: 0.4;
	pointer-events: none;
}

.edublink-course-filter-sidebar.ebc-loading {
	position: relative;
}

.edublink-course-filter-sidebar.ebc-loading::after {
	content: "";
	position: absolute;
	top: 160px;
	left: 62%;
	width: 42px;
	height: 42px;
	margin-left: -21px;
	border: 4px solid rgba(2, 138, 242, 0.2);
	border-top-color: var(--edublink-color-secondary, #028AF2);
	border-radius: 50%;
	animation: ebc-spin 0.7s linear infinite;
	z-index: 5;
}

@keyframes ebc-spin {
	to { transform: rotate(360deg); }
}

/* Related packages strip before the footer. */
.ebc-package-related {
	background: #F0F4F5;
	padding: 90px max(calc((100% - 1280px) / 2), 5%) 100px;
}

.ebc-package-related .section-title {
	text-align: center;
	margin-bottom: 40px;
}

@media (max-width: 991px) {
	.ebc-package-related {
		padding-top: 60px;
		padding-bottom: 60px;
	}

	.ebc-package-related .section-title {
		margin-bottom: 30px;
	}
}

/* Cover card: floats up into the hero on desktop; below it, everything
 * from the enroll card to the end of the sidebar sticks while scrolling. */
.ebc-package-sidebar .ebc-package-buybox--media {
	margin-top: -110px;
	margin-bottom: 16px;
}

/* The buy-box cover overlaps the hero, but the hero is positioned (it hosts
 * the decor pseudos) and would paint over it — lift the box back on top. */
.ebc-package-sidebar,
.ebc-package-main .ebc-package-buybox {
	position: relative;
	z-index: 2;
}

/* Equal-height cards inside the related packages slider. */
.ebc-package-related .swiper-slide {
	height: auto;
	display: flex;
}

.ebc-package-related .swiper-slide > .edublink-single-course {
	width: 100%;
}

.ebc-package-share {
	background: #fff;
	border: 1px solid var(--edublink-color-border, #e5e5e5);
	border-radius: 14px;
	padding: 20px 24px;
	margin-top: 16px;
}

.ebc-package-share .share-title {
	font-size: 16px;
	margin-bottom: 12px;
}

.ebc-package-sidebar .tutor-single-course-sidebar-more {
	margin-top: 16px;
}

.ebc-package-buybox {
	background: #fff;
	border: 1px solid var(--edublink-color-border, #e5e5e5);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 20px 50px rgba(7, 16, 34, 0.12);
}

.ebc-package-buybox-media img {
	width: 100%;
	display: block;
}

.ebc-package-buybox-inner {
	padding: 24px;
}

.ebc-package-buybox-inner .tutor-card,
.ebc-package-buybox-inner .tutor-sidebar-card {
	border: 0;
	box-shadow: none;
}

.ebc-package-includes {
	border-top: 1px solid var(--edublink-color-border, #e5e5e5);
	margin-top: 20px;
	padding-top: 20px;
}

.ebc-package-includes-title {
	font-size: 16px;
	margin-bottom: 14px;
}

.ebc-package-includes ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Label at the left, value at the right - same pattern as the theme's
 * "Course Includes:" sidebar. */
.ebc-package-includes li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 0;
	font-size: 14px;
	border-bottom: 1px solid var(--edublink-color-border, #e5e5e5);
}

.ebc-package-includes li:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.ebc-pi-label {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--edublink-color-body, #6f6f6f);
}

.ebc-pi-label i {
	color: var(--edublink-color-heading, #181818);
	font-size: 17px;
	line-height: 1;
}

.ebc-pi-value {
	color: var(--edublink-color-heading, #181818);
	font-weight: 600;
	text-align: right;
}

.ebc-pi-price,
.ebc-pi-price .price {
	color: var(--edublink-color-secondary, #028AF2);
	font-weight: 700;
}

/* Enroll button matches the Wishlist button's full width. The theme
 * renders its own button (.eb-tl-enroll-btn) instead of Tutor's .tutor-btn;
 * both are covered for the guest and enrolled states. */
.ebc-package-buybox-inner .tutor-course-single-btn-group,
.ebc-package-buybox-inner .tutor-enrol-course-form,
.ebc-package-buybox-inner .eb-tl-enroll-btn,
.ebc-package-buybox-inner .tutor-btn {
	width: 100%;
}

.ebc-package-buybox-inner .eb-tl-enroll-btn,
.ebc-package-buybox-inner .tutor-btn {
	display: block;
	justify-content: center;
	text-align: center;
}

.ebc-package-section {
	margin-bottom: 40px;
}

.ebc-package-section-title {
	font-size: 24px;
	margin-bottom: 20px;
}

.ebc-package-courses {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.ebc-package-course {
	display: flex;
	align-items: center;
	gap: 18px;
	background: #fff;
	border: 1px solid var(--edublink-color-border, #e5e5e5);
	border-radius: 12px;
	padding: 14px 22px 14px 16px;
	transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.ebc-package-course:hover {
	border-color: transparent;
	box-shadow: 0 14px 34px rgba(0, 45, 116, 0.14);
	transform: translateY(-2px);
}

.ebc-package-course-num {
	font-size: 14px;
	font-weight: 700;
	color: var(--edublink-color-secondary, #028AF2);
	min-width: 26px;
	text-align: center;
}

.ebc-package-course-thumb {
	flex: 0 0 108px;
}

.ebc-package-course-thumb img {
	width: 108px;
	height: 72px;
	object-fit: cover;
	border-radius: 8px;
	display: block;
}

.ebc-package-course-info {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ebc-package-course-title {
	font-size: 16px;
	font-weight: 700;
	color: var(--edublink-color-heading, #181818);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ebc-package-course:hover .ebc-package-course-title {
	color: var(--edublink-color-primary, #002D74);
}

.ebc-package-course-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px;
	font-size: 13px;
	color: var(--edublink-color-body, #6f6f6f);
}

.ebc-package-course-meta i {
	margin-right: 5px;
	color: #a7a7a7;
}

.ebc-package-course-level {
	background: rgba(2, 138, 242, 0.10);
	color: var(--edublink-color-secondary, #028AF2);
	border-radius: 20px;
	padding: 2px 12px;
	font-size: 12px;
	font-weight: 600;
}

.ebc-package-course-arrow {
	margin-left: auto;
	color: var(--edublink-color-secondary, #028AF2);
	font-size: 20px;
	opacity: 0;
	transform: translateX(-6px);
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.ebc-package-course:hover .ebc-package-course-arrow {
	opacity: 1;
	transform: translateX(0);
}

@media (max-width: 1199px) {
	.ebc-package-sidebar .ebc-package-buybox--media {
		margin-top: 0;
	}

	.ebc-package-hero {
		padding-bottom: 70px;
	}
}

@media (max-width: 991px) {
	.ebc-package-hero {
		padding-top: 40px;
	}

	.ebc-package-title {
		font-size: 30px;
	}

	.ebc-package-main {
		padding-top: 40px;
	}

	.ebc-package-section-title {
		font-size: 20px;
	}
}

@media (max-width: 575px) {
	.ebc-package-course {
		flex-wrap: wrap;
	}

	.ebc-package-course-thumb {
		flex-basis: 84px;
	}

	.ebc-package-course-thumb img {
		width: 84px;
		height: 56px;
	}

	/* The invisible arrow wraps onto its own line on small screens and
	 * reserves empty space under the card - hide it entirely there. */
	.ebc-package-course-arrow {
		display: none;
	}
}


/* --------------------------------------------------------------
 * Courses toolbar: brand the sidebar filter buttons (theme ships
 * them demo-coral) and compact the sorting bar on phones.
 * -------------------------------------------------------------- */
.edublink-course-filtering .edublink-course-filter-buttons .edu-btn {
	background: var(--edublink-color-primary, #002D74);
	color: #fff;
}

.edublink-course-filtering .edublink-course-filter-buttons .edu-btn:hover {
	background: var(--edublink-color-secondary, #028AF2);
	color: #fff;
}

.edublink-course-filtering .edublink-course-filter-buttons .edu-btn.btn-border {
	background: transparent;
	color: var(--edublink-color-primary, #002D74);
	border-color: var(--edublink-color-primary, #002D74);
}

.edublink-course-filtering .edublink-course-filter-buttons .edu-btn.btn-border:hover {
	background: var(--edublink-color-primary, #002D74);
	color: #fff;
}

@media (max-width: 767px) {
	/* "Filter Sidebar" pill on top, sort dropdown full-width below.
	 * The "Showing X of Y" count and the grid/list switcher are hidden —
	 * phones always use the grid view. */
	.eb-course-filter-toggle {
		display: inline-flex !important;
		align-items: center;
		gap: 8px;
		background: #fff;
		border: 1px solid var(--edublink-color-border, #e5e5e5);
		border-radius: 999px;
		padding: 10px 18px;
		font-size: 13px;
		font-weight: 600;
		margin: 0 0 14px;
	}

	.eb-course-filter-toggle .eb-course-filter-icon {
		color: var(--edublink-color-secondary, #028AF2);
	}

	.edublink-course-filter-sidebar .layout-switcher {
		display: none !important;
	}

	/* The sorting area sheds its card look — only the sort select remains. */
	.edu-top-sorting-area {
		display: block !important;
		padding: 0 !important;
		border: 0 !important;
		background: transparent !important;
		box-shadow: none !important;
	}

	.edu-top-sorting-area .edu-top-sorting-left {
		display: none !important;
	}

	.edu-top-sorting-right {
		display: block !important;
		width: 100% !important;
		margin: 0 !important;
	}

	.edu-top-sorting-right form.course-top-filter {
		width: 100%;
	}

	.edu-course-sorting {
		display: flex !important;
		align-items: center;
		gap: 10px;
		width: 100% !important;
		background: #fff;
		border: 1px solid var(--edublink-color-border, #e5e5e5);
		border-radius: 12px;
		padding: 2px 14px !important;
		margin: 0 !important;
	}

	.edu-course-sorting .icon {
		color: var(--edublink-color-secondary, #028AF2);
		flex: none;
	}

	.edu-course-sorting select {
		flex: 1;
		width: 100% !important;
		height: 44px;
		border: 0 !important;
		box-shadow: none !important;
		background-color: transparent !important;
		font-size: 14px;
		-webkit-appearance: none;
		appearance: none;
		background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23787c82' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
		background-repeat: no-repeat;
		background-position: right 4px center;
		padding-right: 26px !important;
	}
}

/* --------------------------------------------------------------
 * IIT loading animation
 * -------------------------------------------------------------- */
/* Frame baseline only — the ACTIVE style's animation (one of five, see
 * IIT Settings → Loading) is printed inline in the ebc-critical head
 * block so it works before this stylesheet loads. */
.ebc-loader-frame {
	fill: none;
	stroke: #fff;
	stroke-width: 3;
}

@media (prefers-reduced-motion: reduce) {
	.ebc-loader,
	.ebc-loader * {
		animation: none !important;
	}
}

/* Course grid while live filters fetch. */
.edublink-course-filter-sidebar .filtered-courses {
	position: relative;
}

.ebc-grid-loader {
	position: absolute;
	inset: 0;
	z-index: 5;
	display: none;
	align-items: flex-start;
	justify-content: center;
	padding-top: 110px;
	background: rgba(255, 255, 255, 0.65);
}

.edublink-course-filter-sidebar.ebc-loading .ebc-grid-loader {
	display: flex;
}

/* --------------------------------------------------------------
 * Header account button (Sign In / Dashboard)
 * -------------------------------------------------------------- */
.ebc-account-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 18px;
	border-radius: 999px;
	background: #fff;
	color: var(--edublink-color-primary, #002D74);
	font-weight: 600;
	font-size: 13px;
	line-height: 1;
	white-space: nowrap;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.14);
	transition: all 0.25s ease;
}

.ebc-account-btn i {
	font-size: 15px;
	line-height: 1;
	color: var(--edublink-color-secondary, #028AF2);
	transition: color 0.25s ease;
}

.ebc-account-btn:hover,
.ebc-account-btn:focus {
	background: var(--edublink-color-secondary, #028AF2);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 5px 16px rgba(0, 0, 0, 0.2);
}

.ebc-account-btn:hover i,
.ebc-account-btn:focus i {
	color: #fff;
}

/* Small screens: the pill reads as clutter next to the search circle and
 * hamburger — collapse to a plain white glyph in the header's icon language. */
@media (max-width: 991px) {
	.ebc-account-btn,
	.ebc-account-btn:hover,
	.ebc-account-btn:focus {
		padding: 6px;
		background: transparent;
		color: #fff;
		box-shadow: none;
		transform: none;
	}

	.ebc-account-btn:hover {
		background: rgba(255, 255, 255, 0.12);
	}

	.ebc-account-btn i,
	.ebc-account-btn:hover i {
		font-size: 21px;
		color: #fff;
	}

	.ebc-account-btn span {
		display: none;
	}
}

/* --------------------------------------------------------------
 * Search results page
 * -------------------------------------------------------------- */
body.ebc-search-results-page .edublink-page-title-area {
	display: none;
}

/* Breathing room between the hero search bar and the results chip. */
.ebc-search-page .ebc-listing-search {
	margin-bottom: 20px;
}

.ebc-search-section + .ebc-search-section {
	margin-top: 44px;
}

.ebc-search-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 18px;
}

.ebc-search-section-head h3 {
	font-size: 22px;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 10px;
}

.ebc-search-section-head h3 em {
	font-style: normal;
	font-size: 12px;
	font-weight: 600;
	background: rgba(2, 138, 242, 0.10);
	color: var(--edublink-color-secondary, #028AF2);
	border-radius: 999px;
	padding: 2px 10px;
}

.ebc-search-section-head a {
	font-size: 14px;
	font-weight: 600;
	color: var(--edublink-color-secondary, #028AF2);
	white-space: nowrap;
}

.ebc-search-section-head a:hover {
	color: var(--edublink-color-primary, #002D74);
}

.ebc-search-fields .ebc-sp2-chips {
	padding: 0;
}

.ebc-search-prompt {
	text-align: center;
	padding: 70px 20px;
}

.ebc-search-prompt i {
	display: block;
	font-size: 44px;
	color: #b9c3d4;
	margin-bottom: 12px;
}

.ebc-search-prompt strong {
	display: block;
	font-size: 20px;
	margin-bottom: 6px;
}

.ebc-search-prompt span {
	color: var(--edublink-color-body, #6f6f6f);
}

/* --------------------------------------------------------------
 * Command-palette search popup (.ebc-sp2)
 * -------------------------------------------------------------- */
.edu-search-popup.ebc-sp2 {
	background: rgba(4, 14, 33, 0.74);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	/* Above the sticky header (z-index:99) so it can never paint over the
	 * popup's own close button on mobile once the header goes sticky. */
	z-index: 9999;
}

.edu-search-popup.ebc-sp2 .content-wrap {
	height: 100%;
	max-width: none;
	padding: 0;
	background: transparent;
	box-shadow: none;
	min-height: 0;
}

.edu-search-popup.ebc-sp2 .inner {
	width: min(680px, 92vw);
	max-width: 680px;
	margin: min(11vh, 110px) auto 0;
}

.ebc-sp2 .close-button .close-trigger {
	color: #fff;
}

.ebc-sp2-panel {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 40px 90px rgba(0, 0, 0, 0.35);
	max-height: min(72vh, 660px);
	text-align: left;
}

.ebc-sp2-inputwrap {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 4px 18px;
	border-bottom: 1px solid var(--edublink-color-border, #e5e5e5);
	flex: none;
}

.ebc-sp2-inputwrap > i {
	font-size: 20px;
	color: var(--edublink-color-secondary, #028AF2);
}

.ebc-sp2 input.ebc-sp2-input,
.ebc-sp2 input.ebc-sp2-input:focus {
	flex: 1;
	height: 56px;
	border: 0;
	outline: none;
	box-shadow: none;
	background: transparent;
	font-size: 16.5px;
	color: var(--edublink-color-heading, #181818);
	padding: 0;
	margin: 0;
}

.ebc-sp2-esc {
	flex: none;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.5px;
	color: #98a0ab;
	border: 1px solid #e2e5e9;
	border-radius: 6px;
	padding: 2px 6px;
}

.ebc-sp2-clear-input {
	flex: none;
	border: 0;
	background: none;
	cursor: pointer;
	color: #98a0ab;
	font-size: 18px;
	padding: 4px;
	line-height: 1;
}

.ebc-sp2-clear-input:hover {
	color: var(--edublink-color-heading, #181818);
}

.ebc-sp2-body {
	flex: 1;
	overflow-y: auto;
	padding: 16px 12px 12px;
	min-height: 180px;
}

.ebc-sp2-sec-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	color: #8a8f98;
	padding: 0 8px;
	margin-bottom: 10px;
}

.ebc-sp2-clear-recent {
	border: 0;
	background: none;
	cursor: pointer;
	color: var(--edublink-color-secondary, #028AF2);
	font-size: 11px;
	font-weight: 600;
	text-transform: none;
	letter-spacing: 0;
	padding: 0;
}

.ebc-sp2-recent {
	margin-bottom: 18px;
}

.ebc-sp2-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 0 8px;
}

.ebc-sp2-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	border: 1px solid var(--edublink-color-border, #e5e5e5);
	border-radius: 999px;
	background: #fff;
	font-size: 13px;
	color: var(--edublink-color-heading, #333);
	cursor: pointer;
	transition: all 0.2s ease;
}

.ebc-sp2-chip:hover,
.ebc-sp2-chip.is-active {
	border-color: var(--edublink-color-secondary, #028AF2);
	color: var(--edublink-color-secondary, #028AF2);
	background: rgba(2, 138, 242, 0.06);
}

.ebc-sp2-chipcount {
	background: #f0f2f5;
	border-radius: 999px;
	padding: 0 7px;
	font-size: 11px;
	color: #666;
}

.ebc-sp2-group + .ebc-sp2-group {
	margin-top: 16px;
}

.ebc-sp2-ghead {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	color: #8a8f98;
	padding: 0 8px 7px;
}

.ebc-sp2-ghead em {
	font-style: normal;
	background: #f0f2f5;
	border-radius: 999px;
	padding: 1px 8px;
	font-size: 10px;
}

.ebc-sp2-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px;
	border-radius: 10px;
	transition: background 0.15s ease;
}

.ebc-sp2-item:hover,
.ebc-sp2-item.is-active {
	background: rgba(2, 138, 242, 0.07);
}

.ebc-sp2-thumb {
	flex: none;
	width: 58px;
	height: 42px;
	border-radius: 8px;
	background-size: cover;
	background-position: center;
}

.ebc-sp2-thumb-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #eef2f7;
	color: #9aa7b8;
	font-size: 18px;
}

.ebc-sp2-itembody {
	min-width: 0;
}

.ebc-sp2-title {
	display: block;
	font-weight: 600;
	font-size: 14.5px;
	line-height: 1.35;
	color: var(--edublink-color-heading, #181818);
}

.ebc-sp2-title mark {
	background: rgba(2, 138, 242, 0.16);
	color: inherit;
	border-radius: 3px;
	padding: 0 1px;
}

.ebc-sp2-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
	align-items: center;
	margin-top: 3px;
	font-size: 12px;
	color: #787c82;
}

.ebc-sp2-m i {
	margin-right: 3px;
}

.ebc-sp2-m-cat {
	color: var(--edublink-color-secondary, #028AF2);
}

.ebc-sp2-m-price {
	font-weight: 600;
	color: #00631f;
}

.ebc-sp2-go {
	margin-left: auto;
	color: var(--edublink-color-primary, #002D74);
	opacity: 0;
	transition: opacity 0.15s ease;
	flex: none;
}

.ebc-sp2-item:hover .ebc-sp2-go,
.ebc-sp2-item.is-active .ebc-sp2-go {
	opacity: 1;
}

.ebc-sp2-footer {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	border-top: 1px solid var(--edublink-color-border, #e5e5e5);
	background: #fafbfc;
	padding: 10px 16px;
}

.ebc-sp2-hints {
	font-size: 11.5px;
	color: #8a8f98;
}

.ebc-sp2-hints kbd {
	font-family: inherit;
	font-size: 10px;
	color: #5a6472; /* the theme paints kbd white-on-dark; this box is light */
	border: 1px solid #dcdfe3;
	border-bottom-width: 2px;
	border-radius: 5px;
	background: #fff;
	padding: 1px 5px;
	margin: 0 2px;
}

.ebc-sp2-viewall {
	font-size: 13px;
	font-weight: 600;
	color: var(--edublink-color-secondary, #028AF2);
	white-space: nowrap;
}

.ebc-sp2-viewall:hover,
.ebc-sp2-viewall.is-active {
	color: var(--edublink-color-primary, #002D74);
}

/* Skeleton loading */
.ebc-sp2-skel {
	display: flex;
	gap: 12px;
	align-items: center;
	padding: 8px;
}

.ebc-sp2-skel-thumb,
.ebc-sp2-skel-lines span {
	background: linear-gradient(90deg, #eef1f5 25%, #f7f9fb 50%, #eef1f5 75%);
	background-size: 400px 100%;
	animation: ebc-sp2-shimmer 1.2s infinite linear;
	border-radius: 8px;
}

.ebc-sp2-skel-thumb {
	flex: none;
	width: 58px;
	height: 42px;
}

.ebc-sp2-skel-lines {
	flex: 1;
}

.ebc-sp2-skel-lines span {
	display: block;
	height: 11px;
	border-radius: 5px;
	margin: 5px 0;
}

.ebc-sp2-skel-lines span:first-child { width: 62%; }
.ebc-sp2-skel-lines span:last-child { width: 38%; }

@keyframes ebc-sp2-shimmer {
	0% { background-position: -400px 0; }
	100% { background-position: 400px 0; }
}

@media (prefers-reduced-motion: reduce) {
	.ebc-sp2-skel-thumb,
	.ebc-sp2-skel-lines span {
		animation: none;
	}
}

/* Empty state */
.ebc-sp2-empty {
	text-align: center;
	padding: 36px 12px;
}

.ebc-sp2-empty i {
	display: block;
	font-size: 40px;
	color: #b9c3d4;
	margin-bottom: 10px;
}

.ebc-sp2-empty strong {
	display: block;
	margin-bottom: 4px;
}

.ebc-sp2-empty span {
	font-size: 13px;
	color: #787c82;
}

/* Mobile: full-screen takeover */
@media (max-width: 640px) {
	.edu-search-popup.ebc-sp2 .inner {
		width: 100%;
		max-width: none;
		margin: 0;
		height: 100%;
	}

	.ebc-sp2-panel {
		height: 100%;
		max-height: none;
		border-radius: 0;
	}

	.ebc-sp2-esc,
	.ebc-sp2-hints {
		display: none;
	}

	.ebc-sp2-footer {
		justify-content: center;
	}

	.ebc-sp2 .close-button {
		z-index: 5;
	}

	/* The close icon is white by default (readable against the dark
	 * backdrop visible around the card on desktop) — but the panel goes
	 * full-bleed white on mobile, so a white icon on a white panel is
	 * invisible. Give it a dark glyph + a visible chip background here.
	 * !important: this ties in specificity with the theme's own base
	 * rule (main.css) and our own desktop rule above, so which one wins
	 * the resting (non-hover) state otherwise depends on load/combine
	 * order rather than intent — force it so mobile is never ambiguous. */
	.ebc-sp2 .close-button .close-trigger {
		display: flex !important;
		align-items: center;
		justify-content: center;
		width: 36px;
		height: 36px;
		color: var(--edublink-color-heading, #1a2233) !important;
		background: #eef1f6 !important;
		border-radius: 50%;
		font-size: 18px;
	}
}

/* --------------------------------------------------------------
 * Custom student dashboard (root view inside Tutor's shell)
 * -------------------------------------------------------------- */
.ebc-dash-hero {
	background: linear-gradient(135deg, var(--edublink-color-primary, #002D74) 0%, #071022 100%);
	border-radius: 16px;
	padding: 28px;
	color: #fff;
	margin-bottom: 22px;
}

.ebc-dash-hero-id {
	display: flex;
	align-items: center;
	gap: 18px;
}

.ebc-dash-avatar {
	flex: none;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.15);
	background-size: cover;
	background-position: center;
	border: 2px solid rgba(255, 255, 255, 0.35);
}

.ebc-dash-welcome {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: rgba(255, 255, 255, 0.65);
}

.ebc-dash-name {
	color: #fff;
	font-size: 24px;
	margin: 2px 0 10px;
}

.ebc-dash-chips {
	margin: 0;
}

.ebc-dash-tiles {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
	margin-bottom: 26px;
}

.ebc-dash-tile {
	display: flex;
	flex-direction: column;
	gap: 2px;
	background: #fff;
	border: 1px solid rgba(0, 45, 116, 0.16);
	border-radius: 14px;
	padding: 18px;
	transition: all 0.2s ease;
}

a.ebc-dash-tile:hover {
	border-color: var(--edublink-color-secondary, #028AF2);
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(7, 16, 34, 0.08);
}

.ebc-dash-tile i {
	font-size: 20px;
	color: var(--edublink-color-secondary, #028AF2);
	margin-bottom: 6px;
}

.ebc-dash-tile strong {
	font-size: 24px;
	line-height: 1;
	color: var(--edublink-color-heading, #181818);
}

.ebc-dash-tile span {
	font-size: 12.5px;
	color: var(--edublink-color-body, #6f6f6f);
}

.ebc-dash-section {
	margin-bottom: 26px;
}

.ebc-dash-section-head h3 {
	font-size: 18px;
	margin: 0 0 14px;
}

.ebc-dash-apps {
	background: #fff;
	border: 1px solid rgba(0, 45, 116, 0.16);
	border-radius: 14px;
	padding: 6px 18px;
}

.ebc-dash-app {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 0;
}

.ebc-dash-app + .ebc-dash-app {
	border-top: 1px solid rgba(0, 45, 116, 0.08);
}

.ebc-dash-app-title {
	font-weight: 600;
	color: var(--edublink-color-heading, #181818);
}

.ebc-dash-app-more {
	margin: 0;
	padding: 10px 0 12px;
	font-size: 13px;
	color: var(--edublink-color-body, #6f6f6f);
}

.ebc-dash-links {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}

.ebc-dash-link {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #fff;
	border: 1px solid rgba(0, 45, 116, 0.16);
	border-radius: 12px;
	padding: 13px 16px;
	font-weight: 600;
	font-size: 14px;
	color: var(--edublink-color-heading, #181818);
	transition: all 0.2s ease;
}

.ebc-dash-link:hover {
	border-color: var(--edublink-color-secondary, #028AF2);
	color: var(--edublink-color-secondary, #028AF2);
}

.ebc-dash-link-ic {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: rgba(2, 138, 242, 0.10);
	color: var(--edublink-color-secondary, #028AF2);
	font-size: 18px;
	flex: none;
}

.ebc-dash-link-out .ebc-dash-link-ic {
	background: rgba(179, 45, 46, 0.08);
	color: #b32d2e;
}

.ebc-dash-empty {
	text-align: center;
	background: #fff;
	border: 1px dashed rgba(0, 45, 116, 0.3);
	border-radius: 14px;
	padding: 40px 20px;
	margin-bottom: 26px;
}

.ebc-dash-empty i {
	display: block;
	font-size: 40px;
	color: var(--edublink-color-secondary, #028AF2);
	margin-bottom: 10px;
}

.ebc-dash-empty strong {
	display: block;
	font-size: 18px;
	margin-bottom: 6px;
}

.ebc-dash-empty span {
	color: var(--edublink-color-body, #6f6f6f);
}

@media (max-width: 991px) {
	.ebc-dash-tiles {
		grid-template-columns: repeat(2, 1fr);
	}

	.ebc-dash-links {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 575px) {
	.ebc-dash-links {
		grid-template-columns: 1fr;
	}

	.ebc-dash-hero-id {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* --------------------------------------------------------------
 * IIT dashboard shell (standalone document)
 * -------------------------------------------------------------- */
body.ebc-shell-body {
	margin: 0;
	background: #f4f6fa;
}

.ebc-shell {
	display: flex;
	min-height: 100vh;
}

.ebc-shell-sidebar {
	width: 264px;
	display: flex;
	flex-direction: column;
	background: linear-gradient(170deg, var(--edublink-color-primary, #002D74) 0%, #071022 100%);
	color: #fff;
	padding: 22px 14px;
	position: fixed;
	left: 0;
	top: 0;
	bottom: 0;
	z-index: 50;
	overflow-y: auto;
}

.ebc-shell-main {
	margin-left: 264px;
}

.ebc-shell-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 4px 10px 20px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	margin-bottom: 16px;
}

.ebc-shell-mark {
	flex: none;
	width: 42px;
	height: 42px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	color: #fff;
	border: 2px solid #fff;
	font-family: 'Times New Roman', Times, serif;
	font-weight: bold;
	font-size: 18px;
}

.ebc-shell-logotext {
	font-family: 'Times New Roman', Times, serif;
	white-space: nowrap;
	font-size: 11.5px;
	line-height: 1.4;
	letter-spacing: 0.6px;
	color: rgba(255, 255, 255, 0.9);
}

.ebc-shell-logotext em {
	font-style: italic;
	text-transform: none;
	letter-spacing: 0;
}

.ebc-shell-nav {
	flex: 1;
}

.ebc-shell-nav-group {
	display: block;
	font-size: 10.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.2px;
	color: rgba(255, 255, 255, 0.4);
	padding: 16px 12px 6px;
}

.ebc-shell-nav-item {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 10px 12px;
	border-radius: 10px;
	color: rgba(255, 255, 255, 0.78);
	font-size: 14px;
	font-weight: 500;
	margin-bottom: 2px;
	transition: all 0.2s ease;
}

.ebc-shell-nav-item i {
	font-size: 17px;
	line-height: 1;
}

.ebc-shell-nav-item:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}

.ebc-shell-nav-item.is-active {
	background: var(--edublink-color-secondary, #028AF2);
	color: #fff;
}

.ebc-shell-badge {
	margin-left: auto;
	font-style: normal;
	background: #F8941F;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	border-radius: 999px;
	padding: 1px 8px;
}

.ebc-shell-foot {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding-top: 10px;
}

.ebc-shell-logout {
	color: #ff9d9d;
}

.ebc-shell-logout:hover {
	background: rgba(179, 45, 46, 0.25);
	color: #ffbcbc;
}

.ebc-shell-main {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.ebc-shell-topbar {
	display: flex;
	align-items: center;
	gap: 14px;
	background: #fff;
	border-bottom: 1px solid rgba(0, 45, 116, 0.1);
	padding: 14px 28px;
	position: sticky;
	top: 0;
	z-index: 20;
}

.ebc-shell-burger {
	display: none;
	border: 0;
	background: none;
	font-size: 22px;
	cursor: pointer;
	color: var(--edublink-color-primary, #002D74);
	padding: 4px;
}

.ebc-shell-title {
	font-size: 19px;
	margin: 0;
	flex: 1;
}

.ebc-shell-user {
	display: flex;
	align-items: center;
	gap: 10px;
}

.ebc-shell-levelpill {
	background: rgba(2, 138, 242, 0.1);
	color: var(--edublink-color-secondary, #028AF2);
	font-size: 12px;
	font-weight: 700;
	border-radius: 999px;
	padding: 4px 12px;
}

.ebc-shell-username {
	font-size: 14px;
	font-weight: 600;
}

.ebc-shell-useravatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background-color: rgba(0, 45, 116, 0.1);
	background-size: cover;
	background-position: center;
}

.ebc-shell-content {
	padding: 28px;
	max-width: 1060px;
	width: 100%;
}

.ebc-shell-scrim {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(4, 14, 33, 0.55);
	z-index: 90;
}

/* Tabs, buttons, notices inside the shell */
.ebc-shell-tabs {
	display: flex;
	gap: 8px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.ebc-shell-tab {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 16px;
	border-radius: 999px;
	border: 1px solid rgba(0, 45, 116, 0.16);
	background: #fff;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--edublink-color-heading, #181818);
}

.ebc-shell-tab em {
	font-style: normal;
	background: #f0f2f5;
	border-radius: 999px;
	padding: 0 8px;
	font-size: 11px;
}

.ebc-shell-tab.is-active {
	background: var(--edublink-color-primary, #002D74);
	border-color: var(--edublink-color-primary, #002D74);
	color: #fff;
}

.ebc-shell-tab.is-active em {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
}

.ebc-dash-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--edublink-color-primary, #002D74);
	color: #fff;
	font-weight: 600;
	font-size: 13.5px;
	border-radius: 999px;
	padding: 10px 20px;
	transition: background 0.2s ease;
}

.ebc-dash-btn:hover {
	background: var(--edublink-color-secondary, #028AF2);
	color: #fff;
}

.ebc-dash-btn-ghost {
	background: transparent;
	border: 1px solid var(--edublink-color-primary, #002D74);
	color: var(--edublink-color-primary, #002D74);
}

.ebc-dash-btn-ghost:hover {
	background: var(--edublink-color-primary, #002D74);
	color: #fff;
}

.ebc-shell-notice {
	display: flex;
	align-items: center;
	gap: 10px;
	background: rgba(0, 99, 31, 0.08);
	border: 1px solid rgba(0, 99, 31, 0.25);
	color: #00631f;
	border-radius: 12px;
	padding: 12px 16px;
	margin-bottom: 18px;
	font-weight: 600;
	font-size: 14px;
}

/* My Courses rows */
.ebc-mycourses {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ebc-mycourse {
	display: flex;
	align-items: center;
	gap: 18px;
	background: #fff;
	border: 1px solid rgba(0, 45, 116, 0.16);
	border-radius: 14px;
	padding: 14px;
}

.ebc-mycourse-thumb {
	flex: none;
	width: 120px;
	height: 78px;
	border-radius: 10px;
	background-size: cover;
	background-position: center;
	background-color: #eef2f7;
}

.ebc-mycourse-body {
	flex: 1;
	min-width: 0;
}

.ebc-mycourse-pill {
	font-size: 12px;
	color: var(--edublink-color-secondary, #028AF2);
	font-weight: 600;
}

.ebc-mycourse-pill a {
	color: inherit;
}

.ebc-mycourse-title {
	font-size: 16px;
	margin: 3px 0 10px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ebc-mycourse-title a {
	color: var(--edublink-color-heading, #181818);
}

.ebc-mycourse-title a:hover {
	color: var(--edublink-color-secondary, #028AF2);
}

.ebc-mycourse-progress {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ebc-mycourse-bar {
	flex: 1;
	max-width: 320px;
	height: 7px;
	border-radius: 999px;
	background: #edf1f7;
	overflow: hidden;
}

.ebc-mycourse-bar span {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--edublink-color-secondary, #028AF2), #3EE6A4);
}

.ebc-mycourse-meta {
	font-size: 12.5px;
	color: var(--edublink-color-body, #6f6f6f);
	white-space: nowrap;
}

.ebc-mycourse-action {
	flex: none;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
}

.ebc-mycourse-done {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #00631f;
	font-weight: 700;
	font-size: 13px;
}

/* Applications list */
.ebc-dash-apps-full .ebc-dash-app {
	padding: 14px 0;
}

.ebc-dash-app-info {
	min-width: 0;
}

.ebc-dash-app-sub {
	display: block;
	font-size: 12.5px;
	color: var(--edublink-color-body, #6f6f6f);
	margin-top: 2px;
}

.ebc-dash-app-side {
	display: flex;
	align-items: center;
	gap: 14px;
	flex: none;
}

.ebc-dash-app-withdraw {
	font-size: 13px;
	font-weight: 600;
	color: #b32d2e;
}

.ebc-dash-app-withdraw:hover {
	text-decoration: underline;
	color: #b32d2e;
}

.ebc-apply-badge-declined {
	color: #b32d2e;
}

.ebc-dash-note {
	margin-top: 14px;
	font-size: 13px;
	color: var(--edublink-color-body, #6f6f6f);
}

.ebc-dash-empty-actions {
	margin: 16px 0 0;
	display: flex;
	gap: 10px;
	justify-content: center;
	flex-wrap: wrap;
}

.ebc-dash-section-link {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--edublink-color-secondary, #028AF2);
}

.ebc-dash-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.ebc-wishlist-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Shell responsive */
@media (max-width: 1199px) {
	.ebc-wishlist-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 991px) {
	.ebc-shell-sidebar {
		z-index: 100;
		transform: translateX(-100%);
		transition: transform 0.25s ease;
	}

	.ebc-shell-main {
		margin-left: 0;
	}

	body.ebc-shell-nav-open .ebc-shell-sidebar {
		transform: translateX(0);
	}

	body.ebc-shell-nav-open .ebc-shell-scrim {
		display: block;
	}

	.ebc-shell-burger {
		display: inline-flex;
	}

	.ebc-shell-content {
		padding: 20px 16px;
	}

	.ebc-shell-username {
		display: none;
	}

	.ebc-mycourse {
		flex-wrap: wrap;
	}

	.ebc-mycourse-action {
		width: 100%;
		flex-direction: row;
		justify-content: flex-end;
	}
}

@media (max-width: 575px) {
	.ebc-wishlist-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.ebc-mycourse-thumb {
		width: 90px;
		height: 60px;
	}
}

/* --------------------------------------------------------------
 * Native Tutor subpages (settings, quizzes...): brand token bridge
 * so screens not yet rebuilt use IIT colors instead of Tutor teal.
 * -------------------------------------------------------------- */
:root {
	--tutor-color-primary: #028AF2;
	--tutor-color-primary-hover: #002D74;
	--tutor-primary: #028AF2;
	--tutor-primary-hover: #002D74;
}

/* --------------------------------------------------------------
 * Dashboard: Settings / Quiz Attempts / Certificates views
 * -------------------------------------------------------------- */
.ebc-settings-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	align-items: start;
}

.ebc-settings-card {
	background: #fff;
	border: 1px solid rgba(0, 45, 116, 0.16);
	border-radius: 14px;
	padding: 22px;
}

.ebc-settings-card h3 {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 16px;
	margin: 0 0 18px;
}

.ebc-settings-card h3 i {
	color: var(--edublink-color-secondary, #028AF2);
	font-size: 18px;
}

.ebc-field {
	display: block;
	margin-bottom: 14px;
}

.ebc-field span {
	display: block;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--edublink-color-body, #6f6f6f);
	margin-bottom: 5px;
}

.ebc-field input {
	width: 100%;
	height: 44px;
	border: 1px solid var(--edublink-color-border, #dfe3ea);
	border-radius: 10px;
	padding: 0 14px;
	font-size: 14px;
	background: #fff;
	outline: none;
	transition: border-color 0.2s ease;
}

.ebc-field input:focus {
	border-color: var(--edublink-color-secondary, #028AF2);
	box-shadow: 0 0 0 3px rgba(2, 138, 242, 0.12);
}

.ebc-shell-notice-err {
	background: rgba(179, 45, 46, 0.08);
	border-color: rgba(179, 45, 46, 0.3);
	color: #b32d2e;
}

.ebc-facts {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ebc-facts li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid rgba(0, 45, 116, 0.08);
	font-size: 14px;
}

.ebc-facts li:last-child {
	border-bottom: 0;
}

.ebc-facts li span {
	color: var(--edublink-color-body, #6f6f6f);
}

/* Quiz attempts */
.ebc-attempts,
.ebc-certs {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ebc-attempt,
.ebc-cert {
	display: flex;
	align-items: center;
	gap: 16px;
	background: #fff;
	border: 1px solid rgba(0, 45, 116, 0.16);
	border-radius: 14px;
	padding: 14px 18px;
}

.ebc-attempt-info {
	flex: 1;
	min-width: 0;
}

.ebc-attempt-info strong {
	display: block;
	font-size: 15px;
}

.ebc-attempt-info span {
	font-size: 12.5px;
	color: var(--edublink-color-body, #6f6f6f);
}

.ebc-attempt-side {
	display: flex;
	align-items: center;
	gap: 16px;
	flex: none;
}

.ebc-attempt-score {
	font-weight: 700;
	font-size: 15px;
	color: var(--edublink-color-primary, #002D74);
}

/* Certificates */
.ebc-cert-ic {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 12px;
	background: rgba(248, 148, 31, 0.12);
	color: #F8941F;
	font-size: 22px;
}

.ebc-cert-info {
	flex: 1;
	min-width: 0;
}

.ebc-cert-info strong {
	display: block;
	font-size: 15px;
}

.ebc-cert-info span {
	font-size: 12.5px;
	color: var(--edublink-color-body, #6f6f6f);
}

@media (max-width: 991px) {
	.ebc-settings-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.ebc-attempt,
	.ebc-cert {
		flex-wrap: wrap;
	}
}

/* Admins keep the WP toolbar — drop the shell below it. */
body.admin-bar .ebc-shell-sidebar,
body.admin-bar .ebc-shell-topbar {
	top: 32px;
}

/* --------------------------------------------------------------
 * IIT lesson room (learning area reskin)
 * -------------------------------------------------------------- */
/* The theme sets body{overflow-x:hidden}, which turns <body> into a
 * non-scrolling scroll container and silently disables position:sticky
 * everywhere inside the learning area (Tutor's mobile sticky header and
 * our sticky video). overflow-x:clip keeps the horizontal-scroll
 * protection without creating a scroll container. */
body.single-lesson,
body.single-tutor_quiz,
body.single-tutor_assignments,
body.single-tutor_zoom_meeting,
body.single-tutor-google-meet {
	overflow-x: clip;
}

.ebc-lesson-header {
	background: linear-gradient(135deg, var(--edublink-color-primary, #002D74) 0%, #071022 100%) !important;
	border-bottom: 0 !important;
}

/* Tutor wraps the header content in its own white card — flatten it so
 * the navy bar owns the whole strip. */
.ebc-lesson-header .tutor-learning-header-inner {
	background: transparent !important;
	box-shadow: none !important;
	border: 0 !important;
	border-radius: 0 !important;
}

.ebc-lesson-header-content {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
}

.ebc-lesson-back {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	font-size: 18px;
	flex: none;
	transition: background 0.2s ease;
}

.ebc-lesson-back:hover {
	background: var(--edublink-color-secondary, #028AF2);
	color: #fff;
}

.ebc-lesson-mark {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border: 2px solid #fff;
	color: #fff;
	font-family: 'Times New Roman', Times, serif;
	font-weight: bold;
	font-size: 14px;
}

.ebc-lesson-titles {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.ebc-lesson-coursename {
	color: #fff;
	font-weight: 600;
	font-size: 14.5px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ebc-lesson-greeting {
	color: rgba(255, 255, 255, 0.65);
	font-size: 12px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ebc-lesson-progresswrap {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
	flex: none;
}

.ebc-lesson-progressbar {
	width: 140px;
	height: 7px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.18);
	overflow: hidden;
}

.ebc-lesson-progressbar span {
	display: block;
	height: 100%;
	border-radius: 999px;
	/* Fill hue tracks completion (--ebc-p on the wrapper): red-orange
	 * at 0, amber midway, green at 100 — same scale as the mobile pill. */
	background: linear-gradient(
		90deg,
		hsl(calc(var(--ebc-p, 0) * 1.2 + 8), 72%, 36%),
		hsl(calc(var(--ebc-p, 0) * 1.2 + 8), 78%, 50%)
	);
	transition: background 0.4s ease, width 0.4s ease;
}

.ebc-lesson-progresspct {
	color: #fff;
	font-size: 12.5px;
	font-weight: 700;
}

.ebc-lesson-levelpill {
	flex: none;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 11.5px;
	font-weight: 700;
	border-radius: 999px;
	padding: 4px 12px;
}

.ebc-lesson-coursebtns {
	flex: none;
	display: flex;
	align-items: center;
	gap: 8px;
}

.ebc-lesson-burger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 10px;
	width: 36px;
	height: 36px;
	color: #fff;
	font-size: 18px;
	cursor: pointer;
}

/* Tutor's 40px toggle wrapper is bigger than the 36px button — center
 * the button inside it so the burger doesn't sit off to one corner.
 * Scoped below Tutor's lg breakpoint: at ≥992px Tutor hides the toggle
 * (the sidebar is always visible), and an unscoped display:flex here
 * would resurrect it on desktop. */
@media (max-width: 991px) {
	.ebc-lesson-header .tutor-learning-header-toggle-mobile {
		display: flex;
		align-items: center;
		justify-content: center;
	}
}

/* Desktop: 5% breathing room at the sides of the header, sidebar and
 * content column (the footer lives inside the content column, so it
 * inherits the same inset). */
@media (min-width: 992px) {
	.tutor-learning-header.ebc-lesson-header {
		padding-left: 5vw;
		padding-right: 5vw;
	}

	.tutor-learning-area-content {
		padding-left: 5%;
		padding-right: 5%;
	}

	/* The fixed sidebar hugs the screen edge — inset it so its CARDS
	 * land exactly on the 5% line (the cards sit 20px inside the panel:
	 * 8px sidebar padding + 12px nav padding). The "More" pages strip
	 * only had the 8px, so it gets matching side margins; the fixed
	 * collapse button gets the same 5vw. Content offset pushed out to
	 * match. :not(.is-fullscreen) matches Tutor's 320px rule's
	 * specificity without beating the fullscreen state, where the
	 * sidebar hides and padding drops to 0. */
	.tutor-learning-area .tutor-learning-sidebar {
		left: calc(5vw - 20px);
	}

	.tutor-learning-sidebar .tutor-learning-sidebar-pages {
		margin-left: 12px;
		margin-right: 12px;
	}

	.tutor-learning-area .tutor-expand-btn:not(.tutor-hidden) {
		left: 5vw;
	}

	.tutor-learning-area:not(.is-fullscreen) .tutor-learning-area-body {
		padding-left: calc(320px + 5vw);
	}

	/* Laptops: a full-column 16:9 video is taller than a short viewport,
	 * cutting off part of the frame. Cap the player width from the
	 * viewport HEIGHT (height budget × 16/9) so the whole frame always
	 * fits on screen, centered on a letterbox strip. */
	.tutor-lesson-video-wrapper {
		background: #000;
	}

	.tutor-lesson-video-wrapper .tutor-video-player {
		max-width: calc((100vh - 170px) * 1.7778);
		margin-left: auto;
		margin-right: auto;
	}
}

/* Footer: prev / mark complete / next */
.ebc-lesson-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
}

.ebc-lesson-nav-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	max-width: 300px;
	padding: 8px 14px;
	border: 1px solid rgba(0, 45, 116, 0.16);
	border-radius: 12px;
	background: #fff;
	transition: all 0.2s ease;
}

.ebc-lesson-nav-btn:hover {
	border-color: var(--edublink-color-secondary, #028AF2);
}

.ebc-lesson-nav-btn i {
	font-size: 20px;
	color: var(--edublink-color-secondary, #028AF2);
	flex: none;
}

.ebc-lesson-nav-btn.is-locked {
	opacity: 0.45;
	pointer-events: none;
}

.ebc-lesson-nav-label {
	min-width: 0;
	display: flex;
	flex-direction: column;
	text-align: left;
}

.ebc-lesson-nav-next .ebc-lesson-nav-label {
	text-align: right;
}

.ebc-lesson-nav-label em {
	font-style: normal;
	font-size: 10.5px;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	color: var(--edublink-color-body, #6f6f6f);
}

.ebc-lesson-nav-label strong {
	font-size: 13px;
	color: var(--edublink-color-heading, #181818);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 240px;
}

.ebc-lesson-nav-spacer {
	width: 1px;
}

button.ebc-lesson-complete {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--edublink-color-primary, #002D74);
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: 11px 24px;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	transition: background 0.2s ease;
}

button.ebc-lesson-complete:hover:not([disabled]) {
	background: var(--edublink-color-secondary, #028AF2);
}

button.ebc-lesson-complete i {
	font-size: 17px;
}

button.ebc-lesson-complete.completed,
button.ebc-lesson-complete[disabled] {
	background: rgba(0, 99, 31, 0.1);
	color: #00631f;
	cursor: default;
}

/* Completion celebration */
.ebc-lesson-celebrate {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	background: linear-gradient(135deg, rgba(2, 138, 242, 0.08), rgba(62, 230, 164, 0.1));
	border: 1px solid rgba(0, 99, 31, 0.25);
	border-radius: 14px;
	padding: 18px 20px;
	margin-bottom: 16px;
}

.ebc-lesson-celebrate > i {
	font-size: 34px;
	color: #F8941F;
	flex: none;
}

.ebc-lesson-celebrate-text {
	flex: 1;
	min-width: 200px;
}

.ebc-lesson-celebrate-text strong {
	display: block;
	font-size: 16px;
}

.ebc-lesson-celebrate-text span {
	font-size: 13px;
	color: var(--edublink-color-body, #6f6f6f);
}

.ebc-lesson-celebrate-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

/* Sidebar refinements (Tutor markup, our accents) */
.tutor-learning-sidebar .tutor-learning-nav-topic.active .tutor-learning-nav-header-title {
	color: var(--edublink-color-primary, #002D74);
	font-weight: 700;
}

.tutor-learning-sidebar .tutor-learning-nav-item.active {
	background: rgba(2, 138, 242, 0.08);
	border-radius: 10px;
}

@media (max-width: 767px) {
	/* Icon-only prev/next on mobile — dropping the "Previous"/"Next" label
	 * and topic title frees up the row so Mark as Complete can sit
	 * comfortably centered instead of competing for space. */
	.ebc-lesson-nav-label {
		display: none;
	}

	.ebc-lesson-greeting {
		display: none;
	}

	/* Header: only what fits — back, course name, slim progress, complete
	 * icon, burger. The fixed 140px bar + level pill + full "Complete the
	 * Course" pill overflowed the viewport and pushed the burger off-screen. */
	.ebc-lesson-header-content {
		gap: 8px;
		min-width: 0;
	}

	.ebc-lesson-header .tutor-learning-header-inner {
		min-height: 48px; /* + 2×8px header padding = Tutor's 64px offset */
	}

	.ebc-lesson-mark,
	.ebc-lesson-levelpill {
		display: none;
	}

	.ebc-lesson-titles {
		flex: 1 1 auto;
	}

	.ebc-lesson-coursename {
		font-size: 13px;
	}

	.ebc-lesson-progresswrap {
		flex: 0 0 auto;
		margin-left: 0;
	}

	/* Progress as a simple pill — just the number and % sign. The hue
	 * tracks the completion value (--ebc-p, set inline by the template):
	 * red-orange at 0, amber midway, green at 100. */
	.ebc-lesson-progressbar {
		display: none;
	}

	.ebc-lesson-progresspct {
		font-size: 11.5px;
		background: hsla(calc(var(--ebc-p, 0) * 1.2 + 8), 72%, 38%, 0.95);
		border: 1px solid rgba(255, 255, 255, 0.28);
		border-radius: 999px;
		padding: 4px 11px;
	}

	/* No course-complete button in the phone header (the sidebar has
	 * its own mobile-only Complete the Course button). */
	.ebc-lesson-coursebtns {
		display: none;
	}

	/* Breathing room between the pill and the burger. */
	.ebc-lesson-header .tutor-learning-header-toggle-mobile {
		margin-left: 10px;
	}

	/* Footer: 5% breathing room at the sides, clear gaps between buttons. */
	.tutor-learning-area-footer.ebc-lesson-footer {
		gap: 12px;
		padding-left: 5vw;
		padding-right: 5vw;
	}

	.ebc-lesson-nav-spacer {
		display: none;
	}

	.ebc-lesson-footer .ebc-lesson-completeform {
		flex: 1;
		min-width: 0;
		display: flex !important;
		justify-content: center !important;
	}

	button.ebc-lesson-complete {
		/* Tutor's own .tutor-mark-as-complete-button sets min-width:160px
		 * (desktop sizing) with no mobile override — the form around it
		 * shrinks to fit (flex:1, min-width:0 above), but the button
		 * itself couldn't shrink below that floor, so it overflowed its
		 * now-narrow form and sat on top of the neighbouring nav button.
		 * width:auto (not 100%): the form is centered, not stretched, so
		 * the button hugs its icon+text instead of spanning the whole
		 * middle gap. justify-content:center !important: Tutor's own
		 * class on this same element sets space-between, which pushes
		 * the icon and text to opposite edges once the button is wide. */
		min-width: 0;
		width: auto !important;
		justify-content: center !important;
		padding: 10px 16px;
		font-size: 13px;
	}

	/* Icon-only now (label hidden above) — a small square tap target
	 * instead of the wide text-button padding. !important: this exact
	 * footer row already fought a cascade-order surprise once (the
	 * complete button's min-width), so pin every sizing property rather
	 * than trust flex:none alone to win. */
	.ebc-lesson-nav-btn {
		display: inline-flex !important;
		flex: 0 0 auto !important;
		width: auto !important;
		max-width: none !important;
		padding: 10px !important;
	}

	.ebc-lesson-nav-label {
		display: none !important;
	}

	/* Sticky lesson video: pins right below the sticky header while the
	 * lesson text scrolls. The tab card's overflow:hidden would swallow
	 * position:sticky, so relax it here. */
	.tutor-lesson-content-tab {
		overflow: visible;
		border-radius: 0;
	}

	.tutor-lesson-video-wrapper {
		position: -webkit-sticky;
		position: sticky;
		top: 64px; /* fixed header height (Tutor's content offset) */
		z-index: 5;
		background: #000;
	}
}

/* --------------------------------------------------------------
 * Lesson room sidebar: from flat white to structured panels
 * -------------------------------------------------------------- */
.tutor-learning-sidebar {
	background: #f7f9fc !important;
	border-right: 1px solid rgba(0, 45, 116, 0.12) !important;
}

/* The header already shows completion progress — drop the sidebar's
 * duplicate "% Completed" card so the module list starts right away. */
.tutor-learning-sidebar .tutor-learning-progress {
	display: none !important;
}

.tutor-learning-sidebar .tutor-learning-sidebar-curriculum {
	padding-top: 6px;
}

/* Topic groups as cards */
.tutor-learning-sidebar .tutor-learning-nav {
	padding: 2px 12px 12px;
}

.tutor-learning-sidebar .tutor-learning-nav-topic {
	flex-shrink: 0; /* flex column must scroll, never squeeze the cards */
	background: #fff;
	border: 1px solid rgba(0, 45, 116, 0.12);
	border-radius: 12px;
	margin-bottom: 10px;
	overflow: hidden;
	transition: border-color 0.2s ease;
}

.tutor-learning-sidebar .tutor-learning-nav-topic.active,
.tutor-learning-sidebar .tutor-learning-nav-topic.expanded {
	border-color: rgba(2, 138, 242, 0.45);
}

.tutor-learning-sidebar .tutor-learning-nav-header {
	padding: 12px 14px;
	transition: background 0.15s ease;
}

.tutor-learning-sidebar .tutor-learning-nav-header:hover {
	background: rgba(2, 138, 242, 0.05);
}

.tutor-learning-sidebar .tutor-learning-nav-header-title {
	font-weight: 600;
	font-size: 13.5px;
}

.tutor-learning-sidebar .tutor-learning-nav-body {
	border-top: 1px solid rgba(0, 45, 116, 0.08);
	background: #fcfdff;
	padding: 6px;
}

/* Lesson rows */
.tutor-learning-sidebar .tutor-learning-nav-item {
	border-radius: 10px;
	margin: 2px 0;
	transition: background 0.15s ease;
}

.tutor-learning-sidebar .tutor-learning-nav-item:hover {
	background: rgba(2, 138, 242, 0.06);
}

.tutor-learning-sidebar .tutor-learning-nav-item.active {
	background: rgba(2, 138, 242, 0.1);
	box-shadow: inset 3px 0 0 var(--edublink-color-secondary, #028AF2);
}

.tutor-learning-sidebar .tutor-learning-nav-item.active .tutor-truncate {
	color: var(--edublink-color-primary, #002D74);
	font-weight: 700;
}

/* Bottom pages strip */
.tutor-learning-sidebar .tutor-learning-sidebar-pages {
	border-top: 1px solid rgba(0, 45, 116, 0.12);
	background: #fff;
}

.tutor-learning-sidebar .tutor-learning-pages-item {
	border-radius: 10px;
	font-weight: 500;
}

.tutor-learning-sidebar .tutor-learning-pages-item.active {
	background: rgba(2, 138, 242, 0.1);
	color: var(--edublink-color-primary, #002D74);
}

/* The module list scrolls inside the fixed sidebar — make that obvious
 * with a clearly visible branded scrollbar (the near-invisible default
 * made modules below the fold look missing). */
.tutor-learning-sidebar .tutor-learning-nav {
	scrollbar-width: thin;
	scrollbar-color: rgba(0, 45, 116, 0.35) rgba(0, 45, 116, 0.06);
	padding-right: 8px;
}

.tutor-learning-sidebar .tutor-learning-nav::-webkit-scrollbar {
	width: 8px;
}

.tutor-learning-sidebar .tutor-learning-nav::-webkit-scrollbar-track {
	background: rgba(0, 45, 116, 0.06);
	border-radius: 999px;
}

.tutor-learning-sidebar .tutor-learning-nav::-webkit-scrollbar-thumb {
	background: rgba(0, 45, 116, 0.35);
	border-radius: 999px;
}

.tutor-learning-sidebar .tutor-learning-nav::-webkit-scrollbar-thumb:hover {
	background: var(--edublink-color-secondary, #028AF2);
}

/* Packages have no direct lessons — a "0/0 · 0% Complete" progress widget
 * is noise there. Course pages keep theirs. */
body.single-course-bundle .tutor-course-progress-wrapper {
	display: none !important;
}

/* Breathing room between the progress widget and the Complete button. */
.tutor-course-progress-wrapper {
	margin-bottom: 18px;
}

/* --------------------------------------------------------------
 * Custom sort dropdown (replaces the unstylable native select)
 * -------------------------------------------------------------- */
.edu-course-sorting.ebc-sort-native-hidden {
	display: none !important;
}

.ebc-sort {
	position: relative;
	flex: none;
}

.ebc-sort-btn {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	background: #fff;
	border: 1px solid rgba(0, 45, 116, 0.16);
	border-radius: 999px;
	padding: 10px 18px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--edublink-color-heading, #181818);
	cursor: pointer;
	transition: border-color 0.2s ease;
}

.ebc-sort-btn:hover {
	border-color: var(--edublink-color-secondary, #028AF2);
}

.ebc-sort-btn > i:first-child {
	color: var(--edublink-color-secondary, #028AF2);
	font-size: 16px;
}

.ebc-sort-caret {
	transition: transform 0.2s ease;
	color: #787c82;
}

.ebc-sort.is-open .ebc-sort-caret {
	transform: rotate(180deg);
}

.ebc-sort-menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	min-width: 200px;
	background: #fff;
	border: 1px solid rgba(0, 45, 116, 0.14);
	border-radius: 12px;
	box-shadow: 0 18px 40px rgba(7, 16, 34, 0.14);
	list-style: none;
	margin: 0;
	padding: 6px;
	z-index: 40;
	display: none;
}

.ebc-sort.is-open .ebc-sort-menu {
	display: block;
}

.ebc-sort-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 9px 12px;
	border-radius: 8px;
	font-size: 13.5px;
	cursor: pointer;
	transition: background 0.15s ease;
}

.ebc-sort-item:hover {
	background: rgba(2, 138, 242, 0.07);
}

.ebc-sort-item i {
	visibility: hidden;
	color: var(--edublink-color-secondary, #028AF2);
	font-size: 16px;
}

.ebc-sort-item.is-active {
	color: var(--edublink-color-primary, #002D74);
	font-weight: 700;
}

.ebc-sort-item.is-active i {
	visibility: visible;
}

@media (max-width: 767px) {
	.ebc-sort,
	.ebc-sort-btn {
		width: 100%;
	}

	.ebc-sort-btn {
		justify-content: flex-start;
	}

	.ebc-sort-btn .ebc-sort-caret {
		margin-left: auto;
	}

	.ebc-sort-menu {
		left: 0;
		right: 0;
	}
}

/* Desktop: the sidebar's "Filter Sidebar" toggle row served the old
 * layout — with the hero search gone it just leaves a hole above the
 * Categories widget. */
@media (min-width: 768px) {
	.edublink-course-filter-sidebar .eb-course-filter-toggle {
		display: none !important;
	}
}

/* --------------------------------------------------------------
 * Standalone auth shell (login / register / password pages —
 * no theme header or footer; see templates/auth-shell.php)
 * -------------------------------------------------------------- */
body.ebc-authshell-body {
	margin: 0;
	min-height: 100vh;
	min-height: 100dvh;
	background:
		radial-gradient(60% 50% at 100% 0%, rgba(2, 138, 242, 0.08), transparent 60%),
		radial-gradient(50% 40% at 0% 100%, rgba(0, 45, 116, 0.08), transparent 60%),
		#f4f7fb;
}

.ebc-authshell {
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 40px 18px 26px;
	box-sizing: border-box;
}

body.admin-bar .ebc-authshell {
	min-height: calc(100vh - 32px);
	min-height: calc(100dvh - 32px);
}

.ebc-authshell-card {
	display: flex;
	width: 100%;
	max-width: 880px;
	background: #fff;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 24px 70px rgba(7, 16, 34, 0.14);
}

.ebc-authshell-card--wide {
	max-width: 1040px;
}

.ebc-authshell-brand {
	flex: 0 0 320px;
	background: linear-gradient(160deg, var(--edublink-color-primary, #002D74) 0%, #071022 100%);
	color: #fff;
	padding: 40px 34px;
	display: flex;
	flex-direction: column;
}

.ebc-authshell-logo {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
}

.ebc-authshell-mark {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 2px solid #fff;
	color: #fff;
	font-family: 'Times New Roman', Times, serif;
	font-weight: bold;
	font-size: 17px;
	letter-spacing: 1px;
}

.ebc-authshell-logotext {
	color: #fff;
	font-family: 'Times New Roman', Times, serif;
	font-size: 13.5px;
	letter-spacing: 0.6px;
	line-height: 1.4;
	white-space: nowrap;
}

.ebc-authshell-logotext em {
	font-style: italic;
	text-transform: lowercase;
}

.ebc-authshell-tagline {
	margin: 28px 0 0;
	font-size: 12.5px;
	text-transform: uppercase;
	letter-spacing: 1.2px;
	color: rgba(255, 255, 255, 0.6);
}

.ebc-authshell-points {
	list-style: none;
	margin: 16px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.ebc-authshell-points li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.85);
	line-height: 1.5;
}

.ebc-authshell-points i {
	color: #3EE6A4;
	font-size: 18px;
	flex: none;
}

.ebc-authshell-main {
	flex: 1;
	min-width: 0;
	padding: 40px 44px 30px;
}

.ebc-authshell-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: rgba(2, 138, 242, 0.1);
	color: var(--edublink-color-secondary, #028AF2);
	font-size: 26px;
	margin-bottom: 14px;
}

.ebc-authshell-title {
	margin: 0 0 6px;
	font-size: 26px;
	color: var(--edublink-color-heading, #181818);
}

.ebc-authshell-sub {
	margin: 0 0 22px;
	color: var(--edublink-color-body, #6f6f6f);
	font-size: 14.5px;
}

.ebc-authshell-back {
	margin: 22px 0 0;
	font-size: 13.5px;
}

.ebc-authshell-back a {
	color: var(--edublink-color-body, #6f6f6f);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.ebc-authshell-back a:hover {
	color: var(--edublink-color-secondary, #028AF2);
}

.ebc-authshell-foot {
	margin: 22px 0 0;
	font-size: 12.5px;
	color: #8a8f98;
	text-align: center;
}

/* Desktop: the screen never scrolls — the whole layout fits one viewport
 * and only the form column scrolls internally when it's tall (register). */
@media (min-width: 861px) {
	body.ebc-authshell-body {
		height: 100vh;
		overflow: hidden;
	}

	.ebc-authshell {
		height: 100vh;
		min-height: 0;
		padding: 28px 18px 16px;
	}

	body.admin-bar.ebc-authshell-body {
		height: calc(100vh - 32px);
	}

	body.admin-bar .ebc-authshell {
		height: calc(100vh - 32px);
	}

	.ebc-authshell-card {
		min-height: 0;
		max-height: calc(100% - 44px); /* keep the copyright line visible */
	}

	.ebc-authshell-main {
		overflow-y: auto;
		overscroll-behavior: contain;
		scrollbar-width: thin;
		scrollbar-color: rgba(0, 45, 116, 0.3) rgba(0, 45, 116, 0.05);
		/* Persistent breathing room while scrolling: borders don't scroll
		 * away like padding does, so content never touches the card edges. */
		padding-top: 8px;
		padding-bottom: 8px;
		border-top: 32px solid transparent;
		border-bottom: 26px solid transparent;
	}

	.ebc-authshell-main::-webkit-scrollbar {
		width: 8px;
	}

	.ebc-authshell-main::-webkit-scrollbar-track {
		background: rgba(0, 45, 116, 0.05);
	}

	.ebc-authshell-main::-webkit-scrollbar-thumb {
		background: rgba(0, 45, 116, 0.3);
		border-radius: 999px;
	}

	.ebc-authshell-foot {
		flex: none;
	}
}

@media (max-width: 860px) {
	.ebc-authshell {
		padding: 24px 14px 20px;
	}

	.ebc-authshell-card {
		flex-direction: column;
		max-width: 560px;
	}

	.ebc-authshell-card--wide {
		max-width: 560px;
	}

	.ebc-authshell-brand {
		flex: none;
		padding: 22px 24px;
	}

	.ebc-authshell-tagline,
	.ebc-authshell-points {
		display: none;
	}

	.ebc-authshell-main {
		padding: 26px 24px 22px;
	}

	.ebc-authshell-title {
		font-size: 22px;
	}
}

/* The plugin form's built-in instruction line repeats the shell's own
 * subtitle ("Enter your username or email…") — drop it. */
.ebc-auth-form .event_auth_forgot_password_message {
	display: none;
}

/* Auth-shell flow notices (lost/reset password feedback) */
.ebc-authshell-notice {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	background: rgba(62, 230, 164, 0.12);
	border: 1px solid rgba(0, 99, 31, 0.3);
	color: #00631f;
	border-radius: 10px;
	padding: 12px 14px;
	font-size: 14px;
	line-height: 1.55;
	margin: 0 0 18px;
}

.ebc-authshell-notice i {
	font-size: 18px;
	flex: none;
}

.ebc-authshell-notice.is-error {
	background: rgba(179, 45, 46, 0.07);
	border-color: rgba(179, 45, 46, 0.35);
	color: #b32d2e;
}

/* --------------------------------------------------------------
 * Quiz rules: grade pills + no-retake-after-pass
 * -------------------------------------------------------------- */
.ebc-grade-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 800;
	background: #f0f0f1;
	color: #50575e;
}

.ebc-grade-pill[data-grade="A++"],
.ebc-grade-pill[data-grade="A"] {
	background: rgba(62, 230, 164, 0.18);
	color: #00631f;
}

.ebc-grade-pill[data-grade="B"] {
	background: rgba(2, 138, 242, 0.14);
	color: #0264ae;
}

.ebc-grade-pill[data-grade="C"] {
	background: rgba(248, 148, 31, 0.16);
	color: #995a09;
}

.ebc-grade-pill[data-grade="D"] {
	background: rgba(248, 148, 31, 0.24);
	color: #8a4a00;
}

.ebc-grade-pill[data-grade="F"] {
	background: rgba(179, 45, 46, 0.12);
	color: #b32d2e;
}

/* Once passed, the start/retake controls disappear (server-side gate in
 * includes/quiz-rules.php is the real enforcement). */
body.ebc-quiz-passed form:has(input[value="tutor_start_quiz"]),
body.ebc-quiz-passed [data-tutor-modal-target^="tutor-quiz-retry-modal"],
body.ebc-quiz-passed [id^="tutor-quiz-retry-modal"] {
	display: none !important;
}

/* Module-locked banner (strict-mode gating) */
.ebc-module-locked-note {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: #fcf5e8;
	border-bottom: 1px solid rgba(153, 104, 0, 0.35);
	color: #8a5a00;
	font-size: 14px;
	font-weight: 600;
	padding: 11px 16px;
	text-align: center;
}

.ebc-module-locked-note i {
	font-size: 17px;
}

/* Lesson video end-cover (hides YouTube's related-videos wall) */
.ebc-video-endcover {
	position: absolute;
	inset: 0;
	z-index: 20;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	text-align: center;
	padding: 20px;
	background: linear-gradient(160deg, var(--edublink-color-primary, #002D74) 0%, #071022 100%);
	color: #fff;
}

.ebc-video-endcover-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border: 2px solid #fff;
	font-family: 'Times New Roman', Times, serif;
	font-weight: bold;
	font-size: 16px;
	letter-spacing: 1px;
	margin-bottom: 4px;
}

.ebc-video-endcover strong {
	font-size: 22px;
}

.ebc-video-endcover-sub {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.75);
	max-width: 420px;
}

.ebc-video-endcover-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	justify-content: center;
	margin-top: 10px;
}

.ebc-video-endcover-again,
.ebc-video-endcover-next {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border-radius: 999px;
	padding: 11px 22px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
}

.ebc-video-endcover-again {
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.35);
	color: #fff;
}

.ebc-video-endcover-again:hover {
	background: rgba(255, 255, 255, 0.22);
}

.ebc-video-endcover-next {
	background: var(--edublink-color-secondary, #028AF2);
	border: 1px solid var(--edublink-color-secondary, #028AF2);
	color: #fff;
	text-decoration: none;
}

.ebc-video-endcover-next:hover {
	background: #3EE6A4;
	border-color: #3EE6A4;
	color: #071022;
}

@media (max-width: 600px) {
	.ebc-video-endcover strong { font-size: 17px; }
	.ebc-video-endcover-sub { font-size: 12.5px; }
	.ebc-video-endcover-mark { width: 38px; height: 38px; font-size: 13px; }
	.ebc-video-endcover-again, .ebc-video-endcover-next { padding: 9px 16px; font-size: 13px; }
}

/* --------------------------------------------------------------
 * Hidden curriculum — Coursera-style module summary cards
 * -------------------------------------------------------------- */
.ebc-modsum {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.ebc-modsum-card {
	border: 1px solid rgba(0, 45, 116, 0.14);
	border-radius: 14px;
	padding: 22px 24px;
	background: #fff;
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.ebc-modsum-card:hover {
	border-color: rgba(2, 138, 242, 0.4);
	box-shadow: 0 8px 26px rgba(7, 16, 34, 0.06);
}

.ebc-modsum-head {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--edublink-color-body, #6f6f6f);
	margin-bottom: 4px;
}

.ebc-modsum-num {
	font-weight: 600;
	color: var(--edublink-color-primary, #002D74);
}

.ebc-modsum-dot {
	color: #c3c9d2;
}

.ebc-modsum-title {
	margin: 0 0 8px;
	font-size: 18px;
	color: var(--edublink-color-heading, #181818);
}

.ebc-modsum-desc {
	margin: 0 0 16px;
	font-size: 14.5px;
	line-height: 1.65;
	color: var(--edublink-color-body, #5c626b);
}

.ebc-modsum-included-label {
	display: block;
	font-size: 13px;
	font-weight: 700;
	color: var(--edublink-color-heading, #181818);
	margin-bottom: 8px;
}

.ebc-modsum-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 20px;
}

.ebc-modsum-chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 13.5px;
	color: var(--edublink-color-body, #5c626b);
}

.ebc-modsum-chip i {
	font-size: 17px;
	color: var(--edublink-color-primary, #002D74);
}

/*
 * Course-detail lists (What you'll learn / Requirements / Audience / Materials)
 * already get the theme's check mark via `li:after`. Tutor's markup also prints
 * an inline bullet dot (.tutor-icon-bullet-point) before Requirements items, so
 * they show a check AND a dot. The theme only hides that dot inside the tabbed
 * (.eb-tl-course-tabs) layout; on the .eb-tl-course-main-content layout it leaks
 * through. Hide it everywhere so only the check remains.
 */
.tutor-course-details-widget-list .tutor-icon-bullet-point {
	display: none;
}

/* ---- Start Learning band (widget ff72347, homepage) ---- */
/* No "All" tab: the first category tab is auto-activated on load (small
 * footer script in includes/start-learning.php). */
#edublink-filterable-course-id-ff72347 .filter-item[data-filter="*"] {
	display: none;
}

/* Equal card heights: thumbs are uniform 590x430 crops, so the only height
 * variance is the title wrapping to 1 vs 2 lines - reserve exactly two lines
 * and clamp longer titles. aspect-ratio guards any future odd thumbnail. */
#edublink-filterable-course-id-ff72347 .edublink-single-course .thumbnail .course-thumb img {
	aspect-ratio: 590 / 430;
	object-fit: cover;
}

#edublink-filterable-course-id-ff72347 .edublink-single-course .content h6.title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.8em;
	line-height: 1.4;
}

/* ---- Homepage course grids on mobile: swipe sideways instead of a long
 * vertical stack (Start Learning band ff72347 + Insight Workshop grid
 * ebchcba). Both run Isotope masonry, which absolutely-positions cards
 * inline — the !important overrides below force them back into normal
 * flex flow so the row can scroll horizontally. Cards are full-width
 * (one per view, like the by-field slider sections elsewhere on this
 * page) and auto-advance via frontend.js; the native scrollbar is
 * hidden since Swiper-style carousels elsewhere don't show one either. */
@media only screen and (max-width: 767px) {
	#edublink-filterable-course-id-ff72347 .eb-tutor-archive-courses,
	#edublink-filterable-course-id-ebchcba .eb-tutor-archive-courses {
		display: flex !important;
		flex-wrap: nowrap !important;
		overflow-x: auto !important;
		overflow-y: visible !important;
		height: auto !important;
		gap: 14px;
		padding-bottom: 0;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none; /* Firefox */
		-ms-overflow-style: none; /* legacy Edge */
	}

	#edublink-filterable-course-id-ff72347 .eb-tutor-archive-courses::-webkit-scrollbar,
	#edublink-filterable-course-id-ebchcba .eb-tutor-archive-courses::-webkit-scrollbar {
		display: none; /* Chrome/Safari/new Edge */
	}

	#edublink-filterable-course-id-ff72347 .eb-tutor-archive-courses > [class*="edublink-col-"],
	#edublink-filterable-course-id-ebchcba .eb-tutor-archive-courses > [class*="edublink-col-"] {
		position: static !important;
		transform: none !important;
		left: auto !important;
		top: auto !important;
		flex: 0 0 100% !important;
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 !important;
		scroll-snap-align: start;
	}
}

