/* ==========================================================================
   Blog Carousel
   ========================================================================== */

section.blog {
	position: relative;
	overflow: hidden;

	> .container {
		width: 80%;
		background-color: #fff;
		padding-top: 5rem;
	}
}

.offer + section.blog {
	padding-top: 0;
}

/* Decorative background words */
.blog__bg-text {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
}

.blog__word {
	position: absolute;
	font-family: var(--font-primary);
	font-size: 2.5rem;
	line-height: 1.375;
	white-space: nowrap;
}

.blog__word--1 {
	top: 5%;
	left: -2%;
	font-weight: 800;
	color: rgba(39, 31, 12, 0.08);
}

.blog__word--2 {
	top: 12%;
	left: 42%;
	font-weight: 800;
	color: rgba(39, 31, 12, 0.08);
}

.blog__word--3 {
	top: 3%;
	left: 55%;
	font-weight: 400;
	color: #f1f1f1;
}

.blog__word--4 {
	top: 8%;
	left: 9%;
	font-weight: 300;
	color: #f3f3f3;
}

.blog__word--5 {
	top: 30%;
	left: -4%;
	font-weight: 200;
	color: #e7e7e7;
}

.blog__word--6 {
	top: 15%;
	left: 35%;
	font-weight: 400;
	color: #e7e7e7;
}

.blog__word--7 {
	top: 10%;
	left: 72%;
	font-size: 1.875rem;
	font-weight: 400;
	color: rgba(39, 31, 12, 0.18);
}

.blog__word--8 {
	top: 5%;
	left: 85%;
	font-weight: 800;
	color: rgba(39, 31, 12, 0.08);
}

.blog__word--9 {
	top: 25%;
	left: 88%;
	font-weight: 400;
	color: #f1f1f1;
}

.blog__word--10 {
	top: 38%;
	left: -3%;
	font-weight: 300;
	color: #f3f3f3;
}

.blog__word--11 {
	top: 45%;
	left: 82%;
	font-weight: 200;
	color: rgba(39, 31, 12, 0.18);
}

.blog__word--12 {
	top: 22%;
	left: 60%;
	font-weight: 400;
	color: #e7e7e7;
}

.blog__word--13 {
	top: 75%;
	left: 80%;
	font-weight: 800;
	color: rgba(39, 31, 12, 0.08);
}

.blog__word--14 {
	top: 80%;
	left: 5%;
	font-size: 1.875rem;
	font-weight: 400;
	color: rgba(39, 31, 12, 0.18);
}

.blog__word--15 {
	top: 85%;
	left: 92%;
	font-weight: 400;
	color: #f1f1f1;
}

.blog__word--16 {
	top: 72%;
	left: 30%;
	font-weight: 800;
	color: rgba(39, 31, 12, 0.08);
}

.blog__word--17 {
	top: 88%;
	left: 55%;
	font-weight: 300;
	color: #f3f3f3;
}

.blog__word--18 {
	top: 78%;
	left: 42%;
	font-weight: 200;
	color: #e7e7e7;
}

.blog__word--19 {
	top: 70%;
	left: 12%;
	font-weight: 400;
	color: #f1f1f1;
}

.blog__word--20 {
	top: 65%;
	left: 80%;
	font-weight: 400;
	color: #e7e7e7;
}

/* Header + nav */
.blog__header {
	z-index: 1;
}

/* Carousel */
.blog__carousel {
	position: relative;
	z-index: 1;
}

.blog__track {
	align-items: flex-end;
}

/* Cards */
.blog__card {
	flex: 0 0 calc((100% - 3rem) / 3);
	min-height: 39rem;
	background-color: var(--color-white);
	border: 2px solid var(--color-accent);
	border-radius: 1.75rem;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	opacity: 0.7;
	transition: min-height 0.4s ease, opacity 0.4s ease;
}

.blog__card.is-active {
	min-height: 46.5rem;
	opacity: 1;
}

.blog__card-body {
	flex: 1;
	padding: 2.5rem 2rem;
	display: flex;
	flex-direction: column;
}

.blog__card-title {
	font-family: var(--font-primary);
	font-size: 2.25rem;
	font-weight: 800;
	line-height: 1.1;
	color: #271f0c;
	margin: 0 0 1.25rem;
}

.blog__card-excerpt {
	font-family: var(--font-primary);
	font-size: 1.125rem;
	font-weight: 400;
	line-height: 1.3;
	color: #271f0c;
	text-align: justify;
	flex: 1;
}

.blog__card-excerpt p {
	margin: 0;
}

.blog__card-link {
	font-family: var(--font-primary);
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.5;
	color: #271f0c;
	margin-top: 1rem;
	display: inline-block;
}

.blog__card-thumb {
	flex-shrink: 0;
	padding: 2rem;
}

.blog__card-thumb img {
	width: 100%;
	height: 12rem;
	object-fit: cover;
}

.blog__card.is-active .blog__card-thumb img {
	height: 12.5rem;
}

/* ==========================================================================
   Blog – Responsive
   ========================================================================== */

@media (max-width: 1024px) {
	.blog__card {
		flex: 0 0 calc((100% - 1.5rem) / 2);
		min-height: auto;
	}

	.blog__card.is-active {
		min-height: auto;
	}

	.blog__card-title {
		font-size: 1.75rem;
	}

	.blog__card-thumb {
		padding: 0;
	}
}

@media (max-width: 768px) {
	.blog__card {
		flex: 0 0 100%;
		min-height: auto;
		opacity: 1;
	}

	.blog__card.is-active {
		min-height: auto;
	}

	.blog__card-title {
		font-size: 1.5rem;
	}

	.blog__card-excerpt {
		font-size: 1rem;
	}

	.blog__bg-text {
		display: none;
	}

	section.blog > .container {
		width: 100%;
	}
}
