/* Base Styles */
#jobContainer {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 20px;
    background-color: #222;
    color: #f0f0f0;
}

#jobContainer > div:first-child {
    text-align: center;
    width: 100%;
    margin: 0;
}

#jobContainer > div:first-child p {
    margin: 0;
}

/* Job Card */
.job {
    background-color: #333;
    border-radius: 10px;
    padding: 20px;
    margin: 10px;
    width: 30%;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
    position: relative;
    color: #f9f9f9;
}

.job:hover {
    background-color: #555;
}

.job::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background-color: #888;
}

.job-title {
    color: #fff;
    font-size: 1.2rem;
    margin: 0 0 10px;
}

.job p {
    margin: 8px 0;
}

/* Buttons */
button,
.read-more-btn,
.close-dialog,
.apply-btn {
    background-color: #007acc;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px 14px;
    margin: 6px 4px 0 0;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

button:hover,
.read-more-btn:hover,
.close-dialog:hover,
.apply-btn:hover {
    background-color: #005f99;
}

/* Dialog */
dialog.read-more-dialog {
    background-color: #222;
    color: #f0f0f0;
    border: none;
    border-radius: 10px;
    padding: 20px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    position: relative;
    font-size: 1rem;
}

.dialog-actions {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Visually Hidden Announcements */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ======================= */
/* 🎯 Responsive Styles */
/* ======================= */
@media (max-width: 1024px) {
    .job {
        width: 45%;
    }
}

@media (max-width: 768px) {
    .job {
        width: 100%;
    }

    dialog.read-more-dialog {
        width: 95%;
        font-size: 0.95rem;
    }

    .dialog-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .dialog-actions button {
        width: 100%;
        margin: 6px 0;
    }

    button,
    .read-more-btn,
    .close-dialog,
    .apply-btn {
        font-size: 1rem;
        padding: 10px;
    }
}