/* Search Container */
.search-con {
    position: relative;
}

/* Search Area (Covers Navbar) */
.search-col {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%; /* Covers only the navbar height */
    background-color: rgb(0, 0, 0); /* Solid black background */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    z-index: 10000 !important;
}

/* Search Input */
.search-input {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.input-con {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 800px;
    background-color: rgb(0, 0, 0);
    padding: 10px;
    /* border-radius: 4px;
    border: 1px solid rgb(0, 0, 0); */
}

.input-con input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: rgb(255, 255, 255); /* White text */
    font-size: 1rem;
}

.input-con input::placeholder {
    color: rgba(255, 255, 255, 0.667); /* Muted white placeholder */
}

.input-con .icon-search {
    margin-left: 10px;
    color: rgba(255, 255, 255, 0.667); /* Accent color for the search icon */
    font-size: 1.2rem;
}

/* Close Button */
.search-close {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.667); /* Light gray close icon */
    font-size: 1.5rem;
}

/* Hide Search Area by Default */
.search-col[style="display: none;"] {
    display: none !important;
}

.header-row.light .search-col {

    background-color:#fff;

    }

       .header-row.light   .search-col .search-input .input-con input {

         border:1px solid #bbb;
         color:#000;

 }

           .header-row.light  .search-col .search-input .input-con input:focus {

         border:1px solid #000;

 }

       .header-row.light   .search-col .search-input .input-con .icon {
       color:#000
 }



           .header-row.light   .search-col .search-close {

        color:#000;
 }

.search-results {
    position: absolute; /* Ensure results are positioned relative to the parent */
    top: 100%; /* Align results just below the search input */
    left: 0; /* Align results with the left edge of the input */
    width: 100%; /* Make the results take the full width of the input */
    /*background-color: rgb(24, 24, 24); /* Matches input background */
    background-color: rgb(0, 0, 0);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    max-height: 300px;
    overflow-y: auto; /* Enable scrolling for long results */
    padding: 10px;
    /*margin-top: 5px; /* Add space between input and results */
    display: none; /* Initially hide the results */
    z-index: 1000; /* Ensure it appears above other elements */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3); /* Add a subtle shadow for visibility */
}

.search-results h5 {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* Add a divider for sections */
    padding-bottom: 5px;
}

.search-results a {
    display: block;
    /*color: rgb(245, 113, 32); /* Accent color for links */
    color: rgb(255, 255, 255);
    text-decoration: none;
    padding: 8px 10px; /* Add padding for clickable links */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.search-results a:hover {
    color: rgb(245, 113, 32);
    background-color: rgba(45, 45, 45, 0); /* Add a hover background */
    border-radius: 4px; /* Smooth edges for hover effect */
}

.search-results p {
    padding: 10px;
    color: rgba(255, 255, 255, 0.667); /* Light gray text for "no results" */
    text-align: center;
    margin: 0;
}










/* SEARCH_BOX______________________ */

.search-col {
    position: fixed;
    top: -83px;
    right: 0;
    z-index: 15;
    width: 100%;
    height: var(--head-h);
    background-color: #000000; /* Default: black background */
    transition: all 0.5s;
    display: flex;
    align-items: center;
}

.search-col.open {
    top: 0;
}

.search-col .search-input {
    padding: 0 222px;
    min-width: 100%;
}

.search-col .search-input .input-con {
    position: relative;
    background-color: transparent; /* Transparent background by default */
}

.search-col .search-input .input-con input {
    width: 100%;
    border: 1px solid #999;
    background-color: transparent; /* Matches the input container */
    padding: 5px 30px;
    text-align: center;
    font-size: 18px;
    color: #fff; /* White text */
    border-radius: 0;
    outline: 0;
}

.search-col .search-input .input-con input:focus {
    border: 1px solid #fff; /* White border on focus */
}

.search-col .search-input .input-con .icon {
    position: absolute;
    left: 5px;
    top: 50%;
    font-size: 24px;
    margin-top: -12px;
    color: #fff; /* White icon */
}

.search-col .search-close {
    position: absolute;
    right: 45px;
    top: 50%;
    font-size: 28px;
    margin-top: -14px;
    cursor: pointer;
    color: #fff; /* White close icon */
}

/* LIGHT THEME (White Background) */

.search-col.light {
    background-color: #ffffff; /* White background for light theme */
}

.search-col.light .search-input .input-con {
    background-color: transparent; /* Transparent for light theme */
}

.search-col.light .search-input .input-con input {
    border: 1px solid #bbb; /* Light gray border */
    color: #000; /* Black text */
}

.search-col.light .search-input .input-con input:focus {
    border: 1px solid #000; /* Black border on focus */
}

.search-col.light .search-input .input-con .icon {
    color: #000; /* Black icon */
}

.search-col.light .search-close {
    color: #000; /* Black close icon */
}

/* RESPONSIVE STYLING */

@media (max-width: 991px) {
    .search-col .search-input {
        padding: 0 118px;
        min-width: 100%;
    }
}

@media (max-width: 767px) {
    .search-col {
        top: -83px;
        height: var(--head-m-h);
    }

    .search-col .search-input {
        padding: 0 60px 0 20px;
    }

    .search-col .search-input .input-con input {
        padding: 4px 30px;
        font-size: 14px;
    }

    .search-col .search-input .input-con .icon {
        left: 5px;
        font-size: 20px;
        margin-top: -10px;
    }

    .search-col .search-close {
        right: 20px;
        font-size: 22px;
        margin-top: -11px;
    }
}

.search-results.light {
    position: absolute; /* Ensure results are positioned relative to the parent */
    top: 100%; /* Align results just below the search input */
    left: 0; /* Align results with the left edge of the input */
    width: 100%; /* Make the results take the full width of the input */
    background-color: rgb(255, 255, 255) !important; /* White background for light theme */
    /*border: 1px solid rgba(0, 0, 0, 0.1); /* Light gray border */
    /* border-radius: 4px; */
    max-height: 300px;
    overflow-y: auto; /* Enable scrolling for long results */
    /* padding: 10px; */
    display: none; /* Initially hide the results */
    z-index: 1000; /* Ensure it appears above other elements */
}

.search-results.light h5 {
    color: rgba(0, 0, 0, 0.8); /* Dark gray text for section headers */
    font-size: 1rem;
    margin: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1); /* Light gray divider for sections */
    padding-bottom: 5px;
}

.search-results.light a {
    display: block;
    color: rgb(0, 0, 0); /* Black text for links */
    text-decoration: none;
    padding: 8px 10px; /* Add padding for clickable links */
    border-bottom: 1px solid rgba(0, 0, 0, 0.1); /* Light gray divider */
}

.search-results.light a:hover {
    color: rgb(245, 113, 32); /* Accent color on hover */
    /*background-color: rgba(230, 230, 230, 0.8); /* Light gray hover background */
    border-radius: 4px; /* Smooth edges for hover effect */
}

.search-results.light p {
    padding: 10px;
    color: rgba(0, 0, 0, 0.5); /* Light gray text for "no results" */
    text-align: center;
    margin: 0;
}
