/* View Job – mockup-aligned layout */

:root {
    --view-job-green: #059669;
    --view-job-green-dark: #047857;
    --view-job-green-light: #ecfdf5;
    --view-job-green-badge: #34d399;
}

body.page-view-job {
    background: #f4f6f8;
}

.view-job-page {
    padding: 28px 0 72px;
}

.view-job-page__inner {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px;
    box-sizing: border-box;
}

@media (min-width: 1400px) {
    .view-job-page__inner {
        max-width: 1280px;
    }
}

.account-page-inner .view-job-page__inner {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.account-page-inner .view-job-page {
    padding-top: 8px;
}

.view-job-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    margin-bottom: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #374151;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.view-job-back:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #111827;
}

.view-job-layout {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
    gap: 28px;
    align-items: start;
}

/* Main card */
.view-job-card {
    background: #fff;
    border: 1px solid #e8ebef;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.view-job-card__header {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 32px 32px 28px;
}

.view-job-card__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--view-job-green);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0, 104, 55, 0.25);
}

.view-job-card__header h1 {
    margin: 0 0 10px;
    font-size: clamp(1.4rem, 2.5vw, 1.85rem);
    font-weight: 800;
    color: #111827;
    line-height: 1.25;
}

.view-job-location {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.5;
}

.view-job-location i {
    color: var(--view-job-green);
    margin-top: 3px;
    flex-shrink: 0;
}

.view-job-location a {
    color: #374151;
    font-weight: 600;
    text-decoration: none;
}

.view-job-location a:hover {
    color: var(--view-job-green);
    text-decoration: underline;
}

.view-job-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid #eef1f4;
    border-bottom: 1px solid #eef1f4;
}

.view-job-stat {
    padding: 24px 16px;
    border-right: 1px solid #eef1f4;
    text-align: center;
}

.view-job-stat:last-child {
    border-right: none;
}

.view-job-stat__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: var(--view-job-green-light);
    color: var(--view-job-green);
    font-size: 0.92rem;
}

.view-job-stat__label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.view-job-stat__value {
    display: block;
    font-size: 0.98rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.35;
}

.view-job-stat__pill {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    background: var(--view-job-green-light);
    color: var(--view-job-green);
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: capitalize;
}

.view-job-card__body {
    padding: 28px 32px 32px;
}

.view-job-section + .view-job-section {
    margin-top: 28px;
}

.view-job-section h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    font-size: 1.05rem;
    font-weight: 800;
    color: #111827;
}

.view-job-section h2 i.fa-exclamation-triangle {
    color: #f59e0b;
}

.view-job-section h2 i.view-job-section__icon-desc {
    color: #2563eb;
}

.view-job-section h2 i:not(.fa-exclamation-triangle):not(.view-job-section__icon-desc) {
    color: var(--view-job-green);
}

.view-job-section__box {
    padding: 20px 22px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.65;
}

.view-job-section__box--warning {
    background: #fffbeb;
    border-color: #fde68a;
}

.view-job-section__box--neutral {
    background: #f8fafc;
    border-color: #e5e7eb;
}

.view-job-rich-text p:last-child {
    margin-bottom: 0;
}

.view-job-rich-text ul,
.view-job-rich-text ol {
    margin-bottom: 0.75rem;
    padding-left: 1.25rem;
}

.view-job-rich-text a,
.view-job-requirements-list a {
    color: var(--view-job-green);
    font-weight: 600;
    text-decoration: underline;
}

.view-job-rich-text a:hover,
.view-job-requirements-list a:hover {
    color: #047857;
}

/* Special requirements – green checkmark list */
.view-job-requirements-list ul,
.view-job-requirements-list ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

.view-job-requirements-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 14px;
    line-height: 1.6;
    color: #374151;
}

.view-job-requirements-list li:last-child {
    margin-bottom: 0;
}

.view-job-requirements-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--view-job-green);
    font-size: 0.88rem;
}

.view-job-requirements-list p {
    position: relative;
    padding-left: 30px;
    margin-bottom: 14px;
    line-height: 1.6;
}

.view-job-requirements-list p:last-child {
    margin-bottom: 0;
}

.view-job-requirements-list p::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--view-job-green);
    font-size: 0.88rem;
}

/* Job images */
.view-job-images {
    background: #fff;
    border: 1px solid #e8ebef;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    margin-bottom: 28px;
}

.view-job-images__main {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.view-job-images__thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid #f1f5f9;
}

.view-job-images__thumb {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.view-job-images__thumb:hover {
    border-color: var(--view-job-green);
    transform: scale(1.03);
}

/* Sidebar */
.view-job-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.view-job-status-card {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 26px 22px;
    border-radius: 16px;
    background: var(--view-job-green);
    box-shadow: 0 12px 32px rgba(0, 104, 55, 0.28);
    color: #fff;
}

.view-job-status-card__pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.22) 1.5px, transparent 1.5px);
    background-size: 12px 12px;
    opacity: 0.55;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.4) 40%, #000 75%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.4) 40%, #000 75%);
}

