/* General Styles */
html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

#content-wrapper {
    flex: 1; /* Takes up available space */
}

footer {
    background: #f4f4f4;
    color: #333;
    text-align: center;
}

/* General Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 20px;
}

/* Hide Company ID */
.hidden-company-id {
    display: none;
}

.alert-icon i {
    color: #677b91;
    font-size: 26px;
}

.fa {
    display: inline-block;
    font: normal normal normal 14px / 1 FontAwesome;
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.job-listing {
    display: flex;
    flex-direction: row; /* Display items in a row */
    justify-content: space-between;
    align-items: center;
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    padding: 20px;
    transition: transform 0.2s;
    overflow: hidden;
    margin-top:20px;/* Prevent horizontal overflow */
}

.job-listing:hover {
    transform: translateY(-5px);
}

.job-details {
    flex: 1;
}

.job-details h3 {
    font-size: 1.5em;
    margin: 0;
    color: #333;
}

.job-details p {
    margin: 5px 0;
    font-size: 1em;
    color: #555;
}

.job-details p strong {
    font-weight: 600;
}

.job-details i {
    margin-right: 10px;
    color: #007bff;
}

.apply-btn {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.apply-btn:hover {
    background-color: #0056b3;
}

.company-logo-container {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.company-logo {
    max-width: 60px;
    max-height: 60px;
}

/* Bookmark button styling */
.bookmark-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #ccc; /* Color for the non-bookmarked state */
    transition: color 0.3s;
}

.bookmark-btn.active {
    color: blue; /* Color when bookmarked */
}

.bookmark-icon {
    color: #000000;
}
.widget-title {
    position: relative;
    margin-bottom: 30px;
    vertical-align: middle;
    margin-top: 38px;
}
#searchInput{
     
    width: 250px;
    margin-left: 12px;
    box-shadow: 11px 12px 9px 0px rgba(10, 65, 217, 0.6);

}
.job-listing {
    position: relative; /* Make sure positioning is relative for .bookmark-container */
    padding: 15px; /* Adjust as needed */
    border: 1px solid #ddd; /* Optional */
    margin-bottom: 15px; /* Spacing between job listings */
    overflow: hidden; /* Prevent horizontal overflow */
}

.bookmark-container {
    position: absolute;
    bottom: 10px;
    right: 10px;
}

.bookmark-icon {
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.bookmark-icon.bookmarked {
    color: blue; /* Change to your desired color when bookmarked */
}

.form-control {
    overflow: auto;
    border: 1px solid #eee;
    width: 100%;
    max-width: 285px;
    padding: 10px;
    margin-top: 10px;
    box-shadow: -11px 12px 9px 0px rgba(10, 65, 217, 0.6);
    box-sizing: border-box; /* Include padding in width calculation */
}

/* Filter Group Styles */
.filter-group {
    margin-bottom: 15px; /* Space between filter groups */
}

/* Filter Label */
.filter-group label {
    font-weight: bold; /* Make labels bold */
    display: block; /* Labels on separate lines */
    margin-bottom: 5px; /* Space between label and input */
}

/* Filter Input Elements */
.filter-group input[type="text"],
.filter-group select,
.filter-group input[type="checkbox"] {
    width: 100%; /* Full width for inputs and selects */
    padding: 10px; /* Add padding inside inputs and selects */
    border: 1px solid #ccc; /* Border around inputs and selects */
    border-radius: 4px; /* Rounded corners */
    box-sizing: border-box; /* Include padding in width calculation */
    margin-bottom: 10px; /* Space between elements */
}

/* Style for Checkbox Inputs */
.filter-group input[type="checkbox"] {
    width: auto; /* Default width for checkboxes */
    margin-right: 10px; /* Space between checkbox and label */
}

/* Button Style */
.filter-group button {
    background-color: #007bff; /* Blue background */
    color: white; /* White text color */
    border: none; /* Remove default border */
    padding: 10px 20px; /* Add padding */
    border-radius: 4px; /* Rounded corners */
    cursor: pointer; /* Pointer cursor on hover */
    font-size: 16px; /* Font size */
}

.filter-group button:hover {
    background-color: #0056b3; /* Darker blue on hover */
}

/* Search Criteria Container */
#search_criteria_container {
    width: 100%;
    max-width: 316px;
    height: auto;
    position: relative;
    margin-bottom: 20px;
}

/* Containers Class */
.containers {
    width: 100%;
    padding-right: 15px;
    padding-left: 7px;
    margin-right: auto;
    margin-left: auto;
}

/* Responsive Design */

/* Mobile Phones (Portrait and Landscape) */
@media (max-width: 480px) {
    .filter-toggle-btn {
        display: block; /* Show button in mobile view */
    }

    /* Ensure the search criteria container is displayed above the job listings */
    #search_criteria_container {
        margin-bottom: 20px; /* Space below search criteria */
    }

    #job-listings {
        margin-top: 20px; /* Space above job listings */
    }
    
    #search-results {
        margin-top: 680px; /* Adjust margin for mobile view */
      
    }
    

    .job-listing {
        flex-direction: column; /* Stack elements vertically */
        padding: 15px;
        margin-bottom: 20px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
                margin-left: -272px;
    }
    .row{
        margin-left:63px;
    }
    #searchInput{
     
    width: 250px;
    margin-left: -64px;
    box-shadow: 11px 12px 9px 0px rgba(10, 65, 217, 0.6);

}
}

/* Filter input elements for mobile */
#filter-section input[type="text"],
#filter-section select,
#filter-section input[type="checkbox"] {
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Tablets */
@media (min-width: 481px) and (max-width: 768px) {
    .job-listing {
        flex-direction: row; /* Keep items in a row on tablets */
        align-items: center; /* Center align items */
        overflow: hidden; /* Prevent horizontal overflow */
    }

    .company-logo {
        width: 60px; /* Adjusted size for tablets */
        height: 60px; /* Adjusted size for tablets */
    }

    .apply-btn {
        padding: 10px 15px;
        font-size: 1em;
    }

    #search_criteria_container {
        width: 100%; /* Full width on tablets */
    }

    .containers {
        padding-right: 12px; /* Adjust padding for tablets */
        padding-left: 6px; /* Adjust padding for tablets */
    }
}

/* Laptops */
@media (min-width: 769px) and (max-width: 1024px) {
    .job-listing {
        flex-direction: row; /* Align items in a row on laptops */
        align-items: center; /* Center align items */
        overflow: hidden; /* Prevent horizontal overflow */
    }

    .company-logo {
        width: 60px; /* Adjusted size for laptops */
        height: 60px; /* Adjusted size for laptops */
    }

    .apply-btn {
        padding: 12px 20px;
        font-size: 1em;
    }

    #search_criteria_container {
        width: 316px; /* Fixed width on laptops */
    }

    .containers {
        padding-right: 15px; /* Adjust padding for laptops */
        padding-left: 7px; /* Adjust padding for laptops */
    }
}

/* Desktops */
@media (min-width: 1025px) {
    .job-listing {
        flex-direction: row; /* Align items in a row on desktops */
        align-items: center; /* Center align items */
        overflow: hidden; /* Prevent horizontal overflow */
    }

    .company-logo {
        width: 80px; /* Larger size for desktops */
        height: 80px; /* Larger size for desktops */
    }

    .apply-btn {
        padding: 12px 20px;
        font-size: 1em;
    }

    #search_criteria_container {
        width: 316px; /* Fixed width on desktops */
    }

    .containers {
        padding-right: 15px; /* Adjust padding for desktops */
        padding-left: 15px; /* Adjust padding for desktops */
    }
}
