/* =========================================================
   AST EDU — BLOG ARCHIVE
   ========================================================= */

/*
 * Safari na iOS potrafi pozwolić przesunąć całą stronę
 * o kilka pikseli, nawet gdy overflow powoduje element potomny.
 */
html,
body {
	width: 100%;
	max-width: 100%;
	margin-left: 0;
	margin-right: 0;
	overflow-x: hidden;
}

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

body {
	position: relative;
}

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

.astedu-blog {
	position: relative;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	overflow-x: hidden;
	background-color: #fff;
	font-family: "Poppins", sans-serif;
	color: #2f2f2f;
}

@supports (overflow: clip) {
	.astedu-blog {
		overflow-x: clip;
	}
}

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

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

.astedu-blog-header__container {
	width: 100%;
	max-width: 1320px;
	min-width: 0;
	margin: 0 auto;
	padding: 50px 20px 75px;
}

.astedu-blog__breadcrumbs {
	width: 100%;
	min-width: 0;
}

.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;
}

.astedu-blog__header {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-width: 0;
	padding: 50px 0;
}

.astedu-blog__header-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-width: 0;
	padding: 0 0 75px;
	gap: 25px;
}

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

.astedu-blog__header-container p {
	width: 75%;
	max-width: 850px;
	min-width: 0;
	margin: 0 auto;
	font-size: clamp(14px, 1.2vw, 16px);
	font-weight: 400;
	line-height: 1.5;
	text-align: center;
	color: #505050;
	overflow-wrap: break-word;
}

/* =========================================================
   FEATURED POST
   ========================================================= */

.astedu-blog-new-post__container {
	display: grid;
	grid-template-columns: minmax(0, 55%) minmax(0, 45%);
	align-items: stretch;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	min-height: 380px;
	margin: 0;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 30px;
	overflow: hidden;
	background-color: #fff;
	transition:
		box-shadow 0.3s ease,
		transform 0.3s ease;
}

.astedu-blog-new-post__container:hover {
	box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}

.astedu-feature-img__container {
	position: relative;
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	height: 100%;
	min-height: 100%;
	overflow: hidden;
}

.astedu-feature-img__container > a {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
}

.astedu-feature-img__container img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	margin: 0;
	object-fit: cover;
	object-position: center;
	transition: transform 0.4s ease;
}

.astedu-blog-new-post__container:hover
.astedu-feature-img__container img {
	transform: scale(1.02);
}

.astedu-feature-img__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 380px;
	background-color: #f4f4f4;
	color: #707070;
}

.astedu-feature-content__container {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: space-between;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	height: 100%;
	padding: 45px 40px 35px 50px;
	background-color: #fff;
}

.astedu-feature-content-text__container {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	width: 100%;
	min-width: 0;
	gap: 25px;
	margin-bottom: 20px;
}

.astedu-feature-content__title,
.astedu-feature-content-text__container h3 {
	width: 100%;
	min-width: 0;
	margin: 0;
	font-size: clamp(27px, 2vw, 32px);
	font-weight: 600;
	line-height: 1.2;
	text-align: left;
	color: #2f2f2f;
	overflow-wrap: break-word;
}

.astedu-feature-content__title a,
.astedu-feature-content-text__container h3 a {
	color: #2f2f2f;
	text-decoration: none;
	overflow-wrap: break-word;
}

.astedu-feature-content__title a:hover,
.astedu-blog-new-post__container:hover
.astedu-feature-content-text__container h3 a {
	color: #117be2;
}

.astedu-feature-content__excerpt {
	width: 100%;
	min-width: 0;
	margin: 0;
	font-size: clamp(13px, 1vw, 15px);
	font-weight: 400;
	line-height: 1.55;
	text-align: left;
	color: #505050;
	overflow-wrap: break-word;
}

.astedu-feature-content-data__container {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-end;
	width: 100%;
	min-width: 0;
	padding-top: 15px;
	gap: 20px;
	border-top: 1px solid #2563eb75;
}

.astedu-feature-content__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	width: 100%;
	min-width: 0;
	gap: 10px;
	font-size: 14px;
	line-height: 1.4;
	color: #505050;
}

