.erpnext-job-openings {
    font-family: Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    position: relative; /* Add relative positioning to parent */
}

.job-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.job-item {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.job-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.job-item h3 {
    margin-top: 0;
    color: #fdd401;
}

.job-meta {
    margin-bottom: 10px;
    color: #666;
}

.job-description {
    margin-bottom: 15px;
    color: #555;
}

.view-job-btn {
    background-color: #7dd956;
    color: black;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.view-job-btn:hover {
    background-color: #7dd956;
}

/* Fixed Popup styles */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 999999; /* Super high z-index */
    overflow-y: auto;
}

body.popup-open {
    overflow: hidden; /* Prevent body scrolling when popup is open */
}

.popup-content {
    position: relative;
    background-color: white;
    margin: 120px auto 30px; /* Increased top margin to avoid header */
    padding: 30px;
    width: 80%;
    max-width: 800px;
    border-radius: 8px;
    max-height: calc(100vh - 150px); /* Adjusted max height */
    overflow-y: auto;
    z-index: 1000000; /* Even higher z-index */
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    z-index: 1000001; /* Make close button clickable */
}

.close-popup:hover {
    color: #333;
}

#job-application-form {
    margin-top: 30px;
    border-top: 1px solid #e5e5e5;
    padding-top: 20px;
}