/* Container Grid */
.service-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 500px));
    gap: 30px;
    padding: 20px 0;
    justify-content: center;
}

/* Individual Card */
.service-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Image Wrapper */
.service-card-image {
    position: relative;
    width: 100%;
    height: 344px;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Floating Icon */
.service-card-icon-floating {
    position: absolute;
    bottom: -30px; /* Pulls it down halfway into the content */
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 2;
    padding: 10px;
}

.service-card-icon-floating img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

/* Content Body */
.service-card-body {
    padding: 45px 25px 25px; /* Top padding is larger to make room for icon */
    text-align: left;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #000;
}

.service-card-excerpt {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* Link Styling */
.service-card-link {
    text-decoration: none !important;
    color: #003366; /* Match the dark blue in your image */
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    transition: opacity 0.2s;
}

.service-card-link .arrow {
    margin-left: 8px;
    font-size: 1.1rem;
}

.service-card-link:hover {
    opacity: 0.7;
}