.jobPortalMain {
    background: linear-gradient(135deg, #eefaff 0%, #d9eef8 100%);
    min-height: 100vh;
}

.job-portal-section {
    font-family: 'Segoe UI', sans-serif;
    padding: 40px 32px 70px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    max-width: 1100px;
    gap: 24px;
}

.job-card {
    background: #ffffff;
    padding: 32px 44px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.10);
    transition: 0.25s ease;
    border-radius: 12px;
    display: grid;
    grid-template-columns: 1fr 150px;
    align-items: center;
    gap: 24px;
}

.job-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(0, 174, 239, 0.18);
}

.jobdetailscont {
    cursor: pointer;
}

.job-company {
    font-size: 17px;
    color: #555;
    margin-bottom: 14px;
}

.job-title {
    font-size: 30px;
    line-height: 1.2;
    font-weight: 800;
    color: #f15a29;
    margin-bottom: 22px;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-details {
    font-size: 15px;
    color: #444;
    margin-bottom: 12px;
}

.job-details strong {
    font-weight: 700;
    margin-right: 8px;
}

.job-details.description {
    display: grid;
    grid-template-columns: 105px 1fr;
    align-items: start;
    line-height: 1.5;
}

.job-desc-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 20px;
}

.tag {
    background: #dff4fb;
    color: #4b5563;
    padding: 6px 13px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #444;
}

.job-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.job-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    justify-self: end;
    align-self: center;
    gap: 12px;
    width: 120px;
}

.job-card .job-button {
    width: 120px;
    min-height: 56px;
}

.job-button {
    background: #f15a29;
    color: white;
    border: none;
    padding: 11px 20px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 7px;
    cursor: pointer;
    min-width: 110px;
    transition: 0.25s ease;
}

.job-button:hover {
    background: #d94b21;
    transform: translateY(-1px);
}

.job-button.cancel-btn {
    background: #f1f1f1;
    color: #333;
    min-height: 44px;
}

.job-search-box {
    width: min(760px, calc(100% - 32px));
    margin: 26px auto 0;
    display: flex;
    align-items: center;
    border: 1px solid #8b8b8b;
    border-radius: 22px;
    padding: 9px 22px;
    background-color: #fff;
}

.job-search-box ion-icon {
    font-size: 24px;
    color: #333;
}

#jobSearch {
    width: 100%;
    padding: 10px 16px;
    font-size: 16px;
    border: none;
    outline: none;
    background: transparent;
}

.overflow {
    display: none;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.45);
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.model {
    z-index: 9999;
    width: min(900px, calc(100% - 36px));
    max-height: 86vh;
    padding: 0;
    border-radius: 18px;
    background: #ffffff;
    position: fixed;
    top: 50%;
    left: 50%;
    overflow: hidden;
    transform: translate(-50%, -50%);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
}

.popup-jobdetails {
    display: flex;
    flex-direction: column;
    max-height: 86vh;
}

.popup-jobportalheader {
    padding: 28px 34px 20px;
    border-bottom: 1px solid #e5eef3;
    background: linear-gradient(135deg, #f6fdff, #ffffff);
}

.popup-company {
    margin: 0 0 8px;
    color: #4b5563;
    font-size: 16px;
}

.popup-jobtitle {
    margin: 0;
    color: #f15a29;
    font-size: 32px;
    font-weight: 800;
}

.popup-jobportalbody {
    padding: 24px 34px;
    overflow-y: auto;
    max-height: calc(86vh - 190px);
}

.popup-info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 18px;
}

.popup-info-pill {
    background: #f3f8fb;
    border: 1px solid #dceef5;
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 14px;
    color: #374151;
}

.popup-section-title {
    font-size: 16px;
    font-weight: 800;
    color: #111827;
    margin: 22px 0 10px;
}

.popup-description {
    font-size: 16px;
    line-height: 1.65;
    color: #1f2937;
    white-space: pre-line;
}

.popup-jobdetails .job-tags {
    margin: 14px 0 24px;
}

.popup-jobdetails .job-actions {
    padding: 18px 34px;
    border-top: 1px solid #e5eef3;
    box-shadow: 0 -8px 18px rgba(0, 0, 0, 0.04);
    background: #ffffff;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.popup-footer-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;

    font-size: 15px;
    color: #374151;
}

.popup-footer-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.popup-close-btn {
    position: absolute;
    top: 22px;
    right: 28px;
    border: none;
    background: #eef7fb;
    color: #374151;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
}

.popup-jobportalheader {
    position: relative;
}

.job-card .job-button {
    cursor: pointer;
}

.job-card {
    cursor: pointer;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;

    border: 2px solid transparent;
    position: relative;
}

.job-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0, 174, 239, 0.18);
    border-color: #bfe8f6;
}

.job-view-hint {
    position: absolute;
    bottom: 38px;
    right: 45px;

    display: flex;
    align-items: center;
    gap: 6px;

    font-size: 14px;
    font-weight: 600;
    color: #00aeef;

    opacity: 1;
    transition: 0.25s ease;
}

.job-card:hover .job-view-hint {
    transform: translateX(4px);
}

.job-title {
    position: relative;
    width: fit-content;
}

.job-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;

    width: 0%;
    height: 3px;

    background: #f15a29;
    border-radius: 10px;

    transition: 0.3s ease;
}

.job-card:hover .job-title::after {
    width: 100%;
}

.popup-jobportalbody {
    padding: 28px 40px;
    overflow-y: auto;

    scrollbar-gutter: stable;
}

.popup-description,
.popup-jobportalbody .job-details {
    text-align: left;
    word-break: break-word;
}

.popup-jobportalbody .job-details {
    line-height: 1.7;
}

.popup-desc-section {
    margin-bottom: 22px;
}

.popup-desc-heading {
    font-size: 17px;
    font-weight: 800;
    color: #f15a29;
    margin: 18px 0 8px;
}

.popup-desc-content p {
    margin: 0 0 8px;
    line-height: 1.65;
    color: #374151;
}

.popup-desc-line {
    margin: 0 0 8px;
    line-height: 1.55;
    color: #374151;
    font-size: 16px;
}

.job-heading {
    font-size: 18px;
    font-weight: 800;
    color: #f15a29;
    margin: 22px 0 10px;
}

.job-line {
    margin: 0 0 10px;
    line-height: 1.65;
    color: #374151;
}

.job-space {
    height: 10px;
}

.job-section {
    margin-bottom: 24px;
}

.job-heading {
    font-size: 17px;
    font-weight: 800;
    color: #f15a29;
    margin: 16px 0 8px;
}

.job-points {
    margin: 0 0 16px;
    padding-left: 22px;
}

.job-points li {
    margin-bottom: 7px;
    line-height: 1.5;
    color: #374151;
}

@media (max-width: 1020px) {
    .job-portal-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .job-portal-section {
        padding: 26px 16px 50px;
    }

    .job-card {
        grid-template-columns: 1fr;
        padding: 26px 22px;
    }

    .job-actions {
        justify-content: flex-start;
    }

    .job-title {
        font-size: 25px;
    }

    .job-details.description {
        grid-template-columns: 1fr;
    }

    .model {
        padding: 28px 22px;
    }
}

/* ===== POPUP FOOTER FIX ===== */

.popup-jobdetails .job-actions {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
}

.popup-jobdetails .popup-footer-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    width: auto;
    flex: 1;
}

.popup-jobdetails .job-button {
    width: 120px;
    min-width: 120px;
}

.popup-jobdetails .job-actions .job-button.cancel-btn,
.popup-jobdetails .job-actions .job-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
}