/* ============================================================
   ARPHATECH — Career Detail Page
   Depends on: base.css + landing.css + career.css
   ============================================================ */

.cd {
    display: flex;
    flex-direction: column;
    gap: clamp(1.75rem, 4vw, 2.5rem);
    padding-block: clamp(1.25rem, 2.5vw, 2rem);
}

/* ---------- Back link ---------- */
.cd__back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    align-self: flex-start;

    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);

    transition: color 0.2s ease, gap 0.2s ease;
}
.cd__back:hover {
    color: var(--primary);
    gap: 0.6rem;
}

/* ============================================================
   HERO
   ============================================================ */
.cd-hero {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    max-width: 820px;
}

.cd-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cd-hero__type {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    color: var(--success);
    background-color: #E8F1E9;
    border-radius: 6px;
}

.cd-hero__location {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    color: var(--primary);
    background-color: var(--primary-soft);
    border-radius: 6px;
}

.cd-hero__title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    margin: 0;
}

.cd-hero__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;

    list-style: none;
    padding: 0;
    margin: 0.25rem 0 0;
}

.cd-hero__facts li {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;

    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.cd-hero__facts svg {
    flex-shrink: 0;
    color: var(--text-muted);
}

.cd-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.cd-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 820px;
}

.cd-section__title {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.cd-section__body {
    font-size: clamp(0.92rem, 1vw, 1rem);
    line-height: 1.75;
    color: var(--text-secondary);
}

.cd-section__body p {
    margin: 0 0 0.85rem;
}

.cd-section__body p:last-child {
    margin-bottom: 0;
}

/* ============================================================
   CTA
   ============================================================ */
.cd-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;

    padding: clamp(1.15rem, 2.5vw, 1.75rem) clamp(1.25rem, 3vw, 2.25rem);

    background-color: var(--primary);
    color: var(--surface);
    border-radius: 16px;
}

.cd-cta__content {
    flex: 1 1 320px;
}

.cd-cta__title {
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
    font-weight: 700;
    margin: 0 0 0.3rem;
    color: var(--surface);
}

.cd-cta__sub {
    font-size: 0.88rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
}

/* ============================================================
   OTHER JOBS
   ============================================================ */
.cd-other {
    display: flex;
    flex-direction: column;
    gap: 1rem;

    padding-top: clamp(1.5rem, 3vw, 2rem);
    border-top: 1px solid var(--border-light);
}

.cd-other__title {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    text-align: center;
}

.cd-other__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 2vw, 1.5rem);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991.98px) {
    .cd-other__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cd-cta {
        justify-content: center;
        text-align: center;
    }
    .cd-cta__content { flex: 1 1 100%; }
}

@media (max-width: 575.98px) {
    .cd-other__grid {
        grid-template-columns: 1fr;
    }

    .cd-hero__actions {
        flex-direction: column;
        width: 100%;
    }
    .cd-hero__actions .btn-cta {
        width: 100%;
        text-align: center;
    }

    .cd-cta {
        flex-direction: column;
        padding: 1.35rem 1.15rem;
    }
    .cd-cta .btn-cta {
        width: 100%;
        text-align: center;
    }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .cd__back {
        transition: none !important;
    }
}

