/* Services Styles */
/* Reference: responsive-core.css */

.services-filterable-section {
    padding-block: var(--section-spacing);
}

.section-title-modern {
    font-size: var(--font-h2);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--gap-lg);
    color: var(--primary-navy);
}

.section-title-modern span {
    color: var(--accent-orange);
}

.service-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: var(--gap-lg);
}

.service-filters .filter-btn {
    background: transparent;
    border: 1px solid var(--border-gray);
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: var(--font-small);
    color: var(--text-light);
}

.service-filters .filter-btn.active,
.service-filters .filter-btn:hover {
    background: var(--accent-orange);
    color: #fff;
    border-color: var(--accent-orange);
}

.services-grid-modern {
    display: grid;
    /* Responsive Grid: min 280px is better for small mobiles */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--gap-md);
}

.service-card-modern {
    background: var(--bg-white);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card-modern:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.service-image-modern {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.service-image-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card-modern:hover .service-image-modern img {
    transform: scale(1.1);
}

.service-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
}

.service-card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary-navy);
}

.service-card-content h3 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.service-card-content h3 a:hover {
    color: var(--accent-orange);
}

.service-card-content p {
    flex-grow: 1;
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.service-card-content .read-more {
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    align-self: center;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.service-card-content .read-more:hover {
    background-color: rgba(255, 106, 61, 0.1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}