/* General Page Styling */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f7f6;
    color: #333;
    margin: 0;
    padding: 0;
}

.page-container {
    display: flex;
    gap: 20px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-top: 20px;
}

p {
    text-align: center;
    font-size: 18px;
    color: #7f8c8d;
}

/* Search Bar Styling */
.search-jobs {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.search-jobs input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    width: 350px;
    font-size: 16px;
    margin-right: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.search-jobs button {
    padding: 10px 20px;
    background-color: #27ae60;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 16px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.search-jobs button:hover {
    background-color: #1e8449;
}

/* Job Listings Section */
.job-listings-section {
    width: 80%;
    background-color: white;
    padding: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.job-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    /*border-radius: 8px;*/
    overflow: hidden;
    /*box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);*/
}

.job-table th, .job-table td {
    text-align: left;
    padding: 15px;
    border-bottom: 1px solid #eee;
    font-size: 16px;
}

.job-table th {
    background-color: #34495e;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
}

.job-table td {
    background-color: #fff;
}

.job-table tr:nth-child(even) {
    background-color: #f7f7f7;
}

.job-table tr:hover {
    background-color: #ecf0f1;
    transition: background-color 0.3s ease;
}

/* Align action buttons to the right side */
.job-table td.actions {
    text-align: right;
    white-space: nowrap;
}

/* Buttons */
.view-details, .apply-now-btn {
    text-decoration: none;
    color: white;
    width: 140px;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: inline-block;
    cursor: pointer;
}

.view-details {
    background-color: #2980b9;
    border: 0;
}

.view-details:hover {
    background-color: #1c5980;
}

.apply-now-btn {
    background-color: #27ae60;
    border: 0;
    cursor: pointer;
}

.apply-now-btn:hover {
    background-color: #1e8449;
}

.applied {
    background-color: #5e5e5e;
}

.applied:hover{
    background-color: black;
}

.btn-disabled {
    text-decoration: none;
    color: black;
    background-color: gainsboro;
    width: 140px;
    border: 0;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: inline-block;
}







/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.pagination a {
    text-decoration: none;
    color: #34495e;
    padding: 10px 16px;
    margin: 0 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.pagination a.active {
    background-color: #34495e;
    color: white;
    border: none;
}

.pagination a:hover {
    background-color: #27ae60;
    color: white;
}

/* Sidebar */
.right-sidebar {
    width: 20%;
    /*background-color: #ecf0f1;*/
    border-radius: 15px;
    padding: 15px;
    /*box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);*/
}

.right-sidebar img {
    width: 100%;
    /*border-radius: 10px;*/
    overflow: hidden;
}

.nav-list {
    list-style-type: none;
    padding: 0;
    margin: 20px 0;
}

.nav-list li {
    margin-bottom: 15px;
}

.nav-list li a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    display: block;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.nav-list li a:hover {
    background-color: #34495e;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-container {
        flex-direction: column;
        padding: 10px;
    }

    .job-listings-section {
        width: 100%;
    }

    .right-sidebar {
        width: 100%;
        margin-bottom: 20px;
    }

    .search-jobs input {
        width: 250px;
    }
}
