/* services-cards.css */
:root {
    --primary: #e63946;
    --primary-dark: #b91c1c;
    --secondary: #2563eb;
    --secondary-dark: #1e40af;
    --accent: #f97316;
    --text-dark: #111827;
    --text-light: #374151;
    --background: #f8fafc;
    --card-bg: #ffffff;
    --gradient: linear-gradient(135deg, #e63946, #f97316, #2563eb);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.np-services-cards {
    background: linear-gradient(135deg, #f9fafb 0%, #f1f5f9 100%);
    padding: 2rem 1.2rem;
    border-radius: 24px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.np-services-cards .container {
    width: 100%;
    margin: auto;
    border-radius: 16px;
    padding: 0 1px;
    box-sizing: border-box;
}

.np-services-cards h2 {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 800;
    color: #1A237E;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1px;
}

.np-services-cards h2:after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.np-cards-grid {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.np-card {
    flex: 1 1 calc(25% - 1.8rem);
    background: var(--card-bg);
    border-radius: 18px;
    padding: .6rem .4rem;
    text-align: center;
    box-shadow: 0 0px 6px rgb(0 0 0 / 57%);
    border-top: 8px solid var(--primary);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.np-card:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--gradient);
    opacity: 0.03;
    transition: height 0.5s ease;
    z-index: 0;
}

.np-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.np-card:hover:before {
    height: 100%;
}

.np-card .icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: .4rem;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.np-card:hover .icon {
    transform: scale(1.1);
    color: var(--secondary);
}

.np-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1A237E;
    margin-bottom: .5rem;
    position: relative;
    z-index: 1;
}

.np-card p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

.np-card p strong {
    color: var(--primary);
    font-weight: 600;
}

.np-card .learn-more {
    display: inline-block;
    margin-top: .5rem;
    padding: 5px 18px;
    background: transparent;
    color: var(--secondary);
    border: 1.5px solid var(--secondary);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.np-card .learn-more:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-2px);
}

/* ===== Responsive Design ===== */
@media (max-width: 1200px) {
    .np-card {
        flex: 1 1 calc(50% - 1.8rem);
    }
}

@media (max-width: 768px) {
    .np-services-cards {
        padding: 2rem 1.2rem;
    }
    
    .np-services-cards h2 {
        font-size: 1.7rem;
    }
    
    .np-cards-grid {
        gap: 1.5rem;
    }
    
    .np-card {
        flex: 1 1 100%;
        padding: 1.8rem 1.2rem;
    }
}

@media (max-width: 480px) {
    .np-services-cards {
        padding: .9rem .5rem;
        border-radius: 16px;
    }
    
    .np-services-cards h2 {
        font-size: 1.5rem;
    }
    
    .np-card {
        padding: .6rem .4rem;
    }
    
    .np-card .icon {
        font-size: 2rem;
    }
    
    .np-card h3 {
        font-size: 1.25rem;
    }
}