﻿.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    justify-content: center;
    width: 100%;
    padding: 2rem;
}

@media (max-width: 1600px) {
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.25rem;
    }
}

.tool-card-fancy {
    position: relative;
    display: block;
    background: linear-gradient(135deg, var(--primary-color, #0B2447), #0b2a54);
    border-radius: 1rem;
    padding: 1.5rem 2rem;
    color: white;
    text-decoration: none;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

    .tool-card-fancy::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 8px;
        background-color: var(--secondary-color, #CFA551);
        border-top-left-radius: 1rem;
        border-bottom-left-radius: 1rem;
    }

    .tool-card-fancy:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
        background: linear-gradient(135deg, #0a2042, #081a35);
    }

.tool-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
}

.tool-icon {
    font-size: 2.8rem;
    color: white;
    flex-shrink: 0;
}

.tool-title-container {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tool-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: white;
    line-height: 1.3rem;
}

.tool-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrow-icon {
    font-size: 1.75rem;
    transition: transform 0.2s ease;
    color: white;
    opacity: 0.8;
}

.tool-card-fancy:hover .arrow-icon {
    transform: translateX(6px);
    opacity: 1;
}
