/* Tool Grid Styles */
.jq-tools-grid-wrapper {
    background: transparent;
    padding: 0;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    box-sizing: border-box;
}

.jq-tools-grid-wrapper * {
    box-sizing: border-box;
}

/* Filter Bar - Modern Inline Design */
.jq-filter-bar {
    display: flex;
    align-items: center;
    background-color: #2b2f3a;
    border-radius: 50px;
    padding: 8px 8px 8px 24px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
    position: relative;
    z-index: 100;
}

.jq-filter-search {
    display: flex;
    align-items: center;
    flex: 2;
    min-width: 200px;
}

.jq-filter-icon {
    color: #b2ffff;
    margin-right: 12px;
    flex-shrink: 0;
}

.jq-filter-search input {
    background: transparent;
    border: none;
    color: #fff;
    width: 100%;
    font-size: 15px;
    outline: none;
    padding: 10px 0;
}

.jq-filter-search input::placeholder {
    color: #888;
}

.jq-filter-divider {
    width: 1px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 0 16px;
}

.jq-custom-dropdown {
    position: relative;
    flex: 1;
    min-width: 150px;
}

.jq-dropdown-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px 0;
    user-select: none;
}

.jq-dropdown-label {
    color: #fff;
    font-size: 15px;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jq-chevron {
    color: #888;
    margin-left: 8px;
    transition: transform 0.2s;
}

.jq-custom-dropdown.is-open .jq-chevron {
    transform: rotate(180deg);
}

.jq-dropdown-menu {
    position: absolute;
    top: calc(100% + 20px);
    left: 0;
    background-color: #2b2f3a;
    border-radius: 12px;
    padding: 12px 0;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
}

.jq-custom-dropdown.is-open .jq-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.jq-checkbox-label {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.jq-checkbox-label:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.jq-checkbox-label input[type="checkbox"] {
    margin-right: 12px;
    cursor: pointer;
    accent-color: #b2ffff;
}

.jq-filter-submit-btn {
    background-color: #b2ffff;
    /* Leafy green from image */
    color: #1a1a24;
    border: none;
    padding: 12px 32px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    margin-left: 16px;
}

.jq-filter-submit-btn:hover {
    background-color: #6eb7b5;
}

@media (max-width: 900px) {
    .jq-filter-bar {
        flex-direction: column;
        border-radius: 16px;
        padding: 20px;
        align-items: stretch;
    }

    .jq-filter-divider {
        width: 100%;
        height: 1px;
        margin: 16px 0;
    }

    .jq-filter-submit-btn {
        margin-left: 0;
        margin-top: 16px;
    }

    .jq-dropdown-menu {
        width: 100%;
        position: static;
        box-shadow: none;
        border: none;
        background-color: rgba(0, 0, 0, 0.1);
        display: none;
        margin-top: 10px;
        transform: none;
    }

    .jq-custom-dropdown.is-open .jq-dropdown-menu {
        display: block;
    }
}

@keyframes fadeUpCard {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Grid & Cards */
.jq-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 50px 24px;
    padding-top: 40px;
}

.jq-tool-card {
    background: linear-gradient(135deg, #1a1a24 0%, #4d5667 100%);
    border-radius: 20px;
    padding: 56px 24px 24px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-height: 280px;
    position: relative;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    animation: fadeUpCard 0.4s ease-out;
}

.jq-tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.jq-tool-icon {
    width: 64px;
    height: 64px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -32px;
    left: 24px;
}

.jq-tool-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.jq-tool-title {
    font-size: 26px !important;
    font-weight: 500 !important;
    margin: 0 0 16px 0 !important;
    color: #ffffff !important;
    line-height: 1.3 !important;
    letter-spacing: -0.5px;
}

.jq-tool-desc {
    font-size: 15px !important;
    color: rgba(255, 255, 255, 0.7) !important;
    margin: 0 !important;
    line-height: 1.6 !important;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.jq-tool-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
}

.jq-tool-btn {
    background-color: #ffffff;
    color: #1a1a24;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    transition: background-color 0.2s, transform 0.1s;
    display: inline-block;
}

.jq-tool-card:hover .jq-tool-btn {
    transform: scale(1.02);
}

.jq-tool-tag {
    background-color: rgba(0, 0, 0, 0.25);
    color: rgba(255, 255, 255, 0.65);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .jq-tools-grid {
        grid-template-columns: 1fr;
        padding-top: 40px;
    }
}