/* =========================================================================
   Tutorial Center — dedicated styles (isolated from the rest of the theme)
   Mobile-first. Breakpoints reused from the project: 1180 / 900 / 600 / 420.
   ========================================================================= */

.qb-tut {
	--qb-tut-blue: #2563eb;
	--qb-tut-blue-dark: #1d4ed8;
	--qb-tut-ink: #0f1b3d;
	--qb-tut-muted: #5b6477;
	--qb-tut-line: #e4e8f0;
	--qb-tut-bg: #f6f8fc;
	color: var(--qb-tut-ink);
}

.qb-tut .wrap {
	margin: 0 auto;
    padding-top: 90px;
}
.post-type-archive-tutorial section {
	position: relative;
	top: -36px;
}
.post-type-archive-tutorial header {
	margin-bottom: 0;
}
/* ----- Hero ------------------------------------------------------------- */
.single-tutorial header {
	    margin-bottom: 0;
}
.qb-tut-hero {
	padding: 90px 0 24px; 
	background: linear-gradient(174deg, #090038 4.64%, #424096 97.27%);
    position: relative;
	color: #fff;
	text-align: center;
}
.qb-tut-hero__title {
	font-size: 40px;
	line-height: normal;
	padding: 20px 0;
}
.qb-tut-hero__title span {
	color: #FFA500;
}
.qb-tut-hero p {
	font-size: 20px;
	line-height: normal;
	margin: 0 auto;
	width: 60%;
}
.qb-tut-hero p.qb-tut-hero__subtitle {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	flex-direction: row;
	font-size: 16px;
	border-radius: 24px;
    background: #1E1366;
	width: 300px;
	padding-top: 10px;
	padding-bottom: 10px;
}
/* ----- Layout ----------------------------------------------------------- */

.qb-tut-layout {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

/* ----- Sidebar / filters ------------------------------------------------ */
.qb-tut-sidebar {
	flex: 0 0 auto;
}

.qb-tut-filters {
	border: 1px solid var(--qb-tut-line);
	border-radius: 14px;
	padding: 20px;
	background: #fff;
}

.qb-tut-filters__group {
	border: 0;
	margin: 0 0 22px;
	padding: 0;
}

.qb-tut-filters__group:last-child {
	margin-bottom: 0;
}

.qb-tut-filters__legend {
	font-size: 18px;
	font-weight: 600;
	color: #6B7080;
	margin-bottom: 12px;
	padding: 0;
	text-align: left;
}

.qb-tut-filters__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.qb-tut-filters__item {
	margin: 0 0 10px;
}

.qb-tut-filters__item label {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 16px;
	color: #000;
	cursor: pointer;
}

.qb-tut-filters__item input {
	width: 16px;
	height: 16px;
	accent-color: var(--qb-tut-blue);
	cursor: pointer;
}

/* ----- Search ----------------------------------------------------------- */
.qb-tut-search {
	margin-bottom: 24px;
}

.qb-tut-search__input {
	width: 92%;
	border: none;
	outline: none;
	border-radius: 4px;
	padding: 10px 18px;
	font-size: 16px;
	background: url("../img/tutorial-search-ico.png") no-repeat 16px center;
	background-size: 18px 18px;
	padding-left: 46px;
	background-color: #F5F8FF;
	color: #000;
}

.qb-tut-search__input:focus {
	outline: none;
	border-color: var(--qb-tut-blue);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

/* ----- Results / grid --------------------------------------------------- */
.qb-tut-results {
	position: relative;
}

.qb-tut-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
}

.qb-tut-empty {
	grid-column: 1 / -1;
	padding: 40px 0;
	text-align: center;
	color: var(--qb-tut-muted);
	font-size: 16px;
}

/* ----- Card ------------------------------------------------------------- */
.qb-tut-card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--qb-tut-line);
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
	transition: box-shadow .2s ease, transform .2s ease;
}

.qb-tut-card:hover {
	box-shadow: 0 12px 30px rgba(15, 27, 61, .1);
	transform: translateY(-2px);
}

