/* ==========================================================
   Single Career — Tekcom
   ========================================================== */

.career-breadcrumb,
.career-hero,
.career-body,
.career-explore {
    font-family: 'Inter', sans-serif;
}

/* ── Variables ────────────────────────────────────────────── */
:root {
    --career-navy: #193250;
    --career-gold: #c9a84c;
    --career-blue: #254B78;
    --career-text: #193250;
    --career-muted: #64748b;
    --career-line: #e2e8f0;
    --career-bg: #f8fafc;
    --career-max: 1280px;
    --career-pad: clamp(20px, 5vw, 80px);
    --sticky-top: 110px;
    /* adjust to match fixed header height */
}

/* ── Breadcrumb ───────────────────────────────────────────── */
.career-breadcrumb {
    background: var(--career-navy);
    padding: 14px var(--career-pad);
}

.career-breadcrumb__inner {
    max-width: 1680px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 0.8rem;
}

.career-breadcrumb a {
    color: rgb(255, 255, 255) !important;
    text-decoration: none;
    transition: color 0.2s;
}

.career-breadcrumb a:hover {
    color: #fff;
}

.career-breadcrumb__sep {
    color: rgba(255, 255, 255, 0.4);
}

.career-breadcrumb__current {
    font-size: 16px;
    color: #E8AE37;
}

/* ── Hero ─────────────────────────────────────────────────── */
.career-hero {
    background: var(--career-navy);
    padding: clamp(48px, 7vw, 96px) var(--career-pad) clamp(40px, 6vw, 72px);
    text-align: center;
}

.career-hero__inner {
    max-width: var(--career-max);
    margin: 0 auto;
}

.career-hero__title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin: 0 0 40px;
}

/* ── Hero meta bar ────────────────────────────────────────── */
.career-hero__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    row-gap: 20px;
}

.career-hero__meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 clamp(16px, 3vw, 40px);
}

.career-hero__meta-sep {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.career-hero__meta-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: none;
    letter-spacing: 0.08em;
}

.career-hero__meta-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.04em;
}

/* Status badge */
.career-status--hiring {
    color: var(--career-gold);
}

.career-status--closed {
    color: rgba(255, 255, 255, 0.45);
}

/* ── Body layout ──────────────────────────────────────────── */
.career-body {
    background: #fff;
    padding: clamp(40px, 5vw, 72px) var(--career-pad);
}

.career-body__inner {
    max-width: var(--career-max);
    margin: 0 auto;
    display: flex;
    gap: clamp(32px, 4vw, 64px);
    align-items: flex-start;
}

/* ── Sidebar ──────────────────────────────────────────────── */
.career-sidebar {
    flex: 0 0 240px;
    position: sticky;
    top: var(--sticky-top);
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* TOC */
.career-toc__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.career-toc__item {
    border-left: 3px solid transparent;
    transition: border-color 0.2s, background-color 0.2s;
}

.career-toc__item.is-active {
    border-left-color: var(--career-gold);
    background-color: #fdf8ec;
}

.career-toc__link {
    display: block;
    padding: 10px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--career-muted);
    text-decoration: none;
    transition: color 0.2s;
    letter-spacing: 0.03em;
}

.career-toc__item.is-active .career-toc__link,
.career-toc__link:hover {
    color: var(--career-text);
}

/* Share */
.career-share {
    display: flex;
    align-items: center;
    gap: 12px;
}

.career-share__label {
    font-size: 0.82rem;
    color: var(--career-muted);
}

.career-share__icons {
    display: flex;
    gap: 8px;
}

.career-share__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #F5F9FF;
    color: #193250;
    background: none;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}

.career-share__btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.career-share__btn:hover {
    color: #fff !important;
    background: #193250;
    border-color: #193250;
}

.career-copy-link.is-copied {
    color: #22c55e;
    border-color: #22c55e;
}

/* Apply Now */
a.career-apply-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    background: var(--career-navy);
    color: #fff !important;
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-decoration: none;
    border-radius: 50px;
    transition: background 0.2s, transform 0.15s;
}

a.career-apply-btn:hover {
    background: var(--career-blue);
    transform: translateY(-1px);
}

