/* Job Details Page Styles */

:root {
    --primary: #7f46eb;
    --primary-light: rgba(127, 70, 235, 0.08);
    --primary-hover: #6a35d4;
    --dark: #1a1a1a;
    --text: #282828;
    --text-muted: #5e697f;
    --bg: #ffffff;
    --radius-lg: 32px;
    --radius-md: 20px;
    --transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

body {
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
}

h1,
h2,
h3,
h4 {
    font-family: "Lexend", sans-serif;
    color: var(--dark);
}

.job-detail-hero {
    padding: 180px 20px 80px;
    background: radial-gradient(circle at top, rgba(127, 70, 235, 0.06), transparent 70%);
}

.job-detail-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 48px;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--primary);
    transform: translateX(-6px);
}

.job-header {
    margin-bottom: 60px;
}

.job-header h1 {
    font-size: 48px;
    line-height: 1.1;
    margin-bottom: 24px;
}

.job-meta-row {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: var(--text-muted);
    padding: 10px 20px;
    background: #f8f9fa;
    border-radius: 100px;
}

.meta-icon {
    font-size: 18px;
}

.job-summary {
    font-size: 20px;
    color: var(--text-muted);
    line-height: 1.7;
}

.job-content {
    padding: 60px 0;
}

.content-section {
    margin-bottom: 60px;
}

.content-section h2 {
    font-size: 32px;
    margin-bottom: 24px;
}

.content-section p {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 32px;
}

.content-list {
    list-style: none;
    padding: 0;
}

.content-list li {
    position: relative;
    padding-left: 36px;
    margin-bottom: 16px;
    font-size: 17px;
    color: var(--text);
    line-height: 1.6;
}

.content-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
    font-size: 20px;
}

.apply-cta {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    max-width: 600px;
    width: calc(100% - 40px);
    transition: all 0.3s ease;
}

.apply-cta.stuck {
    position: absolute;
    bottom: auto;
    top: auto;
    /* Position it before the footer */
    margin-bottom: 100px;
}

.job-detail-hero {
    position: relative;
    /* Create positioning context for absolute CTA */
}


.apply-cta-inner {
    background: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 16px 24px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.apply-cta-text h3 {
    color: white;
    font-size: 16px;
    margin: 0;
    font-weight: 600;
}

.apply-cta-text p {
    display: none;
    /* Hide subtitle for compact design */
}

.apply-cta-btn {
    padding: 12px 28px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    border-radius: 100px;
    transition: var(--transition);
    white-space: nowrap;
    cursor: pointer;
    border: none;
    flex-shrink: 0;
}

.apply-cta-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(127, 70, 235, 0.3);
}

@media (max-width: 768px) {
    .job-header h1 {
        font-size: 36px;
    }

    .apply-cta {
        bottom: 16px;
        width: calc(100% - 32px);
    }

    .apply-cta-inner {
        padding: 14px 20px;
        gap: 12px;
    }

    .apply-cta-text h3 {
        font-size: 14px;
    }

    .apply-cta-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .job-meta-row {
        gap: 12px;
    }
}