.qb-tut-card__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	background: var(--qb-tut-bg);
	overflow: hidden;
}

.qb-tut-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.qb-tut-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(174deg, #090038 4.64%, #424096 97.27%);
}

.qb-tut-card__type,
.qb-tut-card__platform {
	position: absolute;
	top: 12px;
	font-size: 12px;
	font-weight: 600;
	padding: 5px 10px;
	border-radius: 6px;
	line-height: 1;
}

.qb-tut-card__type {
	left: 16px;
	background: var(--qb-tut-blue);
	color: #fff;
}

.qb-tut-card__platform {
	top: auto;
	right: auto;
	bottom: 12px;
	left: 16px;
	border-radius: 24px;
	background: rgba(0, 0, 0, 0.1);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
	color: #fff;
	padding: 8px 14px;
	border: 1px solid #fff;
	font-weight: 400;
	font-size: 12px;
}

/* Content type badges: Tutorial / Explainer have distinct looks + icons */
.qb-tut-card__type--tutorials,
.qb-tut-card__type--explainers {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 400;
	font-style: normal;
	line-height: normal;
	border-radius: 24px;
}

.qb-tut-card__type--tutorials::before,
.qb-tut-card__type--explainers::before {
	content: "";
	flex: 0 0 auto;
	width: 12px;
	height: 12px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}

.qb-tut-card__type--tutorials {
	color: #fff;
	border: 1px solid #fff;
	background: #0A6BD3;
}

.qb-tut-card__type--tutorials::before {
	background-image: url("../img/tutorial-label-ico.png");
}

.qb-tut-card__type--explainers {
	color: #090038;
	background: #FFA500;
	border: 1px solid #fff;
}

.qb-tut-card__type--explainers::before {
	background-image: url("../img/explainer-label-ico.png");
}

.qb-tut-card__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 16px;
	flex: 1 1 auto;
	text-align: left;
}

.qb-tut-card__topic {
	font-size: 14px;
	font-weight: 600;
	line-height: normal;
	text-transform: uppercase;
	color: #3978FC;
}

.qb-tut-card__title {
	font-size: 18px;
	line-height: normal;
	margin: 0;
	color: #0F172A;
	font-weight: 600;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-align: left;
}

.qb-tut-card__title a {
	color: var(--qb-tut-ink);
	text-decoration: none;
}

.qb-tut-card__title a:hover {
	color: var(--qb-tut-blue);
}

.qb-tut-card__excerpt {
	margin: 0;
	font-size: 14px;
	line-height: normal;
	color: #090038;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-weight: 400;
	padding-bottom: 20px;
	margin-bottom: 20px;
}

.qb-tut-card__meta {
	position: relative;
	padding-top: 10px;
	font-size: 10px;
	color: #090038;
	width: 100%;
	border-top: 1px solid #ddd;
	margin-top: auto;
	background: url("../img/ico-calendar.png") no-repeat left calc(50% + 5px);
	background-size: 10px 10px;
	padding-left: 20px;
}

/* ----- Pagination ------------------------------------------------------- */
.qb-tut-pagination-wrap {
	margin-top: 36px;
}

.qb-tut-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.qb-tut-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	border-radius: 8px;
	background: #fff;
	color: #4B5466;
	font-size: 18px;
	text-decoration: none;
	cursor: pointer;
}

.qb-tut-pagination a.page-numbers:hover {
	background: #3978FC;
	color: #fff;
}

.qb-tut-pagination .page-numbers.current {
	background: #3978FC;
	color: #fff;
}

.qb-tut-pagination .page-numbers.dots {
	border: 0;
	background: transparent;
}
.qb-tut-pagination .page-numbers.next,
.qb-tut-pagination .page-numbers.prev {
	font-size: 30px;
}
.qb-tut-pagination .page-numbers.next:hover,
.qb-tut-pagination .page-numbers.prev:hover {
	background: #fff;
	color: #4B5466;
	opacity: 0.8;
}
/* ----- Loader ----------------------------------------------------------- */
.qb-tut-loader {
	position: absolute;
	inset: 0;
	display: none;
	align-items: flex-start;
	justify-content: center;
	padding-top: 80px;
	background: rgba(255, 255, 255, .65);
	border-radius: 14px;
}

