/* =========================================================
   AST EDU — CUSTOM SINGLE POST
   ========================================================= */

html,
body {
	max-width: 100%;
	overflow-x: hidden;
	scroll-behavior: smooth;
}

@supports (overflow: clip) {
	html,
	body {
		overflow-x: clip;
	}
}

.astedu-single,
.astedu-single *,
.astedu-single *::before,
.astedu-single *::after {
	box-sizing: border-box;
}

.astedu-single__content h2 {
	scroll-margin-top: 150px;
}

.astedu-single__toc-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.astedu-single__toc-link {
	position: relative;
	display: block;
	width: 100%;
	padding-left: 27px;
	color: #2f2f2f;
	font-size: 13px;
	font-weight: 450;
	line-height: 1.4;
	text-decoration: none;
	transition:
		color 0.2s ease,
		transform 0.2s ease;
}

.astedu-single__toc-link::before {
	content: "";
	position: absolute;
	top: 2px;
	left: 0;
	width: 16px;
	height: 16px;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%232f2f2f' stroke-width='1.8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M12 17v5m-5-13V5a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v4l2 3H5l2-3Z'/%3E%3C/svg%3E")
		center / contain no-repeat;
}

.astedu-single__toc-link:hover {
	color: #117be2;
	transform: translateX(2px);
}

.astedu-single {
	width: 100%;
	max-width: 100%;
	background: #fff;
	color: #2f2f2f;
	font-family: "Poppins", sans-serif;
	/* overflow-x: hidden; */
}

.astedu-single img,
.astedu-single video,
.astedu-single iframe,
.astedu-single svg {
	max-width: 100%;
}

.astedu-single__container {
	width: 100%;
	max-width: 1320px;
	margin: 0 auto;
	padding: 35px 20px 110px;
}

/* =========================================================
   BREADCRUMBS
   ========================================================= */

.astedu-blog__breadcrumbs {
	width: 100%;
	min-width: 0;
	margin-bottom: 25px;
	margin-top: 20px;
}

.astedu-breadcrumbs {
	width: 100%;
	min-width: 0;
	margin: 0;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	overflow-wrap: break-word;
}

.astedu-breadcrumbs span,
.astedu-breadcrumbs a {
	font-size: 14px;
	font-weight: 400;
}

.astedu-breadcrumbs a {
	color: #2563eb;
	text-decoration: none;
}

.astedu-breadcrumbs a:hover {
	text-decoration: underline;
}

.astedu-breadcrumbs .breadcrumb_last {
	color: #2f2f2f;
}

/* =========================================================
   HERO
   ========================================================= */

.astedu-single__hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 655px;
	margin-bottom: 75px;
	/* margin-top: 25px; */
	border-radius: 24px;
	overflow: hidden;
	background: #117be2;
	isolation: isolate;
}

.astedu-single__hero-image {
	position: absolute;
	z-index: -3;
	inset: 0;
	width: 100%;
	height: 100%;
}

.astedu-single__hero-image img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
	object-position: center;
}

.astedu-single__hero-overlay {
	position: absolute;
	z-index: -2;
	inset: 0;
	background:
		linear-gradient(
			90deg,
			rgba(17, 123, 226, 0.58),
			rgba(17, 123, 226, 0.42)
		);
}

.astedu-single__hero--without-image {
	background:
		linear-gradient(
			135deg,
			#117be2,
			#5ca7eb
		);
}

.astedu-single__hero-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: min(760px, calc(100% - 80px));
	padding: 35px 45px;
	border-radius: 15px;
	background: rgba(255, 255, 255, 0.7);
	box-shadow: 0 14px 35px rgba(0, 0, 0, 0.05);
	text-align: center;
	-webkit-backdrop-filter: blur(5px);
	backdrop-filter: blur(5px);
}

.astedu-single__title {
	width: 100%;
	margin: 0;
	color: #252525;
	font-size: clamp(32px, 3vw, 45px);
	font-weight: 700;
	line-height: 1.15;
	text-align: center;
	overflow-wrap: break-word;
}

.astedu-single__category {
	display: inline-flex;
	margin-top: 25px;
	color: #2f2f2f;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.4;
	text-decoration: none;
	background: #fff;
	border-radius: 5px;
	padding: 5px 15px;	
	box-shadow: 0 14px 35px rgba(0, 0, 0, 0.05);
}

.astedu-single__category:hover {
	color: #117be2;
}

.astedu-single__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	width: 100%;
	gap: 14px 25px;
	margin-top: 23px;
	color: #252525;
	font-size: 13px;
	line-height: 1.4;
}

.astedu-single__meta-item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
}

