        /* Scoped CSS using a unique container to prevent conflicts */
        #custom-search-container * {
            box-sizing: border-box;
        }

        #custom-search-container {
            display: flex;
            flex-direction: column;
            font-family: Arial, sans-serif;
    line-height: 1.4; /* More standard line height */
    gap: 5px; /* Reduce gap between flex items */
            max-width: 350px;
            margin: 0 auto;
            padding: 20px;

            gap: 10px;
        }



        #custom-search-container .search-input-wrapper {
            display: flex;
            align-items: center;
            gap: 10px;
            width: 100%;
        }


        #custom-search-container #searchInput {
            flex-grow: 1;
            width: 100%;
            height: 50px;
            padding: 10px;
            border: 4px solid darkblue;
            border-radius: 25px;
            font-size: 16px;
        }

        #custom-search-container #searchResults {
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 10px;
        }


#custom-search-container .search-result {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    background-color: #f4f4f4;
    border-radius: 25px;
    padding: 5px 15px; /* Reduced vertical padding */
    margin-bottom: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;

    /* Add these properties */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#custom-search-container .search-result h3 {
    margin: 5px 0; /* Reduce margin around headings */
}

#custom-search-container .search-result p {
    margin: 5px 0; /* Reduce margin around paragraphs */
}



        /* Hover effects */
        #custom-search-container .search-result:hover {
            background-color: #00008B;
            transform: scale(1.02);
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        }

        /* Text styling */
        #custom-search-container .search-result h3 {
            color: #00008B;
            margin-top: 0;
            transition: color 0.3s ease;
        }

        #custom-search-container .search-result p {
            color: #333;
            margin-bottom: 0;
            transition: color 0.3s ease;
        }

        #custom-search-container .search-result a {
            color: #00008B;
            text-decoration: none;
            transition: color 0.3s ease;
        }

        /* Hover text color changes */
        #custom-search-container .search-result:hover h3,
        #custom-search-container .search-result:hover a {
            color: lightskyblue;
        }

        #custom-search-container .search-result:hover p {
            color: lightskyblue;
        }

        /* Hide keywords */
        #custom-search-container .search-result small {
            display: none;
        }

        #custom-search-container #searchInput:focus {
            background-color: #00008B;
            color: lightskyblue;
            outline: none;
            border-color: lightskyblue;
            box-shadow: 0 0 10px rgba(135, 206, 250, 0.5);
        }

        #custom-search-container #searchInput::placeholder {
            color: rgba(135, 206, 250, 0.7);
            transition: color 0.3s ease;
        }

        #custom-search-container #searchInput:focus::placeholder {
            color: rgba(135, 206, 250, 0.3);
        }