.qb-tut-results.is-loading .qb-tut-loader {
	display: flex;
}

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

/* ----- Recommended for you --------------------------------------------- */
.qb-tut-recommended {
	padding: 8px 0 72px;
}
.qb-tut-recommended .wrap {
	padding: 0;
}
.qb-tut-recommended__title {
	font-size: 44px;
	color:#090038;
	padding-top: 0;
	padding-bottom: 20px;
}

.qb-tut-recommended__subtitle {
	font-size: 20px;
	color: #000;
	padding-bottom: 50px;
}

.qb-tut-recommended__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
}

.qb-tut-rec-card {
	border-radius: 16px;
	overflow: hidden;
	background: #090038;
	text-align: left;
}

.qb-tut-rec-card__inner {
	display: flex;
	flex-direction: column;
	padding: 28px;
	color: #fff;
	height: 100%;
}

.qb-tut-rec-card__top {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 18px;
	flex-wrap: wrap;
}

.qb-tut-rec-card__badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 16px;
	font-weight: 400;
	padding: 5px 20px;
	color: #1E3A8A;
	border-radius: 24px;
	border: 1px solid #1E3A8A;
	background: #E4EBFF;
}

.qb-tut-rec-card__badge::before {
	content: "";
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	background-image: url("../img/ico-featured-tutorial.png");
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}

.qb-tut-rec-card__topic {
	font-size: 16px;
	font-weight: 400;
	padding: 5px 15px;
	border-radius: 24px;
	background: inherit;
	color: #F6F5FF;
	border: 1px solid #1E3A8A;
}

.qb-tut-rec-card__title {
	font-size: 24px;
	font-weight: 600;
	line-height: normal;
	color: #fff;
	text-align: left;
	padding-bottom: 20px;
}

.qb-tut-rec-card__excerpt {
	font-size: 16px;
	line-height: 1.55;
	color: #F5F3F3;
	padding-bottom: 20px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	flex: 1 1 auto;
}
.qb-tut-rec-card__footer {
	position: relative;
	top: -56px;
}
.qb-tut-rec-card__author {
	display: flex;
	align-items: center;
	gap: 10px;
}

.qb-tut-rec-card__avatar img,
.qb-tut-rec-card__author img {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}
.qb-tut-rec-card__author-info {
	display: flex;
	flex-direction: column;
	gap: 0px;
}
.qb-tut-rec-card__author-name {
	font-size: 16px;
	color: #fff;
}
.qb-tut-rec-card__author-date {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	color: #F5F3F3;
}

.qb-tut-rec-card__author-date::before {
	content: "";
	flex: 0 0 auto;
	width: 10px;
	height: 10px;
	background-image: url("../img/ico-date-recomended.png");
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}
.qb-tut-rec-card__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	align-self: flex-start;
	margin-top: 20px;
	padding: 10px 22px;
	color: #fff;
	font-size: 16px;
	font-weight: 400;
	text-decoration: none;
	border-radius: 4px;
	background: #0EA5E9;
}

.qb-tut-rec-card__btn::after {
	content: "";
	flex: 0 0 auto;
	width: 14px;
	height: 14px;
	background-image: url("../img/ico-err-tutorial.png");
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}
.qb-tut-rec-card__btn:hover {
	background: var(--qb-tut-blue-dark);
}

/* ----- Single tutorial -------------------------------------------------- */
.qb-tut-single {
	--qb-tut-blue: #2563eb;
	--qb-tut-ink: #0f1b3d;
	--qb-tut-muted: #5b6477;
	color: var(--qb-tut-ink);
	padding: 0;
	position: relative;
	top: -36px
}

.qb-tut-single .wrap {
	max-width: 820px;
	margin: 0 auto;
	padding-left: 20px;
	padding-right: 20px;
}

.qb-tut-single__terms {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 16px;
}

