.blog {
    padding: 100px 0;
    background: #F8FAFC;
}

/* Header */
.blog__header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px;
	margin-bottom: 55px;
}

.blog__badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 16px;
    padding: 7px 15px;
    background: #E2E6F033;
    border: 1px solid #D5DEE9;
    border-radius: 40px;
    font-weight: 500;
    font-size: 16px;
    line-height: 150%;
    color: #3B455A;
}

.blog__badge-dot {
	width: 12px;
	height: 12px;
	flex-shrink: 0;
	border-radius: 50%;
	background: var(--color-primary);
}

.blog__heading {
	margin: 0;
	color: #131C2E;
}

.blog__heading span {
	color: var(--color-primary);
}

.blog__btn {
    flex-shrink: 0;
	padding: 8px 8px 8px 20px;
    background: var(--color-white);
	border: 1.5px solid #87CF00;
    color: #131C2E;
    font-size: 16px;
    line-height: 150%;
    font-weight: 600;
    min-height: 48px;
}

.blog__btn .btn__icon {
    width: 32px;
    height: 32px;
}

.blog__btn .btn__icon svg {
	width: 20px;
	height: 20px;
}

/* Slider navigation - only exists below 1024px. */
.blog__nav {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 24px;
}

.blog__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	flex-shrink: 0;
	padding: 0;
	border: 1.5px solid #E9EEF5;
	border-radius: 8px;
	background: #FFFFFF;
	color: #131C2E;
	cursor: pointer;
	transition: all 0.3s;
}

.blog__arrow:hover {
	border-color: var(--color-primary);
	color: var(--color-primary);
}

.blog__arrow svg path {
	stroke: #6D7890;
	transition: all 0.3s;
}

.blog__arrow:hover svg path {
	stroke: #131C2E;
}

.blog__arrow:disabled,
.blog__arrow.swiper-button-disabled {
	opacity: 0.45;
	cursor: default;
}

.blog__arrow:disabled:hover,
.blog__arrow.swiper-button-disabled:hover {
	border-color: #E2E6F0;
	color: #131C2E;
}

.blog__dots {
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: center;
	gap: 12px;
}

.blog__dots .swiper-pagination-bullet {
	width: 12px;
	height: 12px;
	margin: 0;
	border-radius: 50%;
	background: #D5DEE9;
	opacity: 1;
	transition: all 0.3s;
}

.blog__dots .swiper-pagination-bullet-active {
	width: 12px;
	height: 12px;
	background: #9AA9BD;
}

.blog__slider .swiper-wrapper{
	gap: 16px;
}

.blog__slider{
	width: 100%;
}


@media (max-width: 1440px){
	.blog {
		padding: 60px 0;
	}

	.blog__badge {
		font-size: 14px;
	}

	.blog__heading {
		font-size: 24px;
	}

	.blog__btn{
		font-size: 14px;
		padding: 6px 8px 6px 17px;
	}

	.blog__header {
		margin-bottom: 40px;
	}

	.blog__slider .swiper-wrapper {
        gap: 16px;
    }

	.post-card {
		padding: 18px;
	}

	.post-card__title {
		margin-bottom: 34px;
		font-size: 18px;
	}
}

@media (max-width: 1280px){
	.post-card__arrow {
		width: 32px;
		height: 32px;
	}

	.post-card__top {
		margin-bottom: 4px;
	}

	.post-card__title {
        margin-bottom: 16px;
    }

	.post-card__media img {
		aspect-ratio: auto;
		max-height: 280px;
	}
}

@media (max-width: 768px){
	.blog__header {
        margin-bottom: 32px;
    }

	.blog__slider .swiper-wrapper {
        gap: 0;
    }

	.post-card__title {
        margin-bottom: 16px;
        font-size: 16px;
        line-height: 150%;
    }

	.post-card__media img {
		max-height: 240px;
	}

	.blog__nav {
		margin-top: 16px;
	}

	.blog__arrow {
		width: 48px;
		height: 48px;
	}
}

@media (min-width: 1024px) {
	.blog__slider .swiper-wrapper {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.blog__slider .swiper-slide {
		width: auto;
	}

	.blog__nav {
		display: none;
	}
}

@media (max-width: 550px) {
	.blog {
        padding: 40px 0;
    }

	.blog__badge {
        font-size: 12px;
        gap: 8px;
        padding: 3px 11px;
		margin: 0 0 12px;
    }

	/* The button moves under the slider, so the header box is dissolved
	   and its children are ordered directly inside the container. */
	.blog .container {
		display: flex;
		flex-direction: column;
		align-items: stretch;
	}

	.blog__header {
		display: contents;
	}

	.blog__intro {
        order: 1;
        margin-bottom: 20px;
    }

	.post-card__top {
    	margin-bottom: 0px;
    }

	.post-card__title {
        font-size: 14px;
    }

	.blog__slider {
		order: 2;
		min-width: 0;
	}

	.blog__nav {
		order: 3;
	}
	

    .blog__btn {
        order: 4;
        align-self: flex-start;
        margin: 21px auto 0;
    }

    .blog__arrow {
        width: 36px;
        height: 36px;
    }

	.blog__nav {
		gap: 12px;
	}

	.blog__badge-dot {
		width: 8px;
		height: 8px;
	}

	.blog__heading {
        font-size: 18px;
    }
}