.astedu-single__meta-item svg {
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* =========================================================
   MAIN LAYOUT
   ========================================================= */

.astedu-single__layout {
	display: grid;
	grid-template-columns: minmax(270px, 320px) minmax(0, 1fr);
	/* align-items: stretch; */
	width: 100%;
	gap: 38px;
}

.astedu-single__sidebar,
.astedu-single__article {
	width: 100%;
	min-width: 0;
}

.astedu-single__sidebar-inner {
	position: sticky;
	top: 105px;
	display: flex;
	flex-direction: column;
	gap: 28px;
}

/* =========================================================
   SIDEBAR
   ========================================================= */

.astedu-single__sidebar-box {
	width: 100%;
	padding: 18px;
	border-radius: 17px;
	background: #f3f3f3;
}

.astedu-single__sidebar-title {
	margin: 0 0 18px;
	color: #2f2f2f;
	font-size: 20px;
	font-weight: 650;
	line-height: 1.25;
}

/* =========================================================
   TABLE OF CONTENTS
   ========================================================= */

.astedu-single__toc-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 100%;
}

.astedu-single__toc-link {
	position: relative;
	display: block;
	width: 100%;
	padding-left: 27px;
	color: #2f2f2f;
	font-size: 13px;
	font-weight: 450;
	line-height: 1.35;
	text-decoration: none;
	transition:
		color 0.2s ease,
		transform 0.2s ease;
}

.astedu-single__toc-link::before {
	content: "";
	position: absolute;
	top: 2px;
	left: 0;
	width: 16px;
	height: 16px;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%232f2f2f' stroke-width='1.8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M12 17v5m-5-13V5a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v4l2 3H5l2-3Z'/%3E%3C/svg%3E")
		center / contain no-repeat;
}

.astedu-single__toc-link:hover,
.astedu-single__toc-link.is-active {
	color: #117be2;
}

.astedu-single__toc-link:hover {
	transform: translateX(2px);
}

.astedu-single__toc-link.is-active::before {
	filter:
		invert(42%)
		sepia(93%)
		saturate(1200%)
		hue-rotate(186deg)
		brightness(92%)
		contrast(90%);
}

/* =========================================================
   PRODUCT CARD
   ========================================================= */

.astedu-single-product-card {
	display: block;
	width: 100%;
	overflow: hidden;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 11px;
	background: #fff;
	color: #2f2f2f;
	text-decoration: none;
	box-shadow: 0 3px 9px rgba(0, 0, 0, 0.04);
}

.astedu-single-product-card__image {
	width: 100%;
	aspect-ratio: 16 / 8;
	overflow: hidden;
	background: #eaeaea;
}

.astedu-single-product-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
	object-position: center;
	transition: transform 0.3s ease;
}

.astedu-single-product-card:hover
.astedu-single-product-card__image img {
	transform: scale(1.025);
}

.astedu-single-product-card__placeholder-image {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 135px;
	padding: 20px;
	background: #e8e8e8;
	color: #777;
	font-size: 12px;
	text-align: center;
}

.astedu-single-product-card__content {
	padding: 8px 9px 12px;
}

.astedu-single-product-card__badge {
	display: block;
	margin-bottom: 2px;
	color: #117be2;
	font-size: 8px;
	font-weight: 600;
	line-height: 1.3;
	text-transform: uppercase;
}

.astedu-single-product-card h3 {
	margin: 0;
	color: #2f2f2f;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
}

.astedu-single-product-card p {
	margin: 8px 0 0;
	color: #686868;
	font-size: 11px;
	line-height: 1.5;
}

.astedu-single-product-card code {
	font-family: monospace;
	font-size: 10px;
}

.astedu-single-product-card__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 12px -9px -12px;
	padding: 10px 9px;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.astedu-single-product-card__price {
	flex: 0 1 auto;
	color: #111;
	font-size: 19px;
	font-weight: 750;
	line-height: 1.1;
	white-space: nowrap;
}

.astedu-single-product-card__price del {
	display: none;
}

.astedu-single-product-card__price ins {
	text-decoration: none;
}

.astedu-single-product-card__cta {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	padding: 8px 12px;
	border: 1px solid #117be2;
	border-radius: 6px;
	background: #117be2;
	color: #fff;
	font-size: 10px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	white-space: nowrap;
	transition:
		background-color 0.2s ease,
		color 0.2s ease;
}

.astedu-single-product-card:hover
.astedu-single-product-card__cta {
	background: #fff;
	color: #117be2;
}

/* =========================================================
   RELATED POST
   ========================================================= */

.astedu-single-related-card {
	width: 100%;
	overflow: hidden;
	border: 1px solid rgba(0, 0, 0, 0.11);
	border-radius: 9px;
	background: #fff;
}

