/* Premium Tool Card Styling - Category Page */
.tw-tool-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(245, 245, 245, 0.9));
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 10px 10px 15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    justify-content: flex-start;
    text-decoration: none !important;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.tw-tool-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: -1;
    margin: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, #667eea, transparent, #764ba2);
    opacity: 0;
    transition: opacity 0.5s ease;
}
.tw-tool-card:hover::before { opacity: 1; }
.tw-tool-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(102,126,234,0.3), 0 0 30px rgba(102,126,234,0.15);
    border-color: #667eea;
}
.tw-custom-img-icon {
    width: 148px;
    height: 132px;
    margin: 0 auto 8px;
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    padding: 0;
    overflow: visible;
    flex-shrink: 0;
}
.tw-custom-img-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    mix-blend-mode: multiply;
    transform: scale(1);
}
.tw-tool-icon-box {
    width: 148px;
    height: 132px;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tw-tool-icon-box i {
    font-size: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(102,126,234,0.3);
}
.tw-tool-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
    line-height: 1.25;
}
.tw-tool-desc {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tw-cat-tag { display: none; }
.tw-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    padding: 0;
}
@media (max-width: 768px) {
    .tw-tools-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .tw-tool-card { padding: 15px 10px; min-height: 180px; }
    .tw-custom-img-icon, .tw-tool-icon-box { width: 68px !important; height: 68px !important; }
    .tw-custom-img-icon img { transform: scale(1) !important; }
    .tw-tool-icon-box i { font-size: 28px !important; }
    .tw-tool-title { font-size: 0.85rem; }
}
