.modernpress-search-container {
        position: relative;
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }

    .modernpress-search-wrapper {
        position: relative;
        display: flex;
        align-items: center;
        width: 100%;
    }

    .modernpress-search-input {
        width: 100%;
        padding: 12px 45px;
        font-size: 16px;
        border: 1px solid #E1E4EB;
        border-radius: 8px;
        outline: none;
        transition: all 0.3s ease;
    }

    .modernpress-search-input:focus {
        border-color: #0D3FB0;
        box-shadow: 0 0 0 2px rgba(13, 63, 176, 0.1);
    }

    .search-icon,
    .filter-icon {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        color: #6B7280;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: color 0.3s ease;
    }

    .search-icon {
        left: 12px;
    }

    .filter-icon {
        right: 12px;
        cursor: pointer;
    }

    .filter-icon:hover {
        color: #0D3FB0;
    }

    .modernpress-search-results {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        border-radius: 8px;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        margin-top: 8px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        z-index: 100;
        max-height: 400px;
        overflow-y: auto;
    }

    .modernpress-search-results.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .search-result-item {
        padding: 12px 16px;
        border-bottom: 1px solid #E5E7EB;
        cursor: pointer;
        transition: background 0.2s ease;
    }

    .search-result-item:last-child {
        border-bottom: none;
    }

    .search-result-item:hover {
        background: #F3F4F6;
    }

    .search-result-title {
        font-weight: 500;
        color: #1F2937;
        margin-bottom: 4px;
    }

    .search-result-excerpt {
        font-size: 14px;
        color: #6B7280;
    }

    .no-results {
        padding: 16px;
        text-align: center;
        color: #6B7280;
    }

    /* .modernpress-search-input.loading {
        background-image: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%236B7280" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/></svg>');
        background-repeat: no-repeat;
        background-position: right 45px center;
        background-size: 20px;
        animation: spin 1s linear infinite;
    } */

    .search-result-item {
        display: flex;
        gap: 12px;
        align-items: center;
        padding: 12px 16px;
        border-bottom: 1px solid #E5E7EB;
        cursor: pointer;
        transition: background-color 0.2s ease;
    }

    .search-result-item:hover,
    .search-result-item.selected {
        background-color: #F3F4F6;
    }

    .search-result-thumbnail {
        flex-shrink: 0;
        width: 50px;
        height: 50px;
        border-radius: 4px;
        overflow: hidden;
    }

    .search-result-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .search-result-content {
        flex-grow: 1;
    }

    .search-loading,
    .no-results,
    .search-error {
        padding: 16px;
        text-align: center;
        color: #6B7280;
    }

    .search-error {
        color: #EF4444;
    }

    .search-results-footer {
        padding: 12px 16px;
        background: #F9FAFB;
        color: #6B7280;
        font-size: 14px;
        text-align: center;
        border-top: 1px solid #E5E7EB;
    }

    /* @keyframes spin {
        from {
            transform: rotate(0deg);
        }

        to {
            transform: rotate(360deg);
        }
    } */

    .search-result-categories {
        margin-top: 4px;
        display: flex;
        gap: 4px;
        flex-wrap: wrap;
    }

    .search-result-categories .category-tag {
        font-size: 12px;
        padding: 2px 6px;
        background: rgba(13, 63, 176, 0.08);
        border-radius: 4px;
        color: #0D3FB0;
    }

    .modernpress-filter-dropdown {
        position: absolute;
        top: calc(100% + 5px);
        right: 0;
        background: white;
        border-radius: 8px;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        padding: 16px;
        width: 280px;
        display: none;
        z-index: 1000;
    }

    .modernpress-filter-dropdown.active {
        display: block;
        animation: fadeInDown 0.2s ease-out;
    }

    @keyframes fadeInDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .filter-section {
        margin-bottom: 16px;
    }

    .filter-section:last-child {
        margin-bottom: 0;
    }

    .filter-section h4 {
        font-size: 14px;
        font-weight: 600;
        color: #374151;
        margin: 0 0 8px 0;
    }

    .filter-section select {
        width: 100%;
        padding: 8px;
        border: 1px solid #E5E7EB;
        border-radius: 6px;
        font-size: 14px;
        color: #4B5563;
        background-color: #F9FAFB;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .filter-section select:hover {
        border-color: #D1D5DB;
    }

    .filter-section select:focus {
        outline: none;
        border-color: #0D3FB0;
        box-shadow: 0 0 0 2px rgba(13, 63, 176, 0.1);
    }

    .filter-actions {
        display: flex;
        gap: 8px;
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid #E5E7EB;
    }

    .filter-actions button {
        flex: 1;
        padding: 8px 16px;
        border: none;
        border-radius: 6px;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .apply-filters {
        background-color: #0D3FB0;
        color: white;
    }

    .apply-filters:hover {
        background-color: #0C38A0;
    }

    .reset-filters {
        background-color: #F3F4F6;
        color: #374151;
    }

    .reset-filters:hover {
        background-color: #E5E7EB;
    }

    /* Filter icon animation */
    .filter-icon {
        cursor: pointer;
        transition: transform 0.2s ease;
    }

    .filter-icon:hover {
        /* transform: scale(1.1); */
    }

    .filter-icon.active {
        color: #0D3FB0;
    }

    /* Search Results Footer Link Style */
    .search-results-footer {
        padding: 12px 16px;
        background: #F9FAFB;
        border-top: 1px solid #E5E7EB;
    }

    .search-results-footer .view-all-results {
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: #4B5563;
        text-decoration: none;
        transition: color 0.2s ease;
        font-size: 14px;
    }

    .search-results-footer .view-all-results:hover {
        color: #0D3FB0;
    }

    .search-results-footer .view-all-text {
        color: #0D3FB0;
        font-weight: 500;
    }

    .search-results-footer .view-all-results:hover .view-all-text {
        text-decoration: underline;
    }

    /* Highlighted Text Style */
    .modernpress-search-results mark {
        background-color: rgba(13, 63, 176, 0.1);
        color: #0D3FB0;
        padding: 0 2px;
        border-radius: 2px;
        font-weight: 500;
        text-decoration: none;
        transition: background-color 0.2s ease;
    }

    .search-result-item:hover mark {
        background-color: rgba(13, 63, 176, 0.2);
    }

    /* For WebKit browsers (Chrome, Safari, Edge) */
    .modernpress-search-results::-webkit-scrollbar-button {
        display: none;
        /* Hides scrollbar arrows */
    }

    /* Custom scrollbar styles */
    .modernpress-search-results::-webkit-scrollbar {
        width: 3px;
        /* Slim scrollbar */
    }

    .modernpress-search-results::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }

    .modernpress-search-results::-webkit-scrollbar-thumb {
        background: #0D3FB0;
        border-radius: 10px;
        transition: background 0.3s ease;
    }

    .modernpress-search-results::-webkit-scrollbar-thumb:hover {
        background: #0C38A0;
    }

    /* For Firefox */
    .modernpress-search-results {
        scrollbar-width: thin;
        scrollbar-color: #0D3FB0 #f1f1f1;
    }