

/* General Styles for the Job Detail Page */
.job-detail-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.job-header {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.job-header h1 {
    font-size: 2rem;
    color: #2a8a98;
    margin-bottom: 0.5rem;
}

.job-header p {
    margin: 0.5rem 0;
    font-size: 1rem;
    color: #555;
}

.job-description h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 0.75rem;
}

.job-description p {
    font-size: 1rem;
    color: #444;
    text-align: justify;
}

.apply-section {
    text-align: center;
    margin-top: 2rem;
}

.apply-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #2a8a98;
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, transform 0.2s;
}

.apply-button:hover {
    background-color: #206f78;
    transform: translateY(-2px);
}

/* --- Responsive Tweaks for Job Detail Page --- */

/* Tablets (768px and below) */
@media (max-width: 768px) {
    .job-detail-container {
        padding: 1.5rem;
        margin: 1.5rem auto;
    }

    .job-header h1 {
        font-size: 1.8rem;
    }

    .job-header p {
        font-size: 0.95rem;
    }

    .job-description h2 {
        font-size: 1.3rem;
    }

    .apply-button {
        font-size: 0.95rem;
        padding: 0.7rem 1.3rem;
    }
}

/* Mobiles (480px and below) */
@media (max-width: 480px) {
    .job-detail-container {
        padding: 1rem;
    }

    .job-header h1 {
        font-size: 1.5rem;
    }

    .job-header p {
        font-size: 0.9rem;
    }

    .job-description h2 {
        font-size: 1.2rem;
    }

    .job-description p {
        font-size: 0.95rem;
    }

    .apply-button {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
        width: 100%; /* Make button full width on mobile */
        box-sizing: border-box;
    }
}

/* Extra Small Devices (360px and below) */
@media (max-width: 360px) {
    .job-header h1 {
        font-size: 1.3rem;
    }

    .job-header p,
    .job-description p {
        font-size: 0.85rem;
    }

    .apply-button {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
}
