.service-card { flex: 1 1 calc(25% - 20px); /* Make each card take 25% width with a gap */ max-width: calc(25% - 20px); /* Restrict the max width of each card */ background: #fff; /* White background for each card */ border: 1px solid #ddd; /* Subtle border */ border-radius: 10px; /* Rounded corners */ text-align: center; /* Center align text inside the card */ padding: 20px; /* Add padding inside the card */ box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */ transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth hover effect */ } .service-card:hover { transform: translateY(-5px); /* Lift the card slightly on hover */ box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.2); /* Enhance shadow on hover */ } .service-card img { max-width: 100px; /* Restrict image size */ height: auto; /* Maintain aspect ratio */ margin-bottom: 15px; /* Space below the image */ }