:root {
    --blueColor: #3d59ab;
    --yellowColor: #ffd700;
    --defaultBGC: #f6f5ef;
}


/*-------------------------------------------------------------------  models css  ----------------------------------------------------*/
.modalDialog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.modal-content {
    position: fixed;
    box-sizing: border-box;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 300px;
    width: 600px;
    border-radius: 30px;
    background-color: white;
    padding: 20px;
}

/*---------------------------------------------------------------------------------------------------------------------------*/


.remote-jobs-main-container {
    margin: -40px 10px 100px 10px;
}

/* General Container Styles */
.remote-jobs-inner-container {
    display: grid;
    gap: 20px;
    grid-template-columns: auto auto auto;
    padding: 0px 0px 20px 0px;
    margin: 0px 5%;
}

.remote-job-card {
    width: 100%;
    justify-content: space-between;
    max-width: 430px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Job Header */
.job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.job-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.job-posted {
    font-size: 0.9rem;
    color: #999;
}

/* Job Description */
.job-description {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

/* Skills Section */
.job-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill {
    font-size: 0.9rem;
    background-color: #e0f7fa;
    color: #002879;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 500;
}

/* Actions Section */
.job-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
}

.job-button {
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.job-button-apply {
    background-color: var(--yellowColor);
    color: #000;
}

.job-button-apply:hover {
    background-color: #ffaa00;
}

.job-button-view {
    background-color: var(--blueColor);
    color: #fff;
}

.job-button-view:hover {
    color: #fff;
    background-color: #1c43bb;
}


/* General Container */
.remote-job-details-container {
    display: flex;
    gap: 20px;
    margin: 0px 5%;
}

.rjd-left-container,
.rjd-right-container {
    padding: 20px;
    border-radius: 12px;
    background-color: #ffffff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

/* Left Container */
.rjd-left-container {
    flex: 5;
}

.job-title {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 16px;
    font-weight: bold;
    line-height: 1.2;
}

.rjd-ai-summary ul {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 8px;
    padding: 0px;
}

.rjd-ai-summary h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}


.rjd-ai-summary li {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-left: 20px;
    margin-bottom: 8px;
}

/* Skills Section */
.rjd-skill-container h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill {
    background-color: #e0f7fa;
    color: #00796b;
    padding: 8px 14px;
    font-size: 0.9rem;
    border-radius: 20px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.rjd-description-box h5 {
    font-size: 1.3rem;
    color: #333;
    margin: 12px 0px;
    font-weight: bold;
}

.rjd-description-box p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-top: 12px;
    margin-bottom: 0;
}

/* General Styling */
body {
    background-color: #f9f9f9;
    margin: 0;
    color: #333;
}

.container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}


/* Right Container */
.rjd-right-container {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: auto;
    max-width: 350px;
}

.btn-login {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1rem;
    color: white;
    background-color: var(--blueColor);
    border: none;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-login:hover {
    background-color: #040470;
    color: white;
}

.btn-signup {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1rem;
    color: black;
    background-color: var(--yellowColor);
    border: none;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-signup:hover {
    color: black !important;
    background-color: #d0b212;
}

.job-details p,
.job-salary p,
.job-duration p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 6px;
}


.job-share p {
    font-size: 1rem;
    color: #333;
    margin-bottom: 8px;
}

.job-share a {
    display: inline-block;
    margin-right: 10px;
    font-size: 0.9rem;
    color: #00796b;
    text-decoration: none;
}

.job-share a:hover {
    text-decoration: underline;
}

.header-content {
    display: flex;
}

/* Overall Header Styling */
.remote-jobs-header {
    display: flex;
    flex-direction: column;
    background: white;
    color: black;
    padding: 20px;
    border-radius: 12px;
    margin: 0px 5% 20px 5%;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

/* Header Title */
.header-title {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 40px;
}

/* Search Container */
.search-container {
    position: relative;
}

.job-search-input {
    width: 350px;
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: 30px;
    border: none;
    outline: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 0.5px solid var(--blueColor);
}

.job-search-input:focus {
    box-shadow: 0 4px 8px rgba(16, 44, 183, 0.1);
}

.suggestions-contanier {
    display: none;
    flex-direction: column;
    position: absolute;
    z-index: 1000;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-top: 4px;
    max-width: 600px;
    width: 70%;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

/* Suggestion Items */
.suggestions-contanier a {
    text-align: start;
    padding: 12px 16px;
    font-size: 1rem;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.suggestions-contanier a:hover {
    background-color: var(--blueColor);
    color: #ffffff;
    cursor: pointer;
}

.suggestions-contanier div {
    padding: 12px 16px;
    font-size: 0.9rem;
    color: #555;
    text-align: center;
}

/* Empty Suggestions Message */
.suggestions-contanier div {
    color: #888;
}

/* Bottom Section */
.header-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-top: 40px;
    text-align: left;
}

/* Description */
.header-description {
    flex: 2;
    font-size: 16px;
    border-right: 0.5px solid black;
    line-height: 1.6;
}

/* CTA Section */
.cta-container {
    flex: 1;
    min-width: 300px;
    margin: auto;
    text-align: center;
}

/* CTA Button */
.btn-all-jobs {
    display: inline-block;
    padding: 10px;
    background: var(--yellowColor);
    color: #004d40 !important;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none !important;
    transition: 0.3s ease-in-out;
}

.btn-all-jobs:hover {
    background: #ffaa00;
    color: #00332b;
}


/* Container Styling */
.resume-upload-container {
    max-width: 500px;
    margin: auto;
    text-align: center;
}

.upload-instruction {
    font-size: 1rem;
    color: #555;
    margin-bottom: 16px;
    font-weight: 500;
}

/* File Input */
.file-label {
    display: block;
    position: relative;
    margin: 16px auto;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    color: #666;
    background-color: #f9f9f9;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-label:hover {
    border-color: #00796b;
    background-color: #e0f7fa;
    color: #00796b;
}

.file-placeholder {
    pointer-events: none;
}

#resume-upload {
    display: none;
}

/* Submit Button */
.submit-button {
    display: inline-block;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background-color: var(--blueColor);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background-color: #082aa3;
}

/* -------------------------------   main job header contanier        ---------------------------------------- */

.main_job-header {
    height: auto;
    padding: 10px 10px 10px 0px;
    display: flex;
    justify-content: space-between;
    margin: 0px 5% 15px 5%;
    border-radius: 12px;
}

.main_job_search-container {
    position: relative;
}

.main_job_search-container input {
    min-width: 350px;
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: 30px;
    border: none;
    outline: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 0.5px solid var(--blueColor);
}

.main_job-suggestions {
    flex-direction: column;
    position: absolute;
    z-index: 1000;
    background-color: #ffffff;
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
    min-width: 350px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.main_job-suggestions a {
    height: auto;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1rem;
    width: 100%;
}

.main_job-suggestions a:hover {
    background-color: var(--blueColor);
    color: #ffffff;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .remote-jobs-inner-container {
        flex-wrap: wrap;
        display: flex;
        margin: 0px;
    }

    .resume-upload-container {
        width: 90%;
        padding: 16px;
    }

    .header-content {
        flex-direction: column;
    }

    .main_job-header {
        flex-direction: column;
        margin: 10px 0px;
        padding: 0px;
        line-height: 35px;
    }

    .main_job-header .main_job_search-container {
        margin-left: 0px !important;
    }

    .btn-all-jobs {
        margin-right: auto;
        margin-bottom: 5%;
    }

    .file-label {
        font-size: 0.9rem;
        padding: 10px 14px;
    }

    .submit-button {
        font-size: 0.9rem;
        padding: 10px 14px;
    }


    .remote-jobs-header {
        padding: 40px 5%;
    }

    .header-title {
        font-size: 1.7rem;
    }

    .header-bottom {
        flex-direction: column;
        text-align: center;
    }

    .header-description {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .cta-container {
        min-width: 100%;
    }

    .remote-job-details-container {
        flex-direction: column;
        gap: 16px;
        margin: 0px;
    }

    .remote-jobs-header-section {
        margin: 0px 0px 20px 0px;
    }

    .rjd-left-container,
    .rjd-right-container {
        flex: 1;
        padding: 16px;
    }

    .job-title {
        font-size: 1.8rem;
    }

    .apply-section .btn-login {
        font-size: 0.9rem;
    }


    .remote-job-card {
        padding: 16px;
    }

    .remote-jobs-header {
        height: auto;
        margin: 0px 0px 15px 0px;
    }

    .job-search-input {
        width: 100%;
    }

    #job-suggestions {
        width: 100%;
        left: 0%;
    }

    .job-title {
        font-size: 1.3rem;
    }

    .btn {
        font-size: 0.85rem;
    }

    .header-description {
        flex-direction: column;
        gap: 5%;
        border: none;
    }
}