.astedu-single-related-card__image {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #e9e9e9;
}

.astedu-single-related-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
	object-position: center;
	transition: transform 0.3s ease;
}

.astedu-single-related-card:hover
.astedu-single-related-card__image img {
	transform: scale(1.025);
}

.astedu-single-related-card__content {
	padding: 12px 10px 10px;
}

.astedu-single-related-card h3 {
	margin: 0 0 14px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
}

.astedu-single-related-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-top: 10px;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.astedu-single-related-card__date {
	flex: 1 1 auto;
	min-width: 0;
	color: #333;
	font-size: 9px;
	font-weight: 500;
	line-height: 1.35;
}

.astedu-single-related-card__cta {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	min-height: 31px;
	padding: 7px 12px;
	border: 1px solid #117be2;
	border-radius: 5px;
	background: #117be2;
	color: #fff;
	font-size: 10px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	transition:
		background-color 0.2s ease,
		color 0.2s ease;
}

.astedu-single-related-card__cta:hover {
	background: #fff;
	color: #117be2;
}

/* =========================================================
   ARTICLE CONTENT
   ========================================================= */

.astedu-single__content {
	width: 100%;
	min-width: 0;
	color: #2f2f2f;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.65;
}

.astedu-single__content > :first-child {
	margin-top: 0;
}

.astedu-single__content p {
	margin: 0 0 20px;
}

.astedu-single__content h2 {
	margin: 30px 0 25px;
	color: #252525;
	font-size: clamp(24px, 2.2vw, 27px);
	font-weight: 650;
	line-height: 1.18;
	scroll-margin-top: 125px;
}

.astedu-single__content h3 {
	margin: 27px 0 12px;
	color: #252525;
	font-size: clamp(18px, 1.7vw, 24px);
	font-weight: 600;
	line-height: 1.25;
	scroll-margin-top: 125px;
}

.astedu-single__content h4 {
	margin: 25px 0 11px;
	color: #252525;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
}

.astedu-single__content ul,
.astedu-single__content ol {
	margin: 0 0 22px;
	padding-left: 25px;
}

.astedu-single__content li {
	margin-bottom: 8px;
}

.astedu-single__content a {
	color: #117be2;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.astedu-single__content strong {
	font-weight: 600;
}

.astedu-single__content figure,
.astedu-single__content .wp-block-image {
	width: 100%;
	max-width: 100%;
	margin: 28px 0;
	box-shadow: none !important;
}

.astedu-single__content img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	margin: 28px auto !important;
	border-radius: 0;
}

.astedu-single__content figure img,
.astedu-single__content .wp-block-image img {
	width: 100%;
	margin: 0;
}

.astedu-single__content figcaption {
	margin-top: 8px;
	color: #747474;
	font-size: 11px;
	line-height: 1.45;
	text-align: center;
}

.astedu-single__content blockquote {
	margin: 28px 0;
	padding: 18px 22px;
	border-left: 4px solid #117be2;
	background: #f4f4f4;
}

.astedu-single__content table {
	display: block;
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	border-collapse: collapse;
}

.astedu-single__content iframe {
	display: block;
	width: 100%;
	margin: 28px 0;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1024px) {

	.astedu-single__container {
		padding-left: 24px;
		padding-right: 24px;
	}

	.astedu-single__hero {
		min-height: 390px;
	}

	.astedu-single__hero-content {
		width: min(720px, calc(100% - 60px));
	}

	.astedu-single__layout {
		grid-template-columns: minmax(230px, 280px) minmax(0, 1fr);
		gap: 28px;
	}
}

/* =========================================================
   MOBILE / SMALL TABLET
   ========================================================= */

@media (max-width: 850px) {

	.astedu-single__layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 35px;
	}

	.astedu-single__sidebar-inner {
		position: static;
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: start;
	}

	.astedu-single__toc {
		grid-column: 1 / -1;
	}

	.astedu-single__article {
		order: 1;
	}

	.astedu-single__sidebar {
		order: 2;
	}
}