.view-job-status-card__icon {
    position: relative;
    z-index: 1;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    border: 2px solid rgba(255, 255, 255, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.view-job-status-card__content {
    position: relative;
    z-index: 1;
}

.view-job-status-card__label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

.view-job-status-badge {
    display: inline-block;
    padding: 7px 18px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: capitalize;
}

.view-job-status-badge--active {
    background: var(--view-job-green-badge);
    color: #14532d;
}

.view-job-status-badge--closed {
    background: #fecaca;
    color: #991b1b;
}

.view-job-status-badge--default {
    background: #dbeafe;
    color: #1e40af;
}

.view-job-sidebar-card {
    background: #fff;
    border: 1px solid #e8ebef;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.view-job-sidebar-card__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 22px;
    border-bottom: 1px solid #f1f5f9;
}

.view-job-sidebar-card__head-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--view-job-green-light);
    color: var(--view-job-green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.view-job-sidebar-card__head h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #111827;
}

.view-job-sidebar-card__body {
    padding: 20px 22px 24px;
}

.view-job-timeline {
    position: relative;
    padding-left: 22px;
}

.view-job-timeline::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: #bbf7d0;
}

.view-job-timeline-item {
    position: relative;
    padding-bottom: 22px;
}

.view-job-timeline-item:last-child {
    padding-bottom: 0;
}

.view-job-timeline-item::before {
    content: '';
    position: absolute;
    left: -22px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--view-job-green);
    border: 3px solid #ecfdf5;
    box-shadow: 0 0 0 2px var(--view-job-green);
}

.view-job-timeline-item__label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #111827;
}

.view-job-timeline-item__value {
    font-size: 0.92rem;
    color: #6b7280;
}

.view-job-action-alert {
    margin: 0;
    padding: 14px 16px;
    border-radius: 12px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    font-size: 0.92rem;
    line-height: 1.55;
}

.view-job-action-alert i {
    margin-right: 6px;
    color: #2563eb;
}

.view-job-action-alert--warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.view-job-action-alert--warning i {
    color: #d97706;
}

.view-job-apply-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    background: var(--view-job-green);
    color: #fff;
    font-size: 0.98rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(0, 104, 55, 0.28);
    transition: background 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

.view-job-apply-btn:hover {
    background: var(--view-job-green-dark);
    color: #fff;
    transform: translateY(-1px);
}

.view-job-sidebar-card__body .view-job-action-alert + .view-job-apply-btn,
.view-job-sidebar-card__body .view-job-action-alert + a.view-job-apply-btn {
    margin-top: 16px;
}

.view-job-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    color: var(--view-job-green);
    font-weight: 600;
    text-decoration: none;
}

.view-job-contact-link:hover {
    text-decoration: underline;
}

.view-job-contact-email {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
}

.view-job-contact-email a {
    color: var(--view-job-green);
    font-weight: 600;
    text-decoration: none;
}

.view-job-contact-email a:hover {
    text-decoration: underline;
}

.view-job-share-text {
    margin: 0 0 12px;
    font-size: 0.92rem;
    color: #6b7280;
    line-height: 1.5;
}

.view-job-share {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.view-job-share__input {
    flex: 1;
    min-width: 0;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.82rem;
    color: #374151;
    background: #f9fafb;
}

.view-job-share__btn {
    flex-shrink: 0;
    border: none;
    border-radius: 10px;
    padding: 0 16px;
    background: linear-gradient(135deg, #059669 0%, var(--view-job-green) 100%);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.view-job-share__btn:hover {
    opacity: 0.92;
}

/* Rating block */
.view-job-rating-wrap {
    margin-top: 28px;
}

.view-job-rating-wrap .card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.view-job-modal .modal-header {
    background: linear-gradient(135deg, #059669 0%, var(--view-job-green) 100%);
    color: #fff;
    border: none;
}

.view-job-modal .modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
}

.view-job-page .rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
}

.view-job-page .rating input {
    display: none;
}

.view-job-page .rating label {
    font-size: 2.5rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.view-job-page .rating label:hover,
.view-job-page .rating label:hover ~ label,
.view-job-page .rating input:checked ~ label {
    color: #ffc107;
}

.view-job-page .checkbox-highlight {
    transition: all 0.3s ease;
}

.view-job-page .checkbox-highlight:hover {
    background: linear-gradient(135deg, #c8e6c9 0%, #dcedc8 100%) !important;
    border-color: var(--view-job-green) !important;
    box-shadow: 0 4px 12px rgba(0, 104, 55, 0.25) !important;
    transform: translateY(-2px);
}

@media (max-width: 991px) {
    .view-job-layout {
        grid-template-columns: 1fr;
    }

    .view-job-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .view-job-stat:nth-child(2) {
        border-right: none;
    }

    .view-job-stat:nth-child(1),
    .view-job-stat:nth-child(2) {
        border-bottom: 1px solid #eef1f4;
    }
}

@media (max-width: 575px) {
    .view-job-stats {
        grid-template-columns: 1fr;
    }

    .view-job-stat {
        border-right: none;
        border-bottom: 1px solid #eef1f4;
    }

    .view-job-stat:last-child {
        border-bottom: none;
    }

    .view-job-card__header,
    .view-job-card__body {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media(max-width:450px){
    .view-job-card__header{
        flex-direction: column;
    }
}