.articles-page {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 0px 0 40px;
	overflow: hidden;
}

.articles-page .latest-post-carousel {
    position: relative;
	width: 100% !important;
	margin-left: auto;
	margin-right: auto;
}

.articles-page .latest-post-carousel .swiper-slide {
	width: 100% !important;
    cursor: pointer;
}


/* Kontener nawigacji */
.latest-post-carousel.swiper-container .swiper-nav-wrapper {
    bottom: 12px;
    right: 4px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin: 0 auto;
    position: absolute;
    gap: 48px;
    width: auto;
}

/* Strzałki */
.latest-post-carousel.swiper-container .swiper-button-prev,
.latest-post-carousel.swiper-container .swiper-button-next {
    position: relative;
    width: 36px;
    height: 36px;
    background-color: var(--swiper-pagination-color);
    border: none;
    border-radius: 999px;
    transition: all var(--transition);user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.latest-post-carousel.swiper-container .swiper-button-prev:hover,
.latest-post-carousel.swiper-container .swiper-button-next:hover {
    background-color: var(--primary-500);
}

/* Usuń domyślny pseudoelement */
.latest-post-carousel.swiper-container .swiper-button-prev::after,
.latest-post-carousel.swiper-container .swiper-button-next::after {
    content: unset !important;
}

/* Ripple effect */
.latest-post-carousel.swiper-container .swiper-button-prev::before,
.latest-post-carousel.swiper-container .swiper-button-next::before {
    content: '' !important;
    opacity: 0;
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, rgb(255,255,255) 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 1000%;
    transform: scale(1);
    transition: transform 0.3s, opacity 1s;
}

.latest-post-carousel.swiper-container .swiper-button-prev:active::before,
.latest-post-carousel.swiper-container .swiper-button-next:active::before {
    transform: scale(0);
    opacity: 0.5;
    transition: all;
}

.latest-post-carousel.swiper-container .swiper-button-prev:active,
.latest-post-carousel.swiper-container .swiper-button-next:active {
    transform: translateY(2px);
}

/* Ikony SVG */
.latest-post-carousel.swiper-container .swiper-button-prev svg,
.latest-post-carousel.swiper-container .swiper-button-next svg {
    width: 20px !important;
    height: 20px !important;
    stroke: var(--white);
    z-index: 100;
    flex-shrink: 0;
}

/* Paginacja */
.latest-post-carousel.swiper-container .swiper-pagination-bullet {
    background: var(--swiper-bullet-color) !important;
    transition: all 0.2s ease-in-out;
}

.latest-post-carousel.swiper-container .swiper-pagination-bullet-active {
    background: var(--primary-500) !important;
}

.latest-post-carousel.swiper-container .swiper-pagination-bullets.swiper-pagination-horizontal {
    position: static !important;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: auto !important;
    padding: 0 1.5em;
}



.articles-page .heading-container {
	display: flex;
	width: 100%;
	background-color: var(--primary-500);
	color: var(--white);
}

.articles-page .heading {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	text-align: left;
	margin: 0;
	font-size: 24px;
	font-weight: 700;
	text-transform: uppercase;
	padding: 10px 30px;
	color: var(--white);
	line-height: 28.8px;
}

.articles-page .heading-ornament {
	width: 4px;
	background-color: var(--accent-500);
}

.articles-page .latest-post {
	width: 100%;
	position: relative;
    cursor: pointer;
	overflow: hidden;
}

.articles-page .latest-post::after {
	content: '';
	position: absolute;
	width: 100%;
	height: 100%;
	background: var(--latest-post-gradient);

	bottom: 0;
	left: 0;
	z-index: 10;
}

.articles-page .latest-post__image a {
	width: 100%;
	display: block;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	height: 485px;
	object-fit: cover;
}

.articles-page .latest-post__info {
	position: absolute;
	width: 100%;
	height: 100%;
	bottom: 0px;
	left: 0px;
	background: var(--latest-post-gradient);
	color: white;

	display: flex;
	align-items: flex-start;
	flex-direction: column;
	justify-content: flex-end;
	padding: 50px;
	gap: 16px;
	z-index: 25;
}

.articles-page .latest-post__date {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	gap: 8px;
}

.articles-page .latest-post__date svg {
	height: 24px;
	width: 24px;
}

.articles-page .latest-post__date p {
	margin: 0;
	color: var(--white);
	padding: 0;
	font-weight: 400;
	font-size: 14px;
	line-height: 14px;
	letter-spacing: 0%;
}

.articles-page .latest-post__title {
	font-weight: 500;
	font-size: 40px;
	line-height: 48px;
	letter-spacing: 0%;
	margin: 0;
	color: var(--white);
}

.articles-page .latest-post__title a {
	color: var(--white);
}

.posts-listing__container {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
	margin: 0 auto 20px;
	background-color: var(--white);
	padding: 12px 0 0;
    margin-top: 24px;
    margin-bottom: 24px;
}

.posts-listing__item {
	display: flex;
	align-items: center;
	gap: 32px;
	padding: 20px;
}

.posts-listing__container__banner,
.posts-listing__container__banner a,
.posts-listing__container__banner img {
	display: block;
	width: 100%;
	height: auto;
}

.posts-listing__image img {
	width: 286px;
	height: auto;
	object-fit: cover;
}

.posts-listing__content {
	flex: 1;
}

.posts-listing__title {
	font-weight: 500;
	font-size: 24px;
	line-height: 28.8px;
	letter-spacing: 0%;
	color: var(--primary-500);
	margin: 0;
}

.posts-listing__title a {
	font-weight: 500;
	font-size: 24px;
	line-height: 28.8px;
	letter-spacing: 0%;
	color: var(--primary-500);
}

.posts-listing__attr{
	display: flex;
	gap: 28px;
	flex-wrap: wrap;
}
.posts-listing__date, .posts-listing__comments {
	font-size: 14px;
	color: var(--grey-500);
	margin: 5px 0;
	display: flex;
	gap: 8px;
	align-items: center;
}
.posts-listing__date__icon, .posts-listing__comments__icon{
	display: flex;
	justify-content: center;
	align-items: center;
}
.posts-listing__date__icon svg *, .posts-listing__comments__icon svg * {
	fill: var(--accent-500);
}
.posts-listing__date__text, .posts-listing__comments__text{
	margin: 0;
}

.latest-post__info .posts-listing__date,
.latest-post__info .posts-listing__comments{
	color: var(--white);
}


.latest-post__info  .posts-listing__date__icon svg *, 
.latest-post__info  .posts-listing__comments__icon svg *{
	fill: var(--white);
}

.posts-listing__excerpt {
	font-weight: 400;
	font-size: 16px;
	line-height: 19.2px;
	letter-spacing: 0%;
	color: var(--grey-500);
}

.button--ghost {
	display: inline-block;
	margin-top: 10px;
	padding: 8px 15px;
	border: 1px solid var(--primary-500);
	color: var(--primary-500);
	text-decoration: none;
	border-radius: 5px;
	transition: background 0.3s;
}

.button--ghost:hover {
	background: var(--primary-500);
	color: white;
}

@media (max-width: 768px) {
	.posts-listing__item {
		flex-direction: column;
	}

	.posts-listing__image img {
		width: 100%;
	}

	.posts-listing__image {
		width: 100%;
	}

	.articles-page .latest-post__title {
		font-size: 34px;
		line-height: 38px;
	}
}

@media (max-width: 576px) {
	.posts-listing__item {
		gap: 12px;
	}

	.articles-page .latest-post__title {
		font-size: 32px;
		line-height: 36px;
	}

	.articles-page .latest-post__info {
		padding: 30px;
	}

	.articles-page .latest-post__image a {
		height: 350px;
	}

	.page-wrapper .container {
		margin: 20px auto;
	}
}

@media (max-width: 440px) {
	.articles-page .latest-post__image a {
		height: 300px;
	}
}

@media (max-width: 380px) {
	.articles-page .latest-post__title {
		font-size: 28px;
		line-height: 32px;
	}

	.articles-page .latest-post__info {
		padding: 20px;
	}
}
