/* ================================
   FILTER WRAPPER + BAR
================================= */
.ai-tools-filter-wrapper {
    margin: 20px 0;
}

.ai-tools-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    flex-wrap: wrap;
    margin-bottom: 30px;
}

/* Advanced filter label + icon */
.advanced-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 14px;
    color: #111827;
}

/* Filter selects */
.filters-group {
    display: flex;
    gap: 10px;
    flex: 1;
    align-items: center;
    flex-wrap: wrap;
}
.filter-select {
    padding: 8px 12px;
    border: 1px solid #e6e9ef;
    border-radius: 8px;
    min-width: 150px;
    background: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.filter-select:focus {
    border-color: #0b5cff;
    box-shadow: 0 0 0 2px rgba(11,92,255,0.15);
    outline: none;
}

/* View toggle (grid / list buttons) */
.view-toggle {
    display: flex;
    gap: 8px;
    margin-left: auto;
}
.toggle-btn {
    border: 1px solid #e6e9ef;
    background: #f7fafc;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    transition: all 0.2s ease;
}
.toggle-btn:hover {
    background: #e5e7eb;
}
.toggle-btn.active {
    background: #111827;
    color: #fff;
    border-color: #111827;
}

/* ================================
   RESULTS GRID / LIST
================================= */
#ai-tools-results {
    margin-top: 20px;
}

/* Grid: 4 columns desktop */
#ai-tools-results.ai-tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Responsive breakpoints */
@media (max-width: 1024px) {
    #ai-tools-results.ai-tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 767px) {
    #ai-tools-results.ai-tools-grid {
        grid-template-columns: 1fr;
    }
}

/* List: single full-width rows */
#ai-tools-results.ai-tools-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
#ai-tools-results.ai-tools-list > .ai-tool-card {
    width: 100%;
}

/* ================================
   CARD STYLING
================================= */
.ai-tool-card {
    width: 100% !important;
   /* background: #fff;
    border: 1px solid #eaeaea;*/
/*    border-radius: 12px;*/
   /* overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;*/
/*    box-shadow: 0 2px 6px rgba(0,0,0,0.04);*/
}
.ai-tool-card:hover {
    transform: translateY(-3px);
/*    box-shadow: 0 6px 16px rgba(0,0,0,0.08);*/
}

/* Reset Elementor inside */
.ai-tool-card .elementor,
.ai-tool-card .elementor-section,
.ai-tool-card .elementor-container,
.ai-tool-card .elementor-widget-wrap {
    width: 100% !important;
    max-width: 100% !important;
    /*margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;*/
}
.ai-tool-card .elementor{
    height: 435px;
}
.ai-tool-card #ai-tools-grid {
    height: 430px;
}
.ai-tool-card .elementor-column {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
}

.ai-tools-list section.elementor-section {
    height: 160px;
}
.ai-tools-list .elementor {
    height: 175px !important;
    margin: 0;
}
/* Equal height fix */
#ai-tools-results.ai-tools-grid .ai-tool-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ai-tools-list img.attachment-large.size-large.wp-image-21389 {
    height: 115px;
    width: 100%;
}
/* ================================
   LOAD MORE
================================= */
.load-more-wrap {
    text-align: center;
    margin-top: 24px;
}
.load-more-btn {
    background: #0b5cff;
    color: #fff;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}
.load-more-btn:hover {
    background: #094ad4;
    transform: translateY(-2px);
}
.load-more-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* ================================
   NO RESULTS
================================= */
.no-results {
    padding: 30px;
    text-align: center;
    font-size: 16px;
    color: #666;
    background: #fafafa;
    border-radius: 8px;
}
