/* ==========================================================================
   Motomarine v3 - Jobs (job listing + job single)
   .cs-job          bordered job card: square thumb, department tag, title, meta, View job link
   .cs-job-row      list row with the button on the right
   .cs-hiring       "Now hiring" banner: vertical tag, photo, copy, Apply button
   .cs-job-head     single job title block;  .cs-job-body prose;  .cs-job-summary sidebar box
   .cs-upload       resume drop area around a file input
   ========================================================================== */

/* ---------- Job card: square thumb + title, meta and a View job link ---------- */
.cs-job {
    position: relative;
    display: flex;
    align-items: center;
    gap: 22px;
    height: 100%;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 0;
    background: var(--white);
    transition: var(--transition);
}
.cs-job:hover {
    box-shadow: var(--shadow);
}
.bg-lighter .cs-job {
    border: 0;
    box-shadow: var(--shadow);
}
.cs-job__link {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.cs-job__thumb {
    flex: 0 0 auto;
    width: 120px;
    border-radius: 4px;
    overflow: hidden;
}
.cs-job__thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    filter: brightness(.9);
    transition: transform .3s ease;
}
.cs-job:hover .cs-job__thumb img {
    transform: scale(1.05);
}
.cs-job__body {
    min-width: 0;
}
.cs-job__dept {
    display: inline-block;
    margin-bottom: 8px;
    padding: 3px 9px;
    border-radius: 0;
    background: var(--primary-tint-10);
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: var(--primary);
}
.cs-job__title {
    margin-bottom: 6px;
    transition: var(--transition);
}
.cs-job__title a {
    color: var(--heading);
}
.cs-job:hover .cs-job__title,
.cs-job__title a:hover {
    color: var(--primary);
}
.cs-job__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin: 0 0 10px;
    padding: 0;
    list-style: none;
    font-size: 13px;
    color: var(--muted);
}
.cs-job__meta i {
    margin-right: 4px;
    color: var(--primary);
}
.cs-job__meta--lg {
    margin: 0;
    font-size: 15px;
}
.cs-job__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    color: var(--heading);
    transition: var(--transition);
}
.cs-job__more i {
    transition: var(--transition);
}
.cs-job:hover .cs-job__more {
    color: var(--primary);
}
.cs-job:hover .cs-job__more i {
    transform: translateX(3px);
}

/* ---------- Job list ---------- */
.cs-job-list {
    border: 1px solid var(--border);
    border-radius: 0;
    background: var(--white);
}
.cs-job-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 28px;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}
.cs-job-row:last-child {
    border-bottom: 0;
}
.cs-job-row:hover {
    background: var(--bg-light);
}
.cs-job-row .cs-job__dept {
    margin-bottom: 10px;
}
.cs-job-row .cs-job__title {
    margin-bottom: 8px;
}
.cs-job-row .cs-job__meta {
    margin: 0;
}
.cs-job-row__side {
    flex: 0 0 auto;
}

/* ---------- Now hiring banner ---------- */
.cs-hiring {
    position: relative;
    display: grid;
    grid-template-columns: 56px 360px 1fr auto;
    align-items: center;
    gap: 0 40px;
    padding-right: 48px;
    border-radius: 0;
    background: var(--heading);
    color: var(--white);
    overflow: hidden;
}
.cs-hiring__tag {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    background: var(--primary);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}
.cs-hiring__photo {
    align-self: stretch;
    margin-left: -40px;
}
.cs-hiring__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(.85);
}
.cs-hiring__body {
    padding: 40px 0;
}
.cs-hiring__body h2 {
    margin-bottom: 6px;
    color: var(--white);
}
.cs-hiring__loc {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, .8);
}
.cs-hiring__loc i {
    color: var(--primary);
}
.cs-hiring__body p {
    max-width: 560px;
    margin: 0;
    font-size: 15px;
    color: rgba(255, 255, 255, .72);
}

/* ---------- Job single ---------- */
.cs-job-head {
    margin-bottom: 40px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}