.qb-tut-single__type,
.qb-tut-single__platform,
.qb-tut-single__topic {
	font-size: 12px;
	font-weight: 600;
	padding: 5px 10px;
	border-radius: 6px;
}

.qb-tut-single__type {
	background: var(--qb-tut-blue);
	color: #fff;
}

.qb-tut-single__platform {
	background: #0f1b3d;
	color: #fff;
}

.qb-tut-single__topic {
	background: #eef2fb;
	color: var(--qb-tut-blue);
}

.qb-tut-single__title {
	font-size: 36px;
	line-height: 1.2;
	margin: 0 0 12px;
}

.qb-tut-single__date {
	font-size: 14px;
	color: var(--qb-tut-muted);
	margin: 0 0 28px;
}

.qb-tut-single__media {
	margin-bottom: 28px;
}

.qb-tut-single__media img {
	width: 100%;
	height: auto;
	border-radius: 14px;
	display: block;
}

.qb-tut-single__content {
	font-size: 16px;
	line-height: normal;
}
.qb-tut-single__content p {
	padding-bottom: 20px;
	font-weight: 16px;
}
.single .qb-tut-single__content ul {
	list-style: disc;
	padding-left: 20px;
	margin-bottom: 16px;
}
.single .qb-tut-single__content ul li {
	list-style: disc;
	padding-bottom: 20px;
}
.single .qb-tut-single__content ul li p {
	padding: 0;
}
.qb-tut-single__container h2 {
	font-size: 24px;
}
.qb-tut-single__content img {
	max-width: 100%;
	height: auto;
}
.qb-tut-single__content .article-lead {
	position: relative;
	padding: 16px 20px;
	padding-left: 52px;
	margin: 0 0 20px;
}
.qb-tut-single__content .article-lead::before {
	content: '';
	position: absolute;
	left: 20px;
	top: 22px;
	width: 20px;
	height: 20px;
	background-image: url('../img/sum-img.png');
	background-size: 20px 20px;
	background-repeat: no-repeat;
	background-position: center;
}
.qb-tut-single__content .article-lead.article-lead--yellow {
	border-radius: 8px;
	border-left: 4px solid #FFA500;
	background: #FFFAF1;
}
.qb-tut-single__content .article-lead.article-lead--blue {
	border-radius: 8px;
	border-left: 4px solid #3978FC;
	background: #ECF2FF;
}
.single strong {
	font-weight: bold;
}
.qb-tut-single__back {
	margin-top: 40px;
}