.astedu-feature-content__date,
.astedu-feature-content__reading-time {
	font-size: 14px;
	font-weight: 400;
	color: #505050;
}

.astedu-feature-content__separator {
	color: #a0a0a0;
}

.astedu-feature-content__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	max-width: 100%;
	min-height: 44px;
	padding: 10px 22px;
	border: 1px solid #117be2;
	border-radius: 8px;
	background-color: #117be2;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition:
		background-color 0.2s ease,
		color 0.2s ease;
}

.astedu-feature-content__cta:hover {
	background-color: #fff;
	color: #117be2;
}

/* =========================================================
   CATEGORY NAVIGATION
   ========================================================= */

.astedu-blog-nav {
	position: relative;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	background: #f6f6f6;
	border-top: 1px solid #dddddd50;
	border-bottom: 1px solid #dddddd50;
	overflow: hidden;
}

.astedu-blog-nav__list {
	display: flex;
	f-direction: row;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	width: 100%;
	max-width: 1320px;
	min-width: 0;
	margin: 0 auto;
	padding: 30px 20px;
	gap: 20px;
	list-style: none;
}

.astedu-blog-nav__item {
	flex: 0 0 auto;
	min-width: 0;
	margin: 0;
	padding: 5px 15px;
	border: 1px solid #117be2;
	border-radius: 10px;
	background: #fff;
	cursor: pointer;
}

.astedu-blog-nav__item a,
.astedu-blog-nav__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	max-width: 100%;
	margin: 0;
	padding: 0;
	color: #2f2f2f;
	font-size: 14px;
	font-weight: 500;
	line-height: 17px;
	text-align: center;
	text-decoration: none;
	border-radius: 10px !important;
}

.astedu-blog-nav__item.is-active {
	/*
	 * Cień wewnętrzny nie powiększa obszaru przewijania
	 * i nie dokłada kilku pikseli overflow na Safari.
	 */
	box-shadow: inset 0 0 0 3px rgba(17, 123, 226, 0.28);
}

.astedu-blog-nav__item.is-active a {
	color: #117be2;
}

/* =========================================================
   BLOG CONTENT / TOOLBAR
   ========================================================= */

.astedu-blog__content {
	width: 100%;
	max-width: 1320px;
	min-width: 0;
	margin: 0 auto;
	padding: 50px 20px 100px;
}

.astedu-blog-grid__toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	gap: 24px;
	margin-bottom: 28px;
}

.astedu-blog-grid__counter {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	color: #2f2f2f;
	overflow-wrap: break-word;
}

.astedu-blog-grid__sorting {
	display: flex;
	flex: 0 1 auto;
	align-items: center;
	min-width: 0;
	gap: 10px;
}

.astedu-blog-grid__sorting label {
	flex: 0 0 auto;
	font-size: 14px;
	font-weight: 400;
	color: #2f2f2f;
}

.astedu-blog-grid__sorting select {
	display: block;
	width: auto;
	max-width: 100%;
	min-width: 0;
	min-height: 42px;
	padding: 8px 38px 8px 14px;
	border: 1px solid #117be2;
	border-radius: 8px;
	background-color: #fff;
	color: #2f2f2f;
	font-family: inherit;
	font-size: 14px;
	cursor: pointer;
}

/* =========================================================
   GRID
   ========================================================= */

.astedu-blog-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: stretch;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	gap: 32px 24px;
}

.astedu-blog-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	height: 100%;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 12px;
	overflow: hidden;
	background-color: #f7f7f7;
	transition:
		box-shadow 0.25s ease,
		transform 0.25s ease;
}

.astedu-blog-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.astedu-blog-card__image-link {
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background-color: #ededed;
}

.astedu-blog-card__image {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 0.35s ease;
}

.astedu-blog-card:hover .astedu-blog-card__image {
	transform: scale(1.025);
}

.astedu-blog-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: #707070;
	font-size: 14px;
}

.astedu-blog-card__content {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	justify-content: space-between;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	padding: 18px;
}

.astedu-blog-card__text {
	display: flex;
	flex-direction: column;
	width: 100%;
	min-width: 0;
	gap: 10px;
}

