.tm-expertise-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.tm-expertise-badge {
    display: block !important;
    text-align: center !important;    padding: 0 !important;
    line-height: 1 !important;
}

.tm-expertise-title {
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 1rem 0 !important;
}

.tm-expertise-subtitle {
    line-height: 1.6;
}

.tm-expertise-card {
    position: relative;
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tm-expertise-card:hover {
    border-color: #3b82f6;
}

.tm-card-image img {
    transition: transform 0.3s ease;
}

.tm-expertise-card:hover .tm-card-image img {
    transform: scale(1.05);
}

.tm-card-icon {
    transition: all 0.3s ease;
    color: #3b82f6;
}

.tm-card-icon:empty {
    display: none;
}

.tm-card-features:empty {
    display: none;
}

.tm-card-features li:empty {
    display: none;
}

.tm-card-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tm-card-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    gap: 0.75rem;
}

.tm-card-button svg {
    transition: transform 0.3s ease;
}

.tm-card-button:hover svg {
    transform: translateX(3px);
}

.tm-card-icon svg,
.tm-card-icon i {
    color: inherit;
    fill: currentColor;
}

.tm-expertise-card:hover .tm-card-icon {
    transform: rotate(5deg) scale(1.1);
    color: #2563eb;
}

.tm-card-title {
    transition: color 0.3s ease;
}

.tm-expertise-card:hover .tm-card-title {
    color: #3b82f6;
}

.tm-card-features li {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.tm-expertise-card:hover .tm-card-features li:nth-child(1) {
    animation-delay: 0.1s;
}

.tm-expertise-card:hover .tm-card-features li:nth-child(2) {
    animation-delay: 0.2s;
}

.tm-expertise-card:hover .tm-card-features li:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .tm-expertise-wrapper {
        max-width: 100% !important;
        padding: 3rem 1.5rem !important;
    }
    
    .tm-expertise-title {
        font-size: 2rem !important;
    }
    
    .tm-expertise-subtitle {
        font-size: 1rem !important;
        max-width: 100% !important;
    }
    
    .tm-cards-grid {
        gap: 1.5rem !important;
    }
    
    .tm-expertise-card {
        padding: 1.5rem !important;
    }
    
    .tm-card-icon {
        width: 3.5rem !important;
        height: 3.5rem !important;
        font-size: 1.5rem !important;
    }
    
    .tm-card-icon svg {
        width: 1.5rem !important;
        height: 1.5rem !important;
    }
    
    .tm-card-title {
        font-size: 1.25rem !important;
    }
    
    .tm-card-description {
        font-size: 0.95rem !important;
    }
    
    .tm-card-image img {
        height: 10rem !important;
    }
}

@media (max-width: 768px) {
    .tm-expertise-wrapper {
        padding: 2rem 1rem !important;
    }
    
    .tm-expertise-title {
        font-size: 1.75rem !important;
        margin-bottom: 1rem !important;
    }
    
    .tm-expertise-subtitle {
        font-size: 0.95rem !important;
        margin-bottom: 2rem !important;
    }
    
    .tm-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }
    
    .tm-expertise-card {
        padding: 1.25rem !important;
    }
    
    .tm-card-icon {
        width: 3rem !important;
        height: 3rem !important;
        font-size: 1.25rem !important;
        margin-bottom: 1rem !important;
    }
    
    .tm-card-icon svg {
        width: 1.25rem !important;
        height: 1.25rem !important;
    }
    
    .tm-card-title {
        font-size: 1.125rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .tm-card-description {
        font-size: 0.9rem !important;
        margin-bottom: 1rem !important;
    }
    
    .tm-card-image {
        margin-bottom: 1rem !important;
    }
    
    .tm-card-image img {
        height: 8rem !important;
    }
    
    .tm-card-features li {
        font-size: 0.875rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .tm-card-features svg {
        width: 1rem !important;
        height: 1rem !important;
        margin-right: 0.5rem !important;
    }
}

@media (max-width: 480px) {
    .tm-expertise-wrapper {
        padding: 1.5rem 0.75rem !important;
    }
    
    .tm-expertise-title {
        font-size: 1.5rem !important;
    }
    
    .tm-expertise-subtitle {
        font-size: 0.875rem !important;
    }
    
    .tm-expertise-card {
        padding: 1rem !important;
    }
    
    .tm-card-icon {
        width: 2.5rem !important;
        height: 2.5rem !important;
        font-size: 1rem !important;
    }
    
    .tm-card-icon svg {
        width: 1rem !important;
        height: 1rem !important;
    }
    
    .tm-card-title {
        font-size: 1rem !important;
    }
    
    .tm-card-description {
        font-size: 0.85rem !important;
    }
    
    .tm-card-image img {
        height: 7rem !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .tm-expertise-card {
        background-color: #1e293b;
        border-color: #334155;
    }
    
    .tm-card-title {
        color: #f1f5f9;
    }
    
    .tm-card-description,
    .tm-card-features span {
        color: #cbd5e1;
    }
}
