/* File: src/css/services-page.css */

.services-grid {
    display: grid;
    /* Create a responsive grid that fits as many cards as possible */
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
    padding-top: 20px;
}

.service-card {
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 35px 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    /* This ensures anchor links land below the sticky header */
    scroll-margin-top: 120px; 
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.service-icon {
    font-size: 2.8rem;
    color: var(--color-primary);
    margin-bottom: 20px;
    line-height: 1;
}

.service-card h3 {
    font-size: 1.4rem;
    color: var(--color-primary-darker);
    margin-bottom: 20px;
    /* Set a minimum height to help align titles across cards */
    min-height: 2.6em; 
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
}

.service-card ul {
    list-style: none;
    padding: 20px 0 0 0;
    text-align: left;
    margin-top: auto; /* Pushes the list down if card heights differ */
    border-top: 1px solid var(--color-border);
}

.service-card ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Use FontAwesome checkmark icon for list items */
.service-card ul li::before {
    content: '\f058'; 
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--color-primary);
    position: absolute;
    left: 0;
    top: 5px;
    font-size: 1em;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    .service-card h3 {
        min-height: 0; /* Reset min-height on mobile */
    }
}