/* General Styles from custom.css */

/* Apply a consistent dark blue background to the header on all pages */
.site-header {
    background-color: #003366 !important; /* Dark blue color */
}

/* Search Form Container */
.search-form-container {
    text-align: center;
    margin-bottom: 20px;
    padding-top: 50px; /* Adjusted padding at the top */
}

.search-form-container form {
    display: inline-block;
}

.search-form-container input[type="text"],
.search-form-container select,
.search-form-container button[type="submit"] {
    padding: 10px;
    font-size: 16px;
    height: 40px; /* Ensure all elements have the same height */
    margin-right: 10px; /* Space between elements */
    box-sizing: border-box;
    border: 1px solid #ddd; /* Border style */
    border-radius: 4px; /* Rounded corners */
}

.search-form-container button[type="submit"] {
    padding: 0 20px; /* Adjust padding for the button */
    cursor: pointer;
    background-color: #0073aa; /* Button background color */
    color: #fff; /* Button text color */
    border: none; /* Remove default button border */
}

.search-form-container button[type="submit"]:hover {
    background-color: #005f8c; /* Button hover color */
}

/* Search Results */
.type-group {
    margin: 0 auto; /* Center the container */
    max-width: 800px; /* Optional: limit the maximum width */
    padding: 20px; /* Optional: add padding */
}

.type-group h2 {
    text-align: left;
    padding-left: 10px;
}

.type-group a {
    text-decoration: none;
    color: #0073aa;
}

.type-group a:hover {
    text-decoration: underline;
}

/* Custom Icons */
.custom-map-marker,
.custom-envelope,
.custom-phone,
.custom-calendar {
    font-family: "FontAwesome"; /* Ensure Font Awesome font is used */
    color: #ffffff; /* White color */
    font-size: 24px; /* Adjust the size as needed */
    vertical-align: middle;
    margin-right: 10px; /* Adjust the margin as needed */
}

/* Specific styles for each custom icon */
.custom-map-marker:before {
    content: "\f041"; /* Unicode for the map-marker icon */
}

.custom-envelope:before {
    content: "\f0e0"; /* Unicode for the envelope icon */
}

.custom-phone:before {
    content: "\f095"; /* Unicode for the phone icon */
}

.custom-calendar:before {
    content: "\f073"; /* Unicode for the calendar icon */
}

/* Style for the contact link text */
.contact-link {
    color: #ffffff; /* White color for the link text */
}

/* Change the color of the labels to white */
.contact-label {
    color: #ffffff; /* White color */
}

/* Contact Form Styles */
.contact-page .wbg {
    background-color: #001f3f; /* Dark blue background */
    padding: 20px;
    border-radius: 5px;
    color: white; /* White text */
}

.contact-page .wbg h2,
.contact-page .wbg h3 {
    color: #ffffff;
}

.contact-page .wbg input[type="text"],
.contact-page .wbg input[type="email"],
.contact-page .wbg input[type="tel"],
.contact-page .wbg textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    background: #ffffff; /* Light input background */
    color: #000; /* Black text */
}

.contact-page .wbg textarea {
    resize: vertical;
    height: 120px;
}

.contact-page .wbg input[type="submit"] {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
}

.contact-page .wbg input[type="submit"]:hover {
    background-color: #0056b3;
    border-color: #004085;
}

.contact-page .wbg .social li a {
    color: #ffffff;
    font-size: 18px;
    padding: 5px;
    display: inline-block;
    transition: color 0.3s ease;
}

.contact-page .wbg .social li a:hover {
    color: #007bff;
}

/* Mobile-Specific Styles from mobile-menu.css */

/* General button styles */ 
.dropbtn {
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 10px 15px;
    display: inline-block;
}

.icon-bar {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #fff;
    margin: 4px 0;
    transition: 0.4s;
}

/* Change color of bars on hover */
.dropbtn:hover .icon-bar {
    background-color: #2980B9;
}

/* Dropdown container */
.dropdown {
    position: relative;
}

/* Dropdown content */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f1f1f1;
    min-width: 120px;
    width: auto;
    max-height: calc(100vh - 20px);
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

/* Dropdown links */
.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown a:hover {
    background-color: #ddd;
}



/* Show submenus on parent hover */
.dropdown:hover > .dropdown-content {
    display: block;
}

/* Body adjustments when mobile menu is open */
body.mobile-menu-open {
    overflow: hidden;
}

/* Navbar styling */
.navbar-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Mobile icons styling */
.mobile-icons {
    display: flex;
    margin-left: auto;
}

.mobile-icons .phone-icon,
.mobile-icons .search-icon {
    margin-left: 15px;
}

.mobile-icons img,
.mobile-icons .search-icon svg {
    width: 24px;
    height: 24px;
}

.mobile-icons .search-icon svg {
    fill: #ffffff; /* White search icon */
}

/* Mobile dropdown menu styling */
#mobileMenu {
    position: absolute;
    top: 100%; /* Align dropdown below hamburger icon */
    left: 0;
    width: 100%;
    background-color: #fff;
    display: none; /* Hidden by default */
    z-index: 999;
    /* box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); */ /* Remove this line to eliminate shadowing */
}

/* Show dropdown when toggled */
#mobileMenu.show {
    display: block;
}

/* Adjust button styling to ensure proper spacing */
.navbar-header .dropbtn {
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
    outline: none;
}

/* Unified and simplified Search Popup Styling */
#search {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent background */
    z-index: 10000; /* High z-index to appear above other elements */
    display: flex; /* Flexbox for centering */
    justify-content: center;
    align-items: center;
}

#search .search-form {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
}

#search .close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #fff;
}

#search .search-field {
    width: 80%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
    border: 1px solid #ccc;
}



/* Responsive Adjustments */
@media (max-width: 768px) {
    /* Mobile-Specific Styles */
    .dropdown-content {
        left: 0;
        right: 0;
        max-width: 100%;
    }

    /* Mobile icons styling */
    .mobile-icons {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
    }

    /* Right-align the phone number and make the text white */
    .mobile-icons .phone-icon {
        flex: 1;
        text-align: right;
    }

    .mobile-icons .phone-icon span {
        color: #fff; /* White text color */
        font-size: 16px;
        margin-left: 10px;
    }

    /* Search icon styling */
    .mobile-icons .search-icon {
        margin-left: 20px;
    }

    /* Style the search icon to be white */
    .mobile-icons .search-icon svg path {
        fill: #ffffff; /* White color */
    }

    .mobile-icons img {
        width: 24px;
        height: 24px;
    }
}
