﻿.job-detail {
    padding: 112px 15px 100px;
    background: #ffffff;
}

.job-detail-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    align-items: flex-start;
}
.main-content {
    flex: 3;
}

.sidebar {
    flex: 1;
}

.main-content {
    width: 100%;
    margin-top: 0 !important;
    background: #ffffff;
}
.main-content h1{
    font-weight: 700;
}

.title {
    color: #0c5eda;
    font-weight: 700;
}
.job-info {
    list-style: none;
    font-weight: 700;
    font-size: 16px;
    margin-top: 8px;
    margin-bottom: 0;
}
.job-info li{
    margin: 0;   
}

.highlight-text p{
    margin: 0;
}
.apply-btn {
    background: linear-gradient(to right, #0c5eda, #0782ff, #0ac3d1);
    color: white;
    padding: 10px 100px;
    border: none;
    cursor: pointer;
    font-size: 24px;
    font-weight: 700;
    border-radius: 10px;
    margin: 20px auto 0;
    display: block;
}
    .apply-btn:hover {
        filter: brightness(1.5);
    }

    .job-detail-box {
        margin-top: 40px;
        width: 100%;
    }
.company-info {
    width: 100%;
}
        .company-info h2{
            font-weight: 700;
            margin: 40px 0;
        }
        table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0;
            border: 1px solid #efefee;
            margin-bottom: 0;
        }

th {
    width: 185px;
    text-align: left;
    background: #0c41be;
    color: white;
    padding: 10px;
    border: 1px solid #efefee;
}

td {
    padding: 8px 8px;
    border: 1px solid #efefee;
}
    td ul {
        padding-left: 1em; 
        margin: 0;
    }
.back-button {
    margin: 40px 0;
}

    .back-button a {
        display: inline-block;
        color: #1a2c4b;
        text-decoration: none;
        font-weight: bold;
        font-size: 14px;
    }

        .back-button a:hover {
            text-decoration: underline;
        }

.sidebar {
    width: 28%;
    background: #fff;
    padding:0;
    border-radius: 8px;
    /*box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);*/
}

.apply-now {
    display: block;
    width: 100%;
    /*max-width: 250px;*/
    background: linear-gradient(to right, #0c5eda, #0782ff, #0ac3d1);
    color: white;
    border: none;
    padding: 10px 0;
    border-radius: 10px;
    font-size: 24px;
    font-weight: 700;
    margin: 0px auto 30px;
    cursor: pointer;
}
    .apply-now:hover {
        filter: brightness(1.5);
    }
    .job-location {
        background: #efefee;
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
    }
.des{
    padding: 20px;
}
.des-text ul {
    list-style: none; 
    padding-left: 0; 
}

    .des-text ul li::before {
        content: "•";
        color: #272e4e;
        font-size: 16px; 
        display: inline-block;
        width: 10px;
    }
    .des-text ul li.no-dot::before {
        content: "";
        margin-right: 0;
        width: 0;
    }
    .des-text ul ul li::before {
        content: "◦";
        color: #272e4e;
        font-size: 16px;
        display: inline-block;
        width: 10px;
        margin: 0 8px;
    }

    .des-text ul ul li.no-dot::before {
        content: "";
        margin-right: 0;
        width: 0;
    }

.job-location h4 {
    font-weight: bold;
    margin-bottom: 4px;
}

.job-location p {
    font-size: 14px;
    margin: 4px 0;
}

.view-map {
    display: inline-block;
    font-size: 12px;
    color: #007bff;
    margin-bottom: 10px;
}

.map-img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.related-jobs {
    border-radius: 10px;
    background: #efefee;
    margin-top: 30px;
    padding: 20px;
}

    .related-jobs .job-item:not(:last-child) {
        margin-bottom: 20px;
    }


        .related-jobs .job-item a {
            font-weight: bold;
            color: #0c5eda;
            text-decoration: none;
        }

        .related-jobs .job-item p {
            font-size: 16px;
            margin: 4px 0;
            font-weight: bold;
        }
.jobDetail-highlight {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    /*min-height: 48px;*/
}

@media (max-width: 1024px) {
    .job-detail {
        padding: 70px 0;
        background: #ffffff;
    }

    .job-detail-wrapper {
        display: flex;
        flex-direction: column;
        padding: 0 15px;
    }

    .job-detail-content {
    }

    .company-info {
        order: 1;
    }

        .company-info th {
            /*width: 30%;*/
        }

    .sidebar {
        order: 2;
    }

    .main-content {
        width: 100%;
        margin-top: 20px !important;
    }

    .sidebar {
        width: 100%;
        box-shadow: none;
        padding: 0;
    }

    .apply-btn,
    .apply-now {
        width: 100%;
        font-size: 20px;
        padding: 12px 0;
    }

    .job-detail-content {
    }

    .map-img {
        max-width: 100%;
        height: auto;
    }

    .related-jobs .job-item a {
        font-size: 16px;
    }

    .related-jobs .job-item ul {
        /*padding-left: 16px;*/
    }

    .back-button {
    }

    .job-info {
        padding-left: 0;
    }

    .modal-content {
        width: 90vw;
        height: 90vh;
    }

    .modal-body {
        padding: 16px;
    }
}

@media (max-width: 767px) {
    .job-detail {
        padding: 70px 0;
        background: #ffffff;
    }
    .job-detail-wrapper {
        display: flex;
        flex-direction: column;
        padding: 0 15px;
    }

    .job-detail-content {
        flex-direction: column;
        
    }
    tr.row1-jobdt {
        display: none !important;
    }
    .job-detail-box th{
        display: block;
        width: 100%;
    }
    .job-detail-box td {
        display: block;
    }
    .company-info th {
        display: block;
    }

    .company-info td {
        display: block;
    }
    .company-info {
        order: 1;
    }

        .company-info th {
            width: 100%;
        }

    .sidebar {
        order: 2;
    }
    .main-content {
        width: 100%;
        margin-top: 0 !important;
    }
    .job-detail-box {
        margin-top: 20px;
    }
    .company-info h2{
        margin: 20px 0;
    }
    .related-jobs {
        margin-top: 20px;
    }
    .sidebar {
        width: 100%;
        box-shadow: none;
        padding: 0;
    }

    .apply-btn,
    .apply-now {
        width: 100%;
        font-size: 20px;
        padding: 12px 0;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .job-detail-content {
        gap: 0;
    }

    .map-img {
        max-width: 100%;
        height: auto;
    }

    .related-jobs .job-item a {
        font-size: 16px;
    }

    .related-jobs .job-item ul {
        padding-left: 0;
    }

    .back-button {
        margin: 20px 0
    }
        .back-button a {
            padding: 0 15px;
        }
    .job-info {
        padding-left: 0;
    }

    .modal-content {
        width: 90vw;
        height: 90vh;
    }

    .modal-body {
        padding: 16px;
    }
}
