/* Job Detail Page — custom styles (prefix job_) */

/* Page background gradient */
.job_page_gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 600px;
    background: linear-gradient(to bottom, #E8EAF6, transparent);
    z-index: -1;
    pointer-events: none;
}

/* H1 override for job detail */
.job_detail_title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #1E293B;
}
@media (min-width: 768px) {
    .job_detail_title {
        font-size: 3rem;
    }
}

/* Stat cards */
.job_stat_card {
    border-radius: 20px;
    padding: 1rem;
    box-shadow: 0 4px 40px -8px rgba(0,0,0,0.04);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: default;
}
.job_stat_card:hover {
    box-shadow: 0 10px 50px -10px rgba(57, 73, 171, 0.15);
    transform: translateY(-3px);
}
.job_stat_icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

/* Content card */
.job_content_card {
    background: #fff;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 4px 40px -8px rgba(0,0,0,0.04);
}
@media (min-width: 768px) {
    .job_content_card {
        padding: 2.5rem;
    }
}

/* Intro block */
.job_intro_block {
    background: #F3F4F7;
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid #E4E6EB;
    margin-bottom: 2.5rem;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.7;
    color: #4B4F5C;
}

/* Content body — scoped styles for dynamic HTML from DB */
.job_content_body {
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    overflow-x: hidden;
}
.job_content_body * {
    max-width: 100%;
    box-sizing: border-box;
}
.job_content_body img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    margin: 1rem 0;
}
.job_content_body h3,
.job_content_body h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 1.25rem;
    margin-top: 2.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.job_content_body h3::before,
.job_content_body h4::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background: #FB471F;
    border-radius: 2px;
    flex-shrink: 0;
}
.job_content_body h3:first-child,
.job_content_body h4:first-child {
    margin-top: 0;
}
.job_content_body p {
    color: #4B4F5C;
    font-weight: 500;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 1rem;
}
.job_content_body ul,
.job_content_body ol {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}
.job_content_body ul li,
.job_content_body ol li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 14px;
    line-height: 1.6;
    color: #4B4F5C;
    font-weight: 500;
    font-size: 15px;
}
.job_content_body ul li::before,
.job_content_body ol li::before {
    content: '\F26E';
    font-family: 'bootstrap-icons';
    position: absolute;
    left: 0;
    top: 2px;
    color: #3949AB;
    background: #E8EAF6;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}
.job_content_body hr {
    border: none;
    height: 1px;
    background: #F3F4F7;
    margin: 2rem 0;
}
.job_content_body strong {
    color: #3949AB;
    font-weight: 700;
}
.job_content_body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}
.job_content_body table td,
.job_content_body table th {
    padding: 0.5rem 0.75rem;
    border: 1px solid #E4E6EB;
}

/* Section divider */
.job_section_divider {
    border: none;
    height: 1px;
    background-color: #F3F4F7;
    margin: 0;
}

/* CTA card */
.job_cta_card {
    border-radius: 24px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}
.job_cta_card::before {
    content: '';
    position: absolute;
    right: -40px;
    top: -40px;
    width: 128px;
    height: 128px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    filter: blur(32px);
}
.job_cta_apply_btn {
    border-radius: 100px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.job_cta_apply_btn:hover {
    background-color: #FB471F !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(251,71,31,0.3);
}

/* Employer card */
.job_employer_card {
    background: #fff;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 4px 40px -8px rgba(0,0,0,0.04);
    text-align: center;
    position: relative;
    padding-top: 3.5rem;
    margin-top: 3.5rem;
}
.job_employer_logo_float {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1.5px solid #F3F4F7;
    overflow: hidden;
    padding: 6px;
}
.job_employer_logo_float img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}
.job_employer_handle {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 100px;
    transition: background-color 0.2s ease;
}
.job_employer_handle:hover {
    background-color: #C5CAE9;
}
.job_employer_view_btn {
    display: block;
    width: 100%;
    padding: 0.625rem;
    border: 1px solid #CACED9;
    border-radius: 100px;
    font-weight: 700;
    font-size: 14px;
    color: #616678;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background: transparent;
    cursor: pointer;
}
.job_employer_view_btn:hover {
    border-color: #3949AB;
    background: #E8EAF6;
    color: #3949AB;
}

/* Mobile bar */
.job_mobile_bar {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.05);
}
.job_mobile_save_btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid #CACED9;
    background: #fff;
    color: #969CAC;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    font-size: 18px;
}
.job_mobile_save_btn:hover {
    background: #FFEDE9;
    color: #FB471F;
    border-color: #FB471F;
}
.job_mobile_apply_btn {
    flex: 1;
    height: 48px;
    border-radius: 100px;
    background: #FB471F;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(251,71,31,0.3);
    transition: all 0.2s ease;
}
.job_mobile_apply_btn:hover {
    color: #fff;
}
.job_mobile_apply_btn:active {
    transform: scale(0.95);
}

/* Padding bottom for mobile bar */
@media (max-width: 767.98px) {
    .job-details-page {
        padding-bottom: 5rem;
    }
}