.qb-tut-single__back a {
	color: var(--qb-tut-blue);
	text-decoration: none;
	font-weight: 600;
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (min-width: 601px) {
	.qb-tut-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.qb-tut-recommended__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 901px) {
	.qb-tut-layout {
		flex-direction: row;
		align-items: flex-start;
	}

	.qb-tut-sidebar {
		flex: 0 0 260px;
		width: 260px;
		position: sticky;
		top: 100px;
	}

	.qb-tut-content {
		flex: 1 1 auto;
		min-width: 0;
	}

	.qb-tut-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 600px) {
	.qb-tut-hero__title {
		font-size: 30px;
	}

	.qb-tut-hero__subtitle {
		font-size: 16px;
	}

	.qb-tut-recommended__title {
		font-size: 26px;
	}

	.qb-tut-single__title {
		font-size: 28px;
	}
}

@media (max-width: 420px) {
	.qb-tut .wrap {
		padding-left: 16px;
		padding-right: 16px;
	}

	.qb-tut-filters {
		padding: 16px;
	}
}

/* =========================================================================
   Single tutorial v2 — breadcrumbs, sidebar (TOC + related), byline, FAQ
   ========================================================================= */
.qb-tut-single__container {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 20px;
	text-align: left;
}
.qb-tut-single__container em {
	font-style: italic;
}
.qb-tut-single__container h1,
.qb-tut-single__container h2,
.qb-tut-single__container h3,
.qb-tut-single__container h4 {
	text-align: left;
	color: #090038;
	padding-top: 0;
	padding-bottom: 20px;
}
.qb-tut-single__container h3 {
	font-weight: 600;
	font-size: 20px;
}
.qb-tut-breadcrumbs {
	display: flex;
	justify-content: center;
	font-size: 14px;
	color: #4B5466;
	position: relative;
	width: 100%;
	background-color: #ECF2FF;
	padding: 0;
	margin: 0;
	margin-bottom: 90px;
}
.qb-tut-single .qb-tut-breadcrumbs .wrap {
	max-width: 1180px;
	width: 100%;
	margin: 0;
	padding-top: 14px;
	padding-bottom: 14px;
	padding-left: 20px;
	padding-right: 20px;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
}

.qb-tut-breadcrumbs__link {
	color: var(--qb-tut-muted);
	text-decoration: none;
}

.qb-tut-breadcrumbs__link:hover {
	color: var(--qb-tut-blue);
}

.qb-tut-breadcrumbs__sep {
	color: #b6bdca;
}

.qb-tut-breadcrumbs__current {
	color: #3978FC;
}

.qb-tut-single__layout {
	display: flex;
	flex-direction: column;
	gap: 32px;
}
.qb-tut-single__sidebar {
	order: 2;
}
.qb-tut-single__sidebar h2 {
	font-size: 18px;
	margin: 0;
	border-bottom: 1px solid #DDD;
	padding-bottom: 10px;

}
.qb-tut-single__main {
	order: 1;
	min-width: 0;
}

.qb-tut-single__header {
	margin-bottom: 20px !important;
}

.qb-tut-single__header .qb-tut-single__type {
	display: inline-block;
	margin-bottom: 16px;
	background: #f1ecff;
	color: #9A68FF;
	border-radius: 4px;
	border: 1px solid #E1D1FF;
	background: #F5F0FF;
	padding: 2px 10px;
}

.qb-tut-single__byline {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 18px;
	border-bottom: 1px solid #DDD;
	padding-bottom: 20px;
}

.qb-tut-single__avatar img,
.qb-tut-single__avatar .avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}

.qb-tut-single__author {
	font-size: 16px;
	font-weight: 600;
	color: #090038;
}

.qb-tut-single__updated {
	margin-left: auto;
	font-size: 16px;
	font-weight: 400;
	color: #000;
}
.qb-tut-single__updated strong {
	font-weight: 600;
}
.qb-tut-single__main .qb-tut-single__media {
	margin: 0 0 28px;
}

.qb-tut-single__main .qb-tut-single__media img {
	width: 100%;
	max-width: 100% !important;
	height: auto;
	border-radius: 14px;
	display: block;
	margin: 0 !important;
}

.qb-tut-toc__title,
.qb-tut-related__title {
	font-size: 16px;
	font-weight: 700;
	color: var(--qb-tut-ink);
	margin: 0 0 14px;
}

.qb-tut-toc__list {
	list-style: none;
	margin: 0;
	padding: 0;
	margin-top: 20px;
}

.qb-tut-toc__item {
	margin-bottom: 12px;
}

.qb-tut-toc__link {
	display: block;
	font-size: 16px;
	line-height: normal;
	color: #4B5466;
	text-decoration: none;
}

.qb-tut-toc__link:hover {
	color: var(--qb-tut-blue);
}

.qb-tut-toc__link.is-active {
	color: var(--qb-tut-blue);
	font-weight: 600;
}

.qb-tut-related {
	margin-top: 32px;
}

.qb-tut-related__title {
	padding: 0;
}

.qb-tut-related__list {
	list-style: none;
	margin: 16px 0 0;
	padding: 0;
}

.qb-tut-related__item {
	margin-bottom: 16px;
	padding: 10px;
	border-radius: 8px;
    background: #F5F8FF;
}

.qb-tut-related__link {
	display: flex;
	gap: 12px;
	align-items: center;
	text-decoration: none;
}

.qb-tut-related__thumb {
	flex: 0 0 120px;
	width: 120px;
	height: 92px;
	border-radius: 8px;
	overflow: hidden;
	background: #eef2fb;
}

.qb-tut-related__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.qb-tut-related__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #dde6f7, #c7d6f2);
}