/* ── Content area ─────────────────────────────────────────── */
.career-content {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ── Section ──────────────────────────────────────────────── */
.career-section {
    padding-bottom: 48px;
    margin-bottom: 48px;
    scroll-margin-top: var(--sticky-top);
}

.career-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.career-section__title {
    font-size: 18px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em;
    color: #193250 !important;
    margin: 0 0 24px;
    padding-left: 0;
    border-left: none !important;
    line-height: 1.3;
}

/* ── Prose (post content / wysiwyg) ──────────────────────── */
.career-prose {
    font-size: 18px !important;
    line-height: 1.75;
    color: var(--career-text) !important;
}

.career-prose h1,
.career-prose h2,
.career-prose h3,
.career-prose h4 {
    font-weight: 700;
    color: var(--career-text);
    margin: 1.4em 0 0.5em;
    line-height: 1.3;
}

.career-prose h2 {
    font-size: 1.15rem !important;
}

.career-prose h3 {
    font-size: 1rem;
}

.career-prose p {
    margin: 0 0 0.9em;
}

.career-prose ul,
.career-prose ol {
    padding-left: 1.4em;
    margin: 0 0 0.9em;
}

.career-prose ul li,
.career-prose ol li {
    margin-bottom: 0.3em;
}

/* ── Requirement groups ───────────────────────────────────── */
.career-req-group {
    margin-bottom: 24px;
}

.career-req-group:last-child {
    margin-bottom: 0;
}

.career-req-group__title {
    font-size: 18px !important;
    font-weight: 700;
    color: var(--career-text) !important;
    margin: 0 0 10px;
}

.career-list {
    list-style: disc;
    padding-left: 1.4em;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 18px !important;
    color: var(--career-text) !important;
    line-height: 1.6;
}

/* ── Location ─────────────────────────────────────────────── */
.career-location-group {
    margin-bottom: 20px;
}

.career-location-group:last-child {
    margin-bottom: 0;
}

.career-location-group__city {
    font-size: 18px !important;
    font-weight: 700;
    color: var(--career-text) !important;
    margin: 0 0 8px;
}

/* ── Benefits grid ────────────────────────────────────────── */
.career-benefits-grid {
    list-style: disc;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, auto);
    grid-auto-flow: column;
    column-gap: 40px;
    row-gap: 8px;
}

.career-benefit-tag {
    font-size: 18px !important;
    color: var(--career-text) !important;
    line-height: 1.6;
    margin-left: 1.2em;
    list-style: disc;
}

/* ── Explore Other Roles ──────────────────────────────────── */
.career-explore {
    padding-top: 48px;
    border-top: 1px solid var(--career-line);
    margin-top: 48px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.career-explore__heading {
    font-size: 18px !important;
    font-weight: 700;
    color: var(--career-text) !important;
    margin: 0;
}

.career-explore__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.career-explore__card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 16px;
    background: #E6F1FF;
    border: 1px solid var(--career-line);
    border-radius: 6px;
    text-decoration: none;
    color: var(--career-text);
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.02em;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    margin-bottom: 0;
}

.career-explore__card:hover {
    background: var(--career-navy);
    border-color: var(--career-navy);
    color: #fff !important;
}

.career-explore__card-title {
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.career-explore__card-arrow {
    flex-shrink: 0;
    opacity: 0.6;
    transition: opacity 0.2s, transform 0.2s;
}

.career-explore__card:hover .career-explore__card-arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* ── Tablet ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .career-sidebar {
        flex: 0 0 200px;
    }
}

/* ── Mobile ───────────────────────────────────────────────── */
@media (max-width: 768px) {
    .career-hero__meta {
        justify-content: flex-start;
        gap: 0;
    }

    .career-hero__meta-sep {
        display: none;
    }

    .career-hero__meta-item {
        flex: 0 0 50%;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        align-items: flex-start;
    }

    .career-body__inner {
        flex-direction: column;
    }

    .career-sidebar {
        position: static;
        flex: none;
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 16px;
        align-items: center;
        padding-bottom: 24px;
        border-bottom: 1px solid var(--career-line);
        margin-bottom: 32px;
    }

    /* Hide TOC on mobile (sections visible by scroll) */
    .career-toc {
        display: none;
    }

    .career-share {
        flex: 1 1 auto;
    }

    .career-apply-btn {
        flex: 0 0 auto;
        padding: 12px 20px;
    }

    .career-explore__card {
        font-size: 0.82rem;
    }
}

@media (max-width: 480px) {
    .career-hero__meta-item {
        flex: 0 0 100%;
    }
}