/*
 Theme Name:   Bootscore Acts Rules
 Description:  Bootscore theme for Acts and Rules
 Author:       Bootscore
 Author URI:   https://bootscore.me
 Template:     bootscore
 Version:      6.0.0
 Requires at least: 5.0
 Tested up to: 6.6
 Requires PHP: 7.4
 License: MIT License
 License URI: https://github.com/bootscore/bootscore-child/blob/main/LICENSE
 Text Domain:  bootscore
*/

/* 
All style editing is done via /assets/scss/_bootscore_custom.scss
*/
/* Lawyers directory search form styling */
.lawyers-search-form {
    margin-bottom: 2rem;
}

.lawyers-search-form .form-control,
.lawyers-search-form .form-select {
    height: 45px;
}

.ui-autocomplete {
    position: absolute;
    z-index: 1000;
    cursor: default;
    padding: 0;
    margin-top: 2px;
    list-style: none;
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.ui-autocomplete li {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
}

.ui-autocomplete li:last-child {
    border-bottom: none;
}

.ui-autocomplete li:hover {
    background-color: #f5f5f5;
    cursor: pointer;
}

.ui-helper-hidden-accessible {
    display: none;
}

/* Logo Nav css*/
.navbar-brand .logo-img {
    display: block !important; 
    height: auto !important;
}

/* SMALL SCREENS (Mobile: < 768px) */
.navbar-brand .logo-img {
    width: 200px !important;
}

/* LARGE SCREENS (Desktop, Laptop, TV: >= 768px) */
@media (min-width: 768px) {
    .navbar-brand .logo-img {
        width: 260px !important;
    }
}

/* --- Custom Navbar CSS for Pravakta.com --- */

@media (min-width: 900px) {
    /* Stop the primary nav container from wrapping items */
    .navbar-nav {
        flex-wrap: nowrap !important;
    }
    /* Stop the text inside the links (including sub-menus) from breaking */
    .navbar-nav .nav-item .nav-link, 
    .navbar-nav .dropdown-menu .dropdown-item {
        white-space: nowrap !important;
        word-break: normal !important;
    }
}

/* 2. Force Collapse Below 900px */

@media (max-width: 899.98px) {
    /* Hide the horizontal menu list */
    .navbar-collapse:not(.show) {
        display: none !important;
    }
    /* Show the hamburger toggle button */
    .navbar-toggler {
        display: block !important; 
    }
    
    /* Ensure the horizontal menu links are hidden when collapsed */
    .navbar-nav {
        flex-direction: column !important;
    }
}