/**
 * =================================================================
 * Elementor Widget: AI Directory Header V2 Styles
 * =================================================================
 */
.egns-header-wrapper {
    /* Define variables if theme doesn't provide them */
    --h-primary: #000;
    --h-text: #1a1a1a;
    --h-subtext: #555;
    --h-border: #e0e0e0;
    --h-bg-soft: #f9f9f9;
    
    padding: 40px 0 60px 0;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}
.egns-header-text { margin-bottom: 30px; padding: 0 15px; }
.egns-header-text h1, .egns-header-text h2, .egns-header-text h3 {
    font-size: clamp(30px, 5vw, 48px);
    font-weight: 800;
    margin: 0 0 10px 0;
    line-height: 1.1;
    color: var(--h-text);
}
.egns-header-text p {
    font-size: clamp(16px, 2vw, 20px);
    max-width: 700px;
    margin: 0 auto;
    color: var(--h-subtext);
}
.egns-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
}
.egns-search-wrapper {
    flex-grow: 1;
    position: relative;
    min-width: 250px;
    max-width: 550px;
}
.egns-search-input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid var(--h-border);
    border-radius: 50px;
    background: var(--h-bg-soft);
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}
.egns-search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--h-subtext);
}
.egns-filter-pill { 
    padding: 12px 18px;
    border-radius: 50px;
    border: 1px solid var(--h-border);
    background: #fff;
    cursor: pointer; 
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s;
    /* Ensure cursor is pointer */
    cursor: pointer;
}
.egns-filter-pill:hover, 
.egns-filter-pill.active {
    background: var(--h-primary);
    color: #fff;
    border-color: var(--h-primary);
}
@media (max-width: 768px) {
    .egns-filter-row { justify-content: flex-start; }
}