/**
 * Niche Services Home Section
 * Unique classes - no conflicts with existing styles
 */

.niche-services-home-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 5rem 0;
    position: relative;
}

.niche-section-header-wrapper {
    text-align: center;
    margin-bottom: 4rem;
}

.niche-section-tag-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    color: var(--platform-primary);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.niche-section-main-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.niche-section-subtitle-text {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.niche-services-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.niche-service-showcase-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.niche-service-showcase-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    transition: transform 0.3s ease;
    transform: scaleX(0);
    transform-origin: left;
}

.niche-service-showcase-card:hover::before {
    transform: scaleX(1);
}

.niche-service-showcase-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Card Type Variations */
.niche-card-associate::before {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.niche-card-associate:hover {
    border-color: #667eea;
}

.niche-card-msme::before {
    background: linear-gradient(135deg, #16a34a, #059669);
}

.niche-card-msme:hover {
    border-color: #16a34a;
}

.niche-card-loans::before {
    background: linear-gradient(135deg, #0891b2, #06b6d4);
}

.niche-card-loans:hover {
    border-color: #0891b2;
}

.niche-card-icon-wrapper {
    width: 90px;
    height: 90px;
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: white;
    transition: all 0.3s ease;
}

.niche-card-associate .niche-card-icon-wrapper {
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.niche-card-msme .niche-card-icon-wrapper {
    background: linear-gradient(135deg, #16a34a, #059669);
    box-shadow: 0 8px 25px rgba(22, 163, 74, 0.3);
}

.niche-card-loans .niche-card-icon-wrapper {
    background: linear-gradient(135deg, #0891b2, #06b6d4);
    box-shadow: 0 8px 25px rgba(8, 145, 178, 0.3);
}

.niche-service-showcase-card:hover .niche-card-icon-wrapper {
    transform: scale(1.1) rotate(-5deg);
}

.niche-card-title-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.niche-card-description-text {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.niche-card-stats-row {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.75rem;
}

.niche-stat-item-box {
    text-align: center;
}

.niche-stat-number-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.niche-stat-label-text {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.niche-card-action-button {
    width: 100%;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.niche-card-associate .niche-card-action-button {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.niche-card-msme .niche-card-action-button {
    background: linear-gradient(135deg, #16a34a, #059669);
}

.niche-card-loans .niche-card-action-button {
    background: linear-gradient(135deg, #0891b2, #06b6d4);
}

.niche-card-action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    color: white;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 991px) {
    .niche-services-home-section {
        padding: 4rem 0;
    }
    
    .niche-section-main-title {
        font-size: 2rem;
    }
    
    .niche-services-grid-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .niche-services-home-section {
        padding: 3rem 0;
    }
    
    .niche-section-main-title {
        font-size: 1.75rem;
    }
    
    .niche-service-showcase-card {
        padding: 2rem 1.5rem;
    }
    
    .niche-card-stats-row {
        flex-direction: column;
        gap: 1rem;
    }
}