.cs-job-head .cs-job__dept {
    margin-bottom: 14px;
}
.cs-job-head h1 {
    margin-bottom: 14px;
}
.cs-job-body h2 {
    margin: 32px 0 12px;
}
.cs-job-body h2:first-child {
    margin-top: 0;
}
.cs-job-body .cs-list {
    margin: 0 0 8px;
}
.cs-job-body__cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 24px;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}
.cs-job-sidebar {
    position: sticky;
    top: 110px;
}
.cs-job-summary__list {
    margin: 0 0 20px;
}
.cs-job-summary__list div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}
.cs-job-summary__list div:last-child {
    border-bottom: 0;
}
.cs-job-summary__list dt {
    font-weight: 400;
    color: var(--muted);
}
.cs-job-summary__list dd {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 600;
    text-align: right;
    color: var(--heading);
}
.cs-job-summary__share {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--muted);
}
.cs-job-summary__share .cs-social a {
    width: 32px;
    height: 32px;
    font-size: 14px;
}

/* ---------- Resume upload ---------- */
.cs-upload {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 28px 20px;
    border: 2px dashed var(--border-strong);
    border-radius: 0;
    background: var(--bg-light);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}
.cs-upload:hover {
    border-color: var(--primary);
    background: var(--white);
}
.cs-upload input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}
.cs-upload > i {
    margin-bottom: 4px;
    font-size: 22px;
    color: var(--primary);
}
.cs-upload__text {
    font-size: 14px;
    color: var(--muted);
}
.cs-upload__text strong {
    color: var(--heading);
}
.cs-upload__hint {
    font-size: 12px;
    color: var(--muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    /* Tag becomes a horizontal strip on top, photo hides */
    .cs-hiring {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0 28px;
    }
    .cs-hiring__tag {
        align-self: auto;
        justify-content: flex-start;
        margin: 0 -28px;
        padding: 10px 28px;
        letter-spacing: 2px;
        writing-mode: horizontal-tb;
        transform: none;
    }
    .cs-hiring__photo {
        margin: 0 -28px;
    }
    .cs-hiring__photo img {
        aspect-ratio: 16 / 9;
        height: auto;
    }
    .cs-hiring__body {
        padding: 28px 0 20px;
    }
    .cs-hiring__action {
        padding-bottom: 28px;
    }
    .cs-job-sidebar {
        position: static;
    }
}
@media (max-width: 767px) {
    .cs-job-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 20px;
    }
}
@media (max-width: 575px) {
    .cs-job {
        gap: 16px;
        padding: 14px;
    }
    .cs-job__thumb {
        width: 88px;
    }
    .cs-job-head {
        margin-bottom: 28px;
        padding-bottom: 20px;
    }
    .cs-job__meta--lg {
        font-size: 14px;
    }
    .cs-hiring {
        padding: 0 20px;
    }
    .cs-hiring__tag {
        margin: 0 -20px;
        padding: 8px 20px;
        font-size: 11px;
    }
    .cs-hiring__photo {
        margin: 0 -20px;
    }
    .cs-hiring__body {
        padding: 22px 0 16px;
    }
    .cs-hiring__action {
        padding-bottom: 22px;
    }
}


/* ==========================================================================
   v5 · Modern jobs
   Job cards and rows with a light shadow and pill departments; the card is
   a link so it lifts on hover; rows get a red rail on hover of the link.
   ========================================================================== */
.cs-job,
.cs-job-list {
    border-color: var(--border-light);
    box-shadow: rgba(15, 23, 43, .05) 0 1px 3px 0;
}
.cs-job {
    transition: box-shadow .3s ease, transform .3s var(--ease-out);
}
.cs-job:hover {
    box-shadow: rgba(15, 23, 43, .1) 0 10px 24px 0;
    transform: translateY(-3px);
}
.cs-job__thumb {
    overflow: hidden;
}
.cs-job__dept {
    border-radius: 40px;
    padding-right: 10px;
    padding-left: 10px;
}
.cs-job__meta i {
    color: var(--primary);
}
.cs-job__more i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 12px;
    color: var(--white);
    background: var(--primary);
    transition: transform .3s var(--ease-out);
}
.cs-job:hover .cs-job__more i {
    transform: translateX(3px);
}
.cs-job-row {
    position: relative;
}
.cs-job-row::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 3px;
    background: var(--primary);
    transform: scaleY(0);
    transition: transform .3s var(--ease-out);
}
.cs-job-row:has(a:hover)::before {
    transform: scaleY(1);
}
.bg-lighter .cs-job,
.bg-lighter .cs-job-list {
    border-color: transparent;
}
.bg-dark .cs-job,
.bg-dark .cs-job-list {
    box-shadow: none;
}
.bg-dark .cs-job,
.bg-dark .cs-job-list {
    border-color: rgba(255, 255, 255, .12);
}
