/* Ensure the body and html take the full height */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    box-sizing: border-box;
}

/* Main container for job details page with sidebar */
.job-page-container {
    display: flex;
    gap: 20px;
    flex-direction: row;
    height: 100vh;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Sidebar styling */
.job-sidebar {
    width: 30%; /* Adjusted for a cleaner layout */
    background-color: #fff;
    padding: 0;
    border-radius: 10px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    color: #333;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    max-height: 100vh;
    overflow: hidden;
    position: sticky;
    top: 20px;
}

/* Search box container */
.job-search-container {
    padding: 15px 20px;
    background-color: white; /* Light background to distinguish from the list */
}

/* Job Search Box */
.job-search-box {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    color: #333;
    background-color: white;
    box-sizing: border-box;
}

/* Job list container */
.job-list-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    margin-bottom: 10px;
}

/* Custom Scrollbar for job list container */
.job-list-container::-webkit-scrollbar {
    width: 8px;
}

.job-list-container::-webkit-scrollbar-track {
/*    background: #188144;*/
    border-radius: 8px;
}

.job-list-container::-webkit-scrollbar-thumb {
    background-color: #66cc66;
    border-radius: 8px;
}

.job-list-container::-webkit-scrollbar-thumb:hover {
    background-color: #78e087;
}

/* Job List Styling */
.job-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.job-list li {
    margin-bottom: 15px;
}

.job-list li a {
    display: block;
    padding: 12px;
    background-color: #fff;
    border: 1px solid #f5f5f5;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s ease;
}

.job-list li a.active,
.job-list li a:hover {
    background-color: black;
    color: #fff;
}

/* Job details container */
.job-details-container {
    width: 50%;
    flex-grow: 1;
    /*background-color: white;*/
    padding: 30px;
    /*border-radius: 10px;*/
    /*box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);*/
}

.job-details h1 {
    font-size: 28px;
    color: #004d00;
    margin-bottom: 20px;
}

.job-details p {
    font-size: 16px;
    margin-bottom: 15px;
    color: #555;
}

/* Apply button */
.apply-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: #27ae60;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.apply-button:hover {
    background-color: #1e8449;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
    background-color: white;
    padding: 30px;
    margin: 10% auto;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
    position: relative;
}

.modal-content h2 {
    margin-bottom: 20px;
    color: #004d00;
}

.modal-content input,
.modal-content textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 16px;
}

.submit-btn {
    padding: 12px 20px;
    background-color: #004d00;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #66cc66;
}

/* Close button for modal */
.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #aaa;
    cursor: pointer;
}

.close:hover {
    color: #333;
}

/* Right sidebar styling */
.right-sidebar {
    width: 20%;
    /* background-color: #fff; */
    /* border-radius: 10px; */
    border-left: 2px solid #e7e7e7;
    padding: 15px;
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);*/
}

.right-sidebar img {
    width: 100%;
    border-radius: 10px;
}

.right-sidebar h3 {
    color: green;
    margin-bottom: 15px;
    text-decoration: underline;
}

.nav-list {
    list-style-type: none;
    padding: 0;
}

.nav-list li a {
    color: green;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    padding: 10px;
    display: block;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.nav-list li a:hover {
    background-color: #dddddd;
}

/* Responsive layout for smaller screens */
@media (max-width: 768px) {
    .job-page-container {
        flex-direction: column;
    }

    .job-sidebar {
        width: 100%;
        margin-bottom: 20px;
    }

    .job-details-container {
        width: 100%;
        margin-left: 0;
    }

    .modal-content {
        width: 95%;
    }
}

