/* ==============================================================
    # Profile Grid Responsive Fixes
=================================================================== */

/* Base styles for profile grid images */
.profile-grid ul li img {
	max-width: 100%;
	height: auto;
	object-fit: contain;
	margin: 15px auto;
	display: block;
}

/* Icon list container improvements */
.profile-grid .icon-list {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	padding: 10px;
}

/* Icon list images - responsive sizing */
.profile-grid ul li .icon-list img {
	height: 44px;
	width: auto;
	max-width: 44px;
	margin: 5px;
	object-fit: contain;
	transition: transform 0.3s ease;
}

.profile-grid ul li .icon-list img:hover {
	transform: scale(1.1);
}

/* Workflow image specific styling */
.profile-grid ul li a img[alt*="workflow"],
.profile-grid ul li a img[alt*="Workflow"] {
	width: 100px !important;
	height: 100px !important;
	max-width: 100px;
	max-height: 100px;
	margin: 15px auto !important;
	object-fit: contain;
}

/* Strong letter styling - responsive */
.profile-grid ul li strong {
	font-size: clamp(60px, 15vw, 100px);
	display: block;
	margin: 10px auto;
}

/* Tablet and smaller devices */
@media (max-width: 991px) {
	.profile-grid ul li .icon-list img {
		height: 38px;
		max-width: 38px;
	}

	.profile-grid ul li a img[alt*="workflow"],
	.profile-grid ul li a img[alt*="Workflow"] {
		width: 80px !important;
		height: 80px !important;
		max-width: 80px;
		max-height: 80px;
	}

	.profile-grid ul li strong {
		font-size: clamp(50px, 12vw, 80px);
	}
}

/* Mobile devices */
@media (max-width: 767px) {
	.profile-grid ul li .icon-list img {
		height: 32px;
		max-width: 32px;
		margin: 3px;
	}

	.profile-grid ul li a img[alt*="workflow"],
	.profile-grid ul li a img[alt*="Workflow"] {
		width: 70px !important;
		height: 70px !important;
		max-width: 70px;
		max-height: 70px;
		margin: 10px auto !important;
	}

	.profile-grid ul li strong {
		font-size: clamp(45px, 10vw, 70px);
	}

	/* Improve grid spacing on mobile */
	.profile-grid ul li a {
		padding: 15px 10px;
		min-height: 140px;
	}
}

/* Small mobile devices */
@media (max-width: 480px) {
	.profile-grid ul li .icon-list img {
		height: 28px;
		max-width: 28px;
		margin: 2px;
	}

	.profile-grid ul li a img[alt*="workflow"],
	.profile-grid ul li a img[alt*="Workflow"] {
		width: 60px !important;
		height: 60px !important;
		max-width: 60px;
		max-height: 60px;
		margin: 8px auto !important;
	}

	.profile-grid ul li strong {
		font-size: clamp(40px, 9vw, 60px);
		margin: 5px auto;
	}

	.profile-grid .icon-list {
		gap: 5px;
		padding: 5px;
	}

	.profile-grid ul li a {
		padding: 12px 8px;
		min-height: 120px;
	}
}

/* Extra small devices */
@media (max-width: 360px) {
	.profile-grid ul li .icon-list img {
		height: 24px;
		max-width: 24px;
	}

	.profile-grid ul li a img[alt*="workflow"],
	.profile-grid ul li a img[alt*="Workflow"] {
		width: 50px !important;
		height: 50px !important;
		max-width: 50px;
		max-height: 50px;
	}

	.profile-grid ul li strong {
		font-size: clamp(35px, 8vw, 50px);
	}
}

/* Prevent image overflow and maintain aspect ratio */
.profile-grid ul li a {
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

/* Ensure images don't break layout */
.profile-grid img {
	max-width: 100%;
	height: auto;
}
