/* ────────────────────────────
   JOBS PAGE STYLES
──────────────────────────── */
.jobs-page {
    /* padding-top: 140px;
    padding-bottom: 100px;
    min-height: 100vh; */
}

.jobs-section {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: 0 auto;
}

.container {
    padding: 0 10% 0 10%;
}

/* Header & Search */
.jobs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    gap: 40px;
}

.portal-title {
    font-size: var(--heading-size);
    font-weight: 800;
    color: #000;
    margin: 0;
}

.search-wrap {
    flex-grow: 1;
    max-width: 600px;
}

#job-search {
    width: 100%;
    padding: 15px 25px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    font-size: 16px;
    color: #333;
    outline: none;
    transition: border-color 0.3s ease;
}

#job-search:focus {
    border-color: #000;
}

/* Grid */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.job-card {
    background: #f2f2f2;
    border-radius: 24px;
    padding: 60px 40px;
    text-align: left;
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 320px;
    text-decoration: none;
    /* Make clickable card look like a card */
    color: inherit;
}

.job-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
    background: #ebebeb;
}

.job-title {
    font-size: var(--heading-size);
    font-weight: 800;
    color: #000;
    margin: 0 0 25px 0;
    text-transform: uppercase;
    line-height: 1.1;
    letter-spacing: -1px;
}

.job-desc {
    font-size: var(--content-size);
    line-height: 1.5;
    color: #444;
    margin: 0;
    font-weight: 400;
}

/* Dark Mode Adjustments */
body.dark .portal-title {
    color: #fff;
}

body.dark .job-card {
    background: #1e1e1e;
}

body.dark .job-title {
    color: #fff;
}

body.dark .job-desc {
    color: #ccc;
}

body.dark #job-search {
    background: #222;
    border-color: #444;
    color: #fff;
}

@media (max-width: 1100px) {
    .jobs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .jobs-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .portal-title {
        font-size: var(--heading-size);
    }

    .jobs-grid {
        grid-template-columns: 1fr;
    }

    .job-card {
        padding: 40px 30px;
    }
}

/* ────────────────────────────
   SINGLE JOB DETAIL STYLES
──────────────────────────── */
/* ────────────────────────────
   SINGLE JOB DETAIL STYLES
──────────────────────────── */
.single-job-page {
    min-height: 100vh;
    /* padding-bottom: 100px; */
}

.job-detail-header {
    margin-bottom: 50px;
    padding-top: 60px;
}

.job-detail-title {
    font-size: var(--heading-size);
    font-weight: 800;
    color: #000;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: -1.5px;
}

.job-detail-meta {
    font-size: var(--content-size);
    color: #666;
    font-weight: 400;
}

.job-detail-card {
    background: #f8f9fc;
    border-radius: 24px;
    padding: 60px;
    max-width: 1100px;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
}

/* ────────────────────────────
   JOB APPLICATION FORM
──────────────────────────── */

/* CV Upload Box */
.cv-upload-box {
    border: 1.5px dashed #3b82f6;
    border-radius: 20px;
    background: #eff6ff;
    padding: 60px 40px;
    text-align: center;
    margin-bottom: 60px;
    transition: all 0.3s ease;
}

.cv-upload-box.drag-over {
    background: #dbeafe;
    border-color: #2563eb;
}

.cv-upload-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.cv-upload-title {
    font-size: var(--subheading-size);
    font-weight: 700;
    color: #111;
    margin-bottom: 10px;
}

.cv-upload-hint {
    font-size: 15px;
    color: #555;
    margin-bottom: 6px;
}

.cv-click-label {
    color: #3b82f6;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.cv-click-label:hover {
    text-decoration: underline;
}

/* Form Layout */
.form-section {
    margin-bottom: 50px;
}

.form-section-title {
    font-size: var(--subheading-size);
    font-weight: 800;
    color: #000;
    margin-bottom: 30px;
    letter-spacing: -0.5px;
}

.job-form-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 30px !important;
    margin-bottom: 30px !important;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-size: var(--content-size);
    font-weight: 700;
    color: #111;
}

.form-group .required {
    color: #8b1a1a;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 16px 20px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    color: #111;
    background: #fff;
    outline: none;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #8b1a1a;
    box-shadow: 0 0 0 4px rgba(139, 26, 26, 0.05);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
}

/* Phone input */
.phone-input-wrap {
    display: flex;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.phone-country {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 15px;
    background: #f1f5f9;
    border-right: 1.5px solid #e0e0e0;
    font-weight: 600;
    color: #333;
}

.phone-input-wrap input {
    border: none !important;
    border-radius: 0 !important;
}

/* Submit row */
.form-submit-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 40px;
}

.submit-btn {
    padding: 18px 60px;
    background: #8b1a1a;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.submit-btn:hover {
    background: #a02020;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139, 26, 26, 0.2);
}

/* Dark Mode Overrides */
body.dark .job-detail-title {
    color: #fff;
}

body.dark .job-detail-meta {
    color: #aaa;
}

body.dark .job-detail-card {
    background: #1a1a1a;
}

body.dark .form-section-title {
    color: #fff;
}

body.dark .form-group label {
    color: #ccc;
}

body.dark .form-group input,
body.dark .form-group select,
body.dark .form-group textarea {
    background: #222;
    border-color: #333;
    color: #fff;
}

body.dark .cv-upload-box {
    background: #1e293b;
    border-color: #3b82f6;
}

body.dark .cv-upload-title {
    color: #fff;
}

body.dark .cv-upload-hint {
    color: #aaa;
}

body.dark .phone-country {
    background: #2a2a2a;
    border-color: #333;
    color: #fff;
}

/* Responsive */
@media (max-width: 500px) {
    .job-form-row {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

@media (max-width: 768px) {
    .job-detail-title {
        font-size: var(--heading-size);
    }

    .job-detail-card {
        padding: 40px 25px;
    }

    .submit-btn {
        width: 100%;
        justify-content: center;
    }
}