.qb-tut-related__text {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.qb-tut-related__name {
	font-size: 14px;
	font-weight: 600;
	color: #0F172A;
	line-height: normal;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	overflow: hidden;
}

.qb-tut-related__type {
	font-size: 12px;
	color: var(--qb-tut-muted);
}

.qb-tut-faq {
	margin-top: 48px;
	padding-top: 32px;
	border-top: 1px solid #e6e9f0;
}

.qb-tut-faq__title {
	font-size: 28px;
	margin: 40px 0 20px;
	color: var(--qb-tut-ink);
}

.qb-tut-faq__item {
	border-bottom: 1px solid #e6e9f0;
	padding: 0 18px;
	margin-bottom: 12px;
	background: #fff;
	padding-left: 0;
}

.qb-tut-faq__q {
	list-style: none;
	cursor: pointer;
	font-size: 17px;
	font-weight: 600;
	color: var(--qb-tut-ink);
	padding: 16px 30px 16px 0;
	position: relative;
}

.qb-tut-faq__q::-webkit-details-marker {
	display: none;
}

.qb-tut-faq__q::after {
	content: "";
	position: absolute;
	right: 0;
	top: 50%;
	width: 8px;
	height: 8px;
	border-right: 2px solid #6B7080;
	border-bottom: 2px solid #6B7080;
	transform: translateY(-50%) rotate(45deg);
	transition: transform .2s ease;
}

.qb-tut-faq__item[open] .qb-tut-faq__q::after {
	transform: translateY(-50%) rotate(-135deg);
}

.qb-tut-faq__a {
	padding: 0 0 18px;
	font-size: 15px;
	line-height: 1.7;
	color: var(--qb-tut-muted);
}

.qb-tut-faq__a p {
	margin: 0 0 12px;
}

.qb-tut-faq__a p:last-child {
	margin-bottom: 0;
}

@media (min-width: 901px) {
	.qb-tut-single__layout {
		flex-direction: row;
		align-items: flex-start;
		gap: 48px;
	}

	.qb-tut-single__sidebar {
		order: 0;
		flex: 0 0 280px;
		width: 280px;
		position: sticky;
		top: 100px;
	}

	.qb-tut-single__main {
		order: 1;
		flex: 1 1 auto;
	}
}

@media (max-width: 600px) {
	.qb-tut-faq__title {
		font-size: 22px;
	}
}

/* -------------------------------------------------------------------------
 * Inline code mention (single tutorial) — same text color as the paragraph,
 * highlighted with a light background.
 * ---------------------------------------------------------------------- */

.qb-tut-single__content code.qb-inline-code,
code.qb-inline-code {
	background: #ECF2FF;
	color: inherit;
	padding: 0.1em 0.4em;
	border-radius: 4px;
	line-height: inherit;
}

/* -------------------------------------------------------------------------
 * Copyable code block (single tutorial)
 * ---------------------------------------------------------------------- */

.qb-code-block {
	margin-bottom: 20px;
	border-radius: 12px;
	overflow: hidden;
	background: #21232b;
	border: 1px solid #2c2f3a;
	box-shadow: 0 12px 30px rgba(9, 0, 56, 0.10);
	font-family: 'SFMono-Regular', Menlo, Consolas, 'Liberation Mono', monospace;
}

.qb-code-block__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 10px 16px;
	background: #1a1c23;
	border-bottom: 1px solid #2c2f3a;
}

.qb-code-block__bar .qb-code-block__name {
	color: #c7ccd6;
	font-size: 13px;
	line-height: 1.4;
	word-break: break-all;
}

.qb-code-block__copy {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex: 0 0 auto;
	padding: 4px 10px;
	background: transparent;
	border: 1px solid transparent;
	border-radius: 6px;
	color: #aeb4c0;
	font-size: 13px;
	line-height: 1;
	cursor: pointer;
	transition: color 0.15s ease, background 0.15s ease;
}