.astedu-blog-card__title {
	display: -webkit-box;
	width: 100%;
	min-width: 0;
	margin: 0;
	overflow: hidden;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
	overflow-wrap: break-word;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.astedu-blog-card__title a {
	color: #2f2f2f;
	text-decoration: none;
	overflow-wrap: break-word;
}

.astedu-blog-card__title a:hover {
	color: #117be2;
}

.astedu-blog-card__excerpt {
	display: -webkit-box;
	width: 100%;
	min-width: 0;
	margin: 0;
	overflow: hidden;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.5;
	color: #606060;
	overflow-wrap: break-word;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.astedu-blog-card__footer {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: 100%;
	min-width: 0;
	margin-top: 18px;
	padding-top: 14px;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	gap: 14px;
}

.astedu-blog-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	width: 100%;
	min-width: 0;
	gap: 14px;
}

.astedu-blog-card__date,
.astedu-blog-card__reading-time {
	font-size: 12px;
	font-weight: 400;
	line-height: 1.4;
	color: #404040;
}

.astedu-blog-card__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	max-width: 100%;
	min-height: 38px;
	padding: 8px 16px;
	border: 1px solid #117be2;
	border-radius: 7px;
	background-color: #117be2;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition:
		background-color 0.2s ease,
		color 0.2s ease;
}

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

/* =========================================================
   PAGINATION
   ========================================================= */

.astedu-blog-pagination {
	display: flex;
	justify-content: flex-end;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin-top: 36px;
}

.astedu-blog-pagination .page-numbers {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	max-width: 100%;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.astedu-blog-pagination .page-numbers li {
	margin: 0;
	padding: 0;
}

.astedu-blog-pagination a.page-numbers,
.astedu-blog-pagination span.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	padding: 5px 9px;
	border: 1px solid transparent;
	border-radius: 6px;
	color: #2f2f2f;
	font-size: 14px;
	text-decoration: none;
}

.astedu-blog-pagination a.page-numbers:hover {
	border-color: #117be2;
	color: #117be2;
}

.astedu-blog-pagination .page-numbers.current {
	border-color: #117be2;
	background-color: #fff;
	color: #117be2;
}

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

