/* Service Cards / Plan Cards / Parts Grid (Flexible Layouts) */
.card-grid {
    display: flex; /* Change to flexbox */
    flex-wrap: wrap; /* Allow items to wrap to the next line */
    justify-content: center; /* Center items when they wrap */
    gap: 20px;
    margin-top: 40px;
    max-width: 1200px; /* Increased max-width to allow 4 tiles */
    margin: 0 auto; /* Center the grid */
}

.card {
    /* Existing card styles */
    flex: 0 0 calc(25% - 20px); /* Adjusted for 4 wide, accounting for gap */
    min-width: 200px; /* Adjusted minimum width */
}

@media (max-width: 768px) {
    .card {
        flex: 1 1 100%; /* Full width on small screens */
    }
}

.card {
    background-color: #F8F8F8; /* Light gray for cards */
    padding: 10px 15px; /* Reduced vertical padding to make cards shorter */
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Soft shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #E0E0E0;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px); /* Lift effect on hover */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-level-icon {
    display: block;
    margin: 0 auto 15px;
    width: 75px; /* Adjust size as needed */
    height: 75px; /* Adjust size as needed */
}

.card h3 {
    text-align: center; /* Ensure heading is centered */
}

.card p {
    font-size: 0.85em; /* Smaller font size */
    color: #555555;
    margin-bottom: 5px; /* Further reduced margin */
    /* MODIFICATION: flex-grow removed to allow content to top-align */
}

.card ul { /* For plan cards specific lists */
    list-style: none;
    padding: 0;
    margin-bottom: 10px; /* Further reduced margin */
    text-align: left;
    flex-grow: 1;
}
.card ul li {
    padding: 5px 0; /* Reduced padding */
    border-bottom: 1px dashed #E0E0E0;
    padding-left: 0; /* Remove default bullet padding */
}
.card ul li::before {
    content: '';
}

.card ul li:last-child {
    border-bottom: none;
}

.card-buttons {
    display: flex;
    justify-content: center;
    gap: 10px; /* Adjust the space between buttons */
    margin-top: auto; /* Pushes the buttons to the bottom of the card */
}

.card-grid-two-columns .card {
    flex: 0 0 calc(50% - 20px); /* Two columns, accounting for gap */
}

@media (max-width: 768px) {
    .card-grid-two-columns .card {
        flex: 1 1 100%; /* Full width on small screens */
    }
}