.qb-code-block__copy::before {
	content: "";
	width: 14px;
	height: 14px;
	flex: 0 0 auto;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23aeb4c0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='13' height='13' rx='2'/%3E%3Cpath d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'/%3E%3C/svg%3E") no-repeat center / contain;
}

.qb-code-block__copy:hover {
	color: #ffffff;
	background: rgba(255, 255, 255, 0.08);
}

.qb-code-block__copy.is-copied {
	color: #6ee7a8;
}

.qb-code-block pre.qb-code-block__code {
	margin: 0;
	background: transparent;
	color: #d6dae4;
	font-family: inherit;
	font-size: 13.5px;
	line-height: 1.7;
	text-shadow: none;
	border: 0;
	border-radius: 0;
	overflow: auto;
}

/* When Prism is unavailable the plain <pre> still needs comfortable padding. */
.qb-code-block pre.qb-code-block__code:not([class*="language-"]) {
	padding: 16px 18px;
	white-space: pre;
}

.qb-code-block pre.qb-code-block__code code {
	font-family: inherit;
	color: inherit;
	text-shadow: none;
	background: none;
}

/* Prism padding (keep its line-number gutter intact: do not override padding-left). */
.qb-code-block pre.qb-code-block__code[class*="language-"] {
	padding-top: 16px;
	padding-right: 18px;
	padding-bottom: 16px;
}

/* Keep the code from wrapping word-by-word on the very first load, before the
   Prism CDN stylesheet is cached. Prism copies the `language-…` class onto the
   <pre>, which disables the `:not([class*="language-"])` white-space rule above,
   so we force `white-space: pre` here unconditionally (pre and code, with or
   without a language class). */
.qb-code-block pre.qb-code-block__code,
.qb-code-block pre.qb-code-block__code code,
.qb-code-block pre.qb-code-block__code[class*="language-"],
.qb-code-block pre.qb-code-block__code[class*="language-"] code {
	white-space: pre;
	word-break: normal;
	overflow-wrap: normal;
	tab-size: 4;
}

.qb-code-block pre.qb-code-block__code.line-numbers > .line-numbers-rows {
	border-right: 1px solid #2c2f3a;
}

.qb-code-block pre.qb-code-block__code.line-numbers > .line-numbers-rows > span::before {
	color: #565c6b;
}

/* Token palette — tuned to match the reference screenshot. */
.qb-code-block .token.comment,
.qb-code-block .token.prolog,
.qb-code-block .token.doctype,
.qb-code-block .token.cdata {
	color: #7c8495;
	font-style: italic;
}

.qb-code-block .token.punctuation {
	color: #b9c0cc;
}

.qb-code-block .token.keyword,
.qb-code-block .token.boolean,
.qb-code-block .token.atrule,
.qb-code-block .token.important,
.qb-code-block .token.rule {
	color: #c792ea;
}

.qb-code-block .token.operator,
.qb-code-block .token.entity,
.qb-code-block .token.url {
	color: #89ddff;
}

.qb-code-block .token.function,
.qb-code-block .token.class-name {
	color: #82aaff;
}

.qb-code-block .token.string,
.qb-code-block .token.char,
.qb-code-block .token.attr-value,
.qb-code-block .token.regex,
.qb-code-block .token.inserted {
	color: #ecc48d;
}

.qb-code-block .token.number,
.qb-code-block .token.constant,
.qb-code-block .token.symbol,
.qb-code-block .token.deleted {
	color: #f78c6c;
}

.qb-code-block .token.tag,
.qb-code-block .token.property {
	color: #82aaff;
}

.qb-code-block .token.variable,
.qb-code-block .token.attr-name {
	color: #d6dae4;
}

/* The theme forces some inline spans to block; keep Prism tokens inline so
   the code keeps its original single-line layout. */
