/* ========================================
 * SEARCH PAGE STYLING
 * ======================================== */

/* Hide footer link on desktop, show header link */
.view-all-cpt-link--footer {
    display: none;
}

.view-all-cpt-link--header {
    display: flex;
}

/* Search term styling */
.search-term {
    margin-bottom: 1.5rem;
    display: block;
    color: #333;
    font-size: 1.1rem;
}

.search-refine-label {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.search-input {
    flex: 1;
    min-width: 200px;
    padding: 0.75rem 1rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #186396;
    box-shadow: 0 0 0 2px rgba(24, 99, 150, 0.1);
}

/* Search button styling */
.search-results-form .theme-btn {
    justify-content: flex-start;
}





/* ========================================
 * SOLUTIONS, INDUSTRIES & ARTICLES - ZOOMED IMAGES
 * ======================================== */

/* Solutions, Industries and Articles should be zoomed to fill (object-fit: cover) */
.search-results-list .search-result-card--solutions .search-result-image img,
.search-results-list .search-result-card--industries .search-result-image img,
.search-results-list .search-result-card--articles .search-result-image img,
.search-result-card--learn .search-result-image img {
    object-fit: cover !important; /* Zoom to fill the square */
}

/* ========================================
 * MOBILE RESPONSIVE STYLING
 * ======================================== */

@media (max-width: 768px) {
    /* Stack search form elements on mobile */
    .search-results-form {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 1rem !important;
    }
    
    .search-refine-label {
        margin-bottom: 0.5rem !important;
    }
    
    .search-input {
        width: 100% !important;
    }
    
    .search-results-form .theme-btn {
        width: 60%;
        margin-bottom: 60px;
    }
    .search-results-tabs {
        display: none;
    }
    
    /* Stack search results section header on mobile */
    .search-results-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        text-align: left;
    }
    
    .search-results-section-title-group {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        text-align: left;
        align-items: flex-start;
    }
    
    .search-results-section-title {
        text-align: left;
    }
    
    .cpt-count-label {
        margin-left: 0;
        text-align: left;
    }
    
    /* Hide header link on mobile, show footer link */
    .view-all-cpt-link--header {
        display: none !important;
    }
    
    .view-all-cpt-link--footer {
        display: flex !important;
        text-align: left;
        align-self: flex-start;
        margin-top: 1.5rem;
    }
    
    .search-results-section {
        display: flex;
        flex-direction: column;
    }
}
