/* ==========================================================================
   GF Blogs widget
   ========================================================================== */

/* Header */
.gf-blogs__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	margin-bottom: 60px;
	text-align: center;
}

.gf-blogs__title {
	margin: 0;
	font-family: var(--gf-font-alt);
	font-size: 64px;
	font-weight: 500;
	line-height: 1.16;
	letter-spacing: -1.28px;
	color: var(--gf-navy);
}

.gf-blogs__subtitle {
	max-width: 889px;
	margin: 0;
	font-family: var(--gf-font-body);
	font-size: 18px;
	line-height: 1.43;
	letter-spacing: -.36px;
	color: #808080;
}

.gf-blogs__empty {
	padding: 40px;
	border: 1px dashed #ccc;
	text-align: center;
}

/* Grid */
.gf-blogs__grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 9px;
}

/* Card */
.gf-blog-card {
	display: flex;
	flex-direction: column;
	gap: 26px;
	padding: 17.5px 17.5px 24px;
	background-color: var(--gf-white);
	border: 1px solid #dfdfdf;
	border-radius: 9px;
	box-shadow: 0 4px 26.6px rgba(0, 0, 0, .13);
}

.gf-blog-card__media {
	position: relative;
	display: block;
	aspect-ratio: 313 / 293.5;
	overflow: hidden;
	background-color: #f6f6f6;
	border-radius: 8.439px;
}

.gf-blog-card__img {
	position: absolute;
	inset: 0;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
	transition: transform .6s ease;
}

.gf-blog-card:hover .gf-blog-card__img {
	transform: scale(1.05);
}

.gf-blog-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
}

.gf-blog-card__title {
	display: -webkit-box;
	min-height: calc(3 * 1.43em);
	margin: 0;
	overflow: hidden;
	font-family: var(--gf-font-alt);
	font-size: 24px;
	font-weight: 500;
	line-height: 1.43;
	letter-spacing: -.48px;
	color: #151515;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.gf-blog-card__title a {
	color: inherit;
	text-decoration: none;
	transition: color .2s ease;
}

.gf-blog-card__title a:hover,
.gf-blog-card__title a:focus {
	color: var(--gf-navy);
}

.gf-blog-card__more {
	margin-top: auto;
	font-family: var(--gf-font-body);
	font-size: 20.13px;
	line-height: 1.43;
	letter-spacing: -.4px;
	color: #000;
	text-decoration: underline;
	text-underline-position: from-font;
	transition: color .2s ease;
}

.gf-blog-card__more:hover,
.gf-blog-card__more:focus {
	color: var(--gf-red);
}

/* Button */
.gf-blogs__footer {
	display: flex;
	justify-content: center;
	margin-top: 60px;
}

.gf-blogs__footer .gf-btn-arrow {
	min-width: 209px;
	padding-left: 29px;
}

/* Responsive */
@media (max-width: 1599px) {
	.gf-blog-card__title {
		font-size: 20px;
	}

	.gf-blog-card__more {
		font-size: 17px;
	}
}

@media (max-width: 1440px) {
	.gf-blogs__title {
		font-size: 56px;
	}
}

@media (max-width: 1024px) {
	.gf-blogs__grid {
		gap: 20px;
	}
}

@media (max-width: 767px) {
	.gf-blogs__head {
		margin-bottom: 36px;
	}

	.gf-blogs__title {
		font-size: 40px;
		letter-spacing: -.8px;
	}

	.gf-blogs__subtitle {
		font-size: 15px;
	}

	.gf-blog-card {
		gap: 20px;
	}

	.gf-blog-card__title {
		min-height: 0;
		font-size: 20px;
	}

	.gf-blogs__footer {
		margin-top: 36px;
	}
}