.qb-code-block code[class*="language-"] .token,
.qb-code-block pre[class*="language-"] .token,
.qb-code-block .token {
	display: inline;
}
@media (max-width: 900px) {
	.qb-tut .wrap {
		padding-top: 40px;
	}
	.qb-tut-hero__title {
		font-size: 24px;
	}
	.qb-tut-filters {
		padding: 14px 16px;
	}
	.qb-tut-filters__group {
		margin: 0;
		border-bottom: 1px solid var(--qb-tut-line);
		padding: 10px 0;
	}
	.qb-tut-filters__group:last-child {
		border-bottom: 0;
		padding-bottom: 4px;
	}
	.qb-tut-filters__legend {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		margin: 0;
		padding: 0;
		cursor: pointer;
		font-size: 16px;
		color: #090038;
		padding-top: 10px;
	}
	.qb-tut-filters__legend::after {
		content: '';
		flex: 0 0 auto;
		width: 8px;
		height: 8px;
		border-right: 2px solid #6B7080;
		border-bottom: 2px solid #6B7080;
		transform: rotate(45deg);
		transition: transform .2s ease;
		margin-top: -2px;
	}
	.qb-tut-filters__group.is-open .qb-tut-filters__legend::after {
		transform: rotate(-135deg);
		margin-top: 4px;
	}
	.qb-tut-filters__list {
		display: none;
		padding-top: 10px;
	}
	.qb-tut-filters__group.is-open .qb-tut-filters__list {
		display: block;
	}
	.qb-tut-filters__item {
		margin-bottom: 8px;
	}
	.qb-tut-filters__item:last-child {
		margin-bottom: 0;
	}
	.qb-tut-recommended__title {
		font-size: 24px;
	}
	.qb-tut-toc {
		margin-bottom: 20px;
	}
	.qb-tut-toc__title {
		display: flex;
		align-items: center;
		justify-content: space-between;
		cursor: pointer;
		margin-bottom: 0;
		padding-bottom: 0;
		border-bottom: 0;
	}
	.qb-tut-toc__title::after {
		content: '';
		flex: 0 0 auto;
		width: 8px;
		height: 8px;
		border-right: 2px solid #6B7080;
		border-bottom: 2px solid #6B7080;
		transform: rotate(45deg);
		transition: transform .2s ease;
		margin-top: -2px;
	}
	.qb-tut-toc__list {
		display: none;
		margin-top: 12px;
	}
	.qb-tut-toc.is-open .qb-tut-toc__list {
		display: block;
	}
	.qb-tut-toc.is-open .qb-tut-toc__title::after {
		transform: rotate(-135deg);
		margin-top: 4px;
	}
	.qb-tut-recommended__subtitle {
		padding-bottom: 20px;
	}
	.qb-tut-recommended .wrap {
		padding-top: 0;
	}
	.qb-tut-recommended {
		padding-bottom: 0px;
	}
	.qb-tut-recommended__grid {
        grid-template-columns: 1fr;
    }
	.qb-tut-rec-card__title {
		font-size: 20px;
	}
	.qb-tut-breadcrumbs {
		margin-bottom: 40px;
	}

}
@media (max-width: 600px) {
	.qb-code-block pre.qb-code-block__code {
		font-size: 12.5px;
	}
}

/* Header nav fix (Tutorial Center only): keep Discord item in two lines. */
body.post-type-archive-tutorial .top_nav .nav_menu .developers_menu_container .sub_menu_container .menu li[data-title="QuickBlox Discord Community"],
body.single-tutorial .top_nav .nav_menu .developers_menu_container .sub_menu_container .menu li[data-title="QuickBlox Discord Community"] {
	line-height: normal;
}
body.post-type-archive-tutorial .top_nav .nav_menu .developers_menu_container .sub_menu_container .menu li[data-title="QuickBlox Discord Community"] a,
body.single-tutorial .top_nav .nav_menu .developers_menu_container .sub_menu_container .menu li[data-title="QuickBlox Discord Community"] a {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	top: 0 !important;
	right: auto !important;
}
body.post-type-archive-tutorial .top_nav .nav_menu .developers_menu_container .sub_menu_container .menu li[data-title="QuickBlox Discord Community"] a p,
body.single-tutorial .top_nav .nav_menu .developers_menu_container .sub_menu_container .menu li[data-title="QuickBlox Discord Community"] a p {
	margin: 0;
	line-height: 1.2;
	position: static !important;
}
