.blog-recent-grid {
	width: 100%;
	padding: 40px 0;
}

.blog-recent-grid__container {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px;
	margin: 0 auto;
}

.blog-recent-grid__card {
	position: relative;
	border-radius: 20px;
	padding: 30px;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	display: flex;
	flex-direction: column;
	min-height: 400px;
	overflow: hidden;
}

.blog-recent-grid__card-bg {
	position: absolute;
    top: 0;
    left: -20%;
    width: 140%;
    height: 140%;
    background-image: url('images/bg-blog-grid.webp');
    background-size: cover;
    background-position: bottom 0px center;
    background-repeat: no-repeat;
    z-index: 0;
    opacity: 0.07;
}

.blog-recent-grid__card:nth-child(2) .blog-recent-grid__card-bg {
	transform: rotateX(180deg);
    background-position: bottom -50px center;
}

.blog-recent-grid__card:nth-child(3) .blog-recent-grid__card-bg {
    background-position: bottom 0px center;
	width: 120%;
	height: 120%;
	left: -10%;
}

.blog-recent-grid__card:hover {
	transform: translateY(-5px);
}

.blog-recent-grid__badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 10px;
	border: 0.5px solid #74F0FF;
	border-radius: 8px;
	background: #FFFFFF08;
	margin-bottom: 20px;
	width: fit-content;
	box-shadow: 0px 4px 10px 0px #FFFFFF40 inset;
	position: relative;
	z-index: 1;
}

.blog-recent-grid__badge svg {
	width: 15px;
	height: 14px;
	flex-shrink: 0;
}

.blog-recent-grid__badge span {
	color: var(--color-custom);
	font-size: 14px;
}

.blog-recent-grid__title {
	margin: 0 0 20px 0;
	color: #ffffff;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.4;
	max-height: calc(1.4em * 2); /* 2 lines based on line-height */
	position: relative;
	z-index: 1;
}

.blog-recent-grid__title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.3s ease;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.blog-recent-grid__title a:hover {
	color: rgba(100, 200, 220, 0.9);
}

.blog-recent-grid__excerpt {
	flex: 1;
	margin-bottom: 25px;
	color: rgba(255, 255, 255, 1);
	position: relative;
	z-index: 1;
}

.blog-recent-grid__button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	border-radius: 100px;
	background: #FFFFFF08;
	backdrop-filter: blur(10px);
	color: #ffffff;
	text-decoration: none;
	font-size: 18px;
	transition: all 0.3s ease;
	width: fit-content;
	margin-bottom: 25px;
	font-weight: 400;
	font-family: inherit;
	cursor: pointer;
	position: relative;
	z-index: 1;
}

.blog-recent-grid__button:hover {
	background: #ffffff;
	color: #366EFC;
}

.blog-recent-grid__button:hover .blog-recent-grid__button-arrow svg path {
	fill: #366EFC;
}

.blog-recent-grid__button-text {
	display: inline-block;
	position: relative;
	top: -3px;
}

.blog-recent-grid__button-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.3s ease;
}

.blog-recent-grid__button-arrow svg {
	width: 7px;
	height: 12px;
	display: block;
}

.blog-recent-grid__footer {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-top: auto;
	color: rgba(255, 255, 255, 0.6);
	font-size: 16px;
	position: relative;
	z-index: 1;
}

.blog-recent-grid__separator {
	color: rgba(255, 255, 255, 0.3);
	font-size: 12px;
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
	.blog-recent-grid__container {
		gap: 25px;
	}
}

@media screen and (max-width: 768px) {
	.blog-recent-grid__container {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.blog-recent-grid__card {
		min-height: auto;
		padding: 20px;
	}
}