@media (max-width: 767px) {

	.astedu-blog__breadcrumbs{
		margin-top: 75px;
	}

	.astedu-single__container {
		padding: 24px 18px 75px;
	}

	.astedu-single__breadcrumbs {
		margin-bottom: 25px;
		font-size: 11px;
	}

	.astedu-single__breadcrumbs span[aria-current="page"] {
		display: none;
	}

	.astedu-single__hero {
		min-height: 375px;
		margin-bottom: 34px;
		border-radius: 18px;
	}

	.astedu-single__hero-content {
		width: calc(100% - 28px);
		padding: 25px 18px;
	}

	.astedu-single__title {
		font-size: 27px;
		line-height: 1.18;
	}

	.astedu-single__category {
		margin-top: 12px;
	}

	.astedu-single__meta {
		gap: 11px 16px;
		margin-top: 18px;
		font-size: 11px;
	}

	.astedu-single__meta-item svg {
		width: 16px;
		height: 16px;
		flex-basis: 16px;
	}

	.astedu-single__sidebar-inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.astedu-single__sidebar-box {
		padding: 17px;
	}

	.astedu-single__sidebar-title {
		font-size: 19px;
	}

	.astedu-single__content {
		font-size: 14px;
		line-height: 1.65;
	}

	.astedu-single__content h2 {
		margin-top: 37px;
		font-size: 25px;
	}

	.astedu-single__content h3 {
		margin-top: 30px;
		font-size: 20px;
	}
}

@media (max-width: 390px) {

	.astedu-single__container {
		padding-left: 15px;
		padding-right: 15px;
	}

	.astedu-single__hero {
		min-height: 355px;
	}

	.astedu-single__hero-content {
		width: calc(100% - 22px);
		padding-left: 14px;
		padding-right: 14px;
	}

	.astedu-single__title {
		font-size: 24px;
	}

	.astedu-single__meta {
		flex-direction: column;
		gap: 9px;
	}
}

/* =========================================================
   FAQ
   ========================================================= */

.astedu-single-faq {
	width: 100%;
	margin-top: 65px;
	padding-top: 10px;
}

.astedu-single-faq__title {
	margin: 0 0 26px;
	color: #252525;
	font-size: clamp(26px, 2.2vw, 32px);
	font-weight: 650;
	line-height: 1.2;
}

.astedu-single-faq__list {
	display: flex;
	flex-direction: column;
	width: 100%;
	border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.astedu-single-faq__item {
	width: 100%;
	border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.astedu-single-faq__question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	gap: 24px;
	margin: 0;
	padding: 22px 5px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #2f2f2f;
	font-family: inherit;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.4;
	text-align: left;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}

.astedu-single-faq__question:hover {
	color: #117be2;
}

.astedu-single-faq__question:focus-visible {
	outline: 2px solid #117be2;
	outline-offset: 4px;
}

.astedu-single-faq__question-text {
	flex: 1 1 auto;
	min-width: 0;
}

/* Strzałka */

.astedu-single-faq__icon {
	position: relative;
	display: block;
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	transition: transform 0.3s ease;
}

.astedu-single-faq__icon::before,
.astedu-single-faq__icon::after {
	content: "";
	position: absolute;
	top: 50%;
	width: 10px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
}

.astedu-single-faq__icon::before {
	left: 1px;
	transform: rotate(45deg);
}

.astedu-single-faq__icon::after {
	right: 1px;
	transform: rotate(-45deg);
}

.astedu-single-faq__item.is-open
.astedu-single-faq__icon {
	transform: rotate(180deg);
}

/* Odpowiedź */

.astedu-single-faq__answer {
	display: grid;
	grid-template-rows: 0fr;
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	transition:
		grid-template-rows 0.35s ease,
		opacity 0.25s ease,
		visibility 0.35s ease;
}

.astedu-single-faq__answer-inner {
	min-height: 0;
	overflow: hidden;
}

.astedu-single-faq__answer-content {
	padding: 0 45px 24px 5px;
	color: #505050;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.7;
}

.astedu-single-faq__answer-content > :first-child {
	margin-top: 0;
}

.astedu-single-faq__answer-content > :last-child {
	margin-bottom: 0;
}

.astedu-single-faq__answer-content p {
	margin: 0 0 16px;
}

.astedu-single-faq__answer-content ul,
.astedu-single-faq__answer-content ol {
	margin: 0 0 16px;
	padding-left: 22px;
}

.astedu-single-faq__item.is-open
.astedu-single-faq__answer {
	grid-template-rows: 1fr;
	opacity: 1;
	visibility: visible;
}

.astedu-single-faq__item.is-open
.astedu-single-faq__question {
	color: #117be2;
}

@media (max-width: 767px) {

	.astedu-single-faq {
		margin-top: 50px;
	}

	.astedu-single-faq__title {
		font-size: 25px;
	}

	.astedu-single-faq__question {
		gap: 16px;
		padding: 19px 2px;
		font-size: 15px;
	}

	.astedu-single-faq__answer-content {
		padding: 0 30px 20px 2px;
		font-size: 14px;
	}
}
.astedu-single-faq__item button:hover{
	background-color: #fff !important;
}
.astedu-single-product-card__price .woocommerce-Price-amount.amount{
	display: flex;
	flex-direction: row;
	gap: 5px;
}