@media (max-width: 1024px) {

	.astedu-blog {
		padding: 40px 0 0;
	}

	.astedu-blog-new-post__container {
		grid-template-columns: minmax(0, 52%) minmax(0, 48%);
		min-height: 340px;
	}

	.astedu-feature-content__container {
		padding: 35px 30px;
	}

	.astedu-feature-content__title,
	.astedu-feature-content-text__container h3 {
		font-size: clamp(23px, 2.5vw, 28px);
	}

	.astedu-blog__header-container p {
		width: 90%;
	}

	.astedu-blog-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* =========================================================
   SCROLLABLE CATEGORY NAV
   ========================================================= */

@media (max-width: 1000px) {

	.astedu-blog-nav {
		position: relative;
		width: 100%;
		max-width: 100%;
		overflow: hidden;
		isolation: isolate;
	}

	/*
	 * Strzałka jest na kontenerze, a nie na scrollowanej liście.
	 * Dzięki temu nie zwiększa scrollWidth listy.
	 */
	.astedu-blog-nav::before {
		content: "";
		position: absolute;
		z-index: 1;
		top: 50%;
		left: 15px;
		width: 30px;
		height: 30px;
		background-image: url("https://ast.edu.pl/wp-content/uploads/2026/07/left.svg");
		background-repeat: no-repeat;
		background-position: center;
		background-size: contain;
		transform: translateY(-50%);
		pointer-events: none;
	}

	.astedu-blog-nav__list {
		position: relative;
		z-index: 2;
		display: flex;
		flex-flow: row nowrap;
		align-items: center;
		justify-content: flex-start;
		width: 100%;
		max-width: 100%;
		min-width: 0;
		margin: 0;
		padding: 30px 20px 30px 75px;
		gap: 14px;
		list-style: none;
		overflow-x: auto;
		overflow-y: hidden;
		overscroll-behavior-x: contain;
		scroll-padding-left: 75px;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
		touch-action: pan-x;
	}

	.astedu-blog-nav__list::-webkit-scrollbar {
		display: none;
		width: 0;
		height: 0;
	}

	.astedu-blog-nav__item {
		position: relative;
		z-index: 3;
		flex: 0 0 auto;
		width: auto;
		max-width: none;
		min-width: max-content;
		margin: 0;
		padding: 0;
		background: #fff;
	}

	.astedu-blog-nav__link,
	.astedu-blog-nav__item a {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: auto;
		max-width: none;
		min-width: max-content;
		padding: 10px 16px;
		white-space: nowrap;
		word-break: normal;
		overflow-wrap: normal;
		text-align: center;
		text-decoration: none;
		background: #fff;
	}
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

	.astedu-blog {
		width: 100%;
		max-width: 100%;
		padding: 0;
	}

	.astedu-blog-header__container {
		width: 100%;
		max-width: 100%;
		padding: 0 20px;
	}

	.astedu-blog__header {
		padding: 35px 0;
	}

	.astedu-blog__header-container {
		padding-bottom: 45px;
		gap: 18px;
	}

	.astedu-blog__header-container p {
		width: 100%;
		max-width: 100%;
	}

	.astedu-blog-new-post__container {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		width: 100%;
		max-width: 100%;
		min-height: 0;
		border-radius: 20px;
	}

	.astedu-feature-img__container {
		width: 100%;
		max-width: 100%;
		height: auto;
		min-height: 0;
		aspect-ratio: 16 / 9;
	}

	.astedu-feature-img__container > a {
		position: absolute;
		inset: 0;
	}

	.astedu-feature-content__container {
		width: 100%;
		max-width: 100%;
		height: auto;
		padding: 25px 20px;
	}

	.astedu-feature-content-text__container {
		gap: 16px;
	}

	.astedu-feature-content__title,
	.astedu-feature-content-text__container h3 {
		font-size: 23px;
		line-height: 1.25;
	}

	.astedu-feature-content-data__container {
		margin-top: 25px;
		gap: 16px;
	}

	.astedu-feature-content__cta {
		width: 100%;
		max-width: 100%;
	}

	.astedu-blog-nav__list {
		padding-top: 20px;
		padding-bottom: 20px;
	}

	.astedu-blog__content {
		width: 100%;
		max-width: 100%;
		min-width: 0;
		padding: 45px 20px 80px;
	}

	.astedu-blog-grid__toolbar {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(120px, auto);
		align-items: center;
		width: 100%;
		max-width: 100%;
		min-width: 0;
		gap: 12px;
		margin-bottom: 40px;
	}

	.astedu-blog-grid__counter {
		min-width: 0;
		font-size: 13px;
	}

	.astedu-blog-grid__sorting {
		display: flex;
		justify-content: flex-end;
		width: auto;
		max-width: 100%;
		min-width: 0;
	}

	.astedu-blog-grid__sorting label {
		display: none;
	}

	.astedu-blog-grid__sorting select {
		width: 100%;
		max-width: 155px;
		min-width: 0;
		padding-right: 30px;
		font-size: 13px;
	}

	.astedu-blog-grid {
		grid-template-columns: minmax(0, 1fr);
		width: 100%;
		max-width: 100%;
		min-width: 0;
		gap: 24px;
	}

	.astedu-blog-pagination {
		justify-content: center;
		margin-top: 30px;
	}

	.astedu-blog-pagination .page-numbers {
		justify-content: center;
	}
}

/* =========================================================
   SMALL IPHONES
   ========================================================= */

@media (max-width: 390px) {

	.astedu-blog-header__container,
	.astedu-blog__content {
		padding-left: 16px;
		padding-right: 16px;
	}

	.astedu-blog-grid__toolbar {
		grid-template-columns: minmax(0, 1fr) minmax(110px, 145px);
		gap: 8px;
	}

	.astedu-blog-grid__sorting select {
		max-width: 145px;
		padding-left: 10px;
		padding-right: 26px;
	}

	.astedu-feature-content__container {
		padding-left: 18px;
		padding-right: 18px;
	}
}

/* =========================================================
   TOUCH DEVICES
   ========================================================= */

@media (hover: none) {

	.astedu-blog-card:hover {
		transform: none;
	}

	.astedu-blog-card:hover .astedu-blog-card__image,
	.astedu-blog-new-post__container:hover
	.astedu-feature-img__container img {
		transform: none;
	}
}