/* vacancy list */
.vacancy-page {
    padding: 80px 0 100px;
    background: #fff;
}

.vacancy-write-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    padding: 0 22px;
    border-radius: 12px;
    background: #1d3557;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
}

.vacancy-write-btn:hover {
    background: #16304f;
}

.vacancy-page-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.vacancy-page-card {
    height: 100%;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    background: #fff;
    transition: 0.25s ease;
}

.vacancy-page-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.vacancy-page-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.vacancy-page-thumb {
    flex-shrink: 0;
    height: 220px;
    background: #dbe5f0;
}

.vacancy-page-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vacancy-page-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 26px;
}

.vacancy-page-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.vacancy-page-top h3 {
    margin: 0;
    color: #111827;
    font-size: 24px;
    line-height: 1.35;
    font-weight: 900;
    word-break: keep-all;
}

.status {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    margin-top: 5px;
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
}

.status::before {
    content: '';
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 7px;
    border-radius: 50%;
}

.status.green {
    color: #10b981;
}

.status.orange {
    color: #f97316;
}

.status.blue {
    color: #3b82f6;
}

.status.green::before {
    background: #10b981;
}

.status.orange::before {
    background: #f97316;
}

.status.blue::before {
    background: #3b82f6;
}

.vacancy-page-content .area {
    margin: 0 0 14px;
    color: #64748b;
    font-size: 18px;
    font-weight: 700;
}

.vacancy-page-content .desc {
    min-height: 72px;
    margin: 0 0 24px;
    overflow: hidden;
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
    word-break: keep-all;
    overflow-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.vacancy-info-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: auto 0 0;
}

.vacancy-info-list div {
    min-width: 0;
    padding: 14px;
    border-radius: 16px;
    background: #f8fafc;
}

.vacancy-info-list dt {
    margin-bottom: 4px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 700;
}

.vacancy-info-list dd {
    margin: 0;
    color: #111827;
    font-size: 15px;
    font-weight: 800;
    word-break: keep-all;
}

/* pagination */
.pg_wrap {
    margin-top: 42px;
    text-align: center;
}

/* vacancy view */
.vacancy-view {
    padding: 80px 0 100px;
    background: #fff;
}

.vacancy-view-top {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(360px, 0.7fr);
    gap: 60px;
    align-items: start;
}

.vacancy-gallery {
    min-width: 0;
    width: 100%;
}

.main-image {
    overflow: hidden;
    border-radius: 24px;
    background: #dbe5f0;
}

.main-image img {
    display: block;
    width: 100%;
    height: 520px;
    object-fit: cover;
}

.detail-slider-wrap {
    position: relative;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-top: 16px;
}

.detail-slider {
    display: flex;
    gap: 12px;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.detail-slider::-webkit-scrollbar {
    display: none;
}

.detail-slide-item {
    flex: 0 0 150px;
    width: 150px;
    height: 100px;
    overflow: hidden;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 14px;
    background: #dbe5f0;
    cursor: pointer;
    transition: 0.2s ease;
}

.detail-slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-slide-item.is-active {
    border-color: #1b365d;
}

.detail-slider-btn {
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #1b365d;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s ease;
}

.detail-slider-btn:hover {
    background: #16304f;
}

.detail-slider-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.vacancy-summary {
    position: sticky;
    top: 120px;
    padding: 32px;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.vacancy-summary h2 {
    margin: 18px 0 10px;
    color: #111827;
    font-size: 38px;
    line-height: 1.3;
    font-weight: 900;
}

.vacancy-summary .area {
    margin: 0 0 30px;
    color: #64748b;
    font-size: 20px;
    font-weight: 700;
}

.summary-table {
    border-top: 1px solid #e5e7eb;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid #e5e7eb;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row span {
    flex-shrink: 0;
    color: #64748b;
    font-size: 15px;
    font-weight: 700;
}

.summary-row strong {
    color: #111827;
    font-size: 18px;
    font-weight: 800;
    text-align: right;
}

.vacancy-description {
    margin-top: 70px;
}

.vacancy-description h3 {
    margin: 0 0 20px;
    color: #111827;
    font-size: 32px;
    font-weight: 900;
}

.description-box {
    padding: 32px;
    border-radius: 24px;
    background: #f8fafc;
    color: #475569;
    font-size: 17px;
    line-height: 1.8;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.vacancy-bottom-btn {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 40px;
}

.btn-back,
.btn-edit,
.btn-delete,
.btn-write,
.btn-list {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    height: 48px;
    padding: 0 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
}

.btn-back,
.btn-list {
    background: #1b365d;
    color: #fff;
}

.btn-edit,
.btn-write {
    background: #f1f5f9;
    color: #1d3557;
}

.btn-delete {
    background: #fee2e2;
    color: #b91c1c;
}

/* vacancy write */
.vacancy-write-page {
    padding: 80px 0 100px;
    background: #fff;
}

.vacancy-write-box {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    background: #fff;
}

.write-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    align-items: center;
    gap: 24px;
    padding: 22px 26px;
    border-bottom: 1px solid #e2e8f0;
}

.write-row:last-child {
    border-bottom: 0;
}

.write-row > label {
    color: #111827;
    font-size: 15px;
    font-weight: 800;
}

.write-row > label strong {
    color: #ef4444;
}

.write-inline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.write-inline span {
    font-size: 16px;
}

.write-row input[type="text"],
.write-row input[type="date"],
.write-row select,
.write-row textarea {
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    color: #111827;
    font-size: 15px;
}

.write-row input[type="file"] {
    height: 44px;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    color: #111827;
    font-size: 15px;
    line-height: 1;
}

.write-row input[type="file"]::file-selector-button {
    height: 28px;
    margin-right: 10px;
    padding: 0 10px;
    border: 1px solid #9ca3af;
    border-radius: 4px;
    background: #f8fafc;
    color: #111827;
    font-size: 14px;
    cursor: pointer;
}

.detail-file-row.is-hidden {
    display: none;
}

.write-row textarea {
    width: 100%;
    min-height: 180px;
    padding: 14px;
    line-height: 1.7;
}

.file-current {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.file-name {
    color: #64748b;
    font-size: 14px;
}

.file-delete-btn {
    padding: 0;
    background: none;
    border: none;
    color: #dc2626;
    font-size: 14px;
    cursor: pointer;
}

.write-btn-wrap {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 28px;
}

.btn-cancel,
.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    height: 50px;
    padding: 0 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
}

.btn-cancel {
    background: #f1f5f9;
    color: #1d3557;
}

.btn-submit {
    border: 0;
    background: #1b365d;
    color: #fff;
    cursor: pointer;
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ==============================
   Vacancy Mobile
============================== */
@media (max-width: 768px) {

    /* vacancy list */
    .vacancy-page {
        padding: 44px 0 70px;
    }

    .vacancy-page-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .vacancy-page-card {
        border-radius: 18px;
    }

    .vacancy-page-card:hover {
        transform: none;
        box-shadow: none;
    }

    .vacancy-page-thumb {
        height: 190px;
    }

    .vacancy-page-content {
        padding: 20px;
    }

    .vacancy-page-top {
        gap: 10px;
        margin-bottom: 10px;
    }

    .vacancy-page-top h3 {
        font-size: 21px;
        line-height: 1.35;
    }

    .status {
        margin-top: 4px;
        font-size: 13px;
    }

    .status::before {
        width: 8px;
        height: 8px;
        margin-right: 5px;
    }

    .vacancy-page-content .area {
        margin-bottom: 10px;
        font-size: 15px;
    }

    .vacancy-page-content .desc {
        min-height: auto;
        margin-bottom: 18px;
        font-size: 14px;
        line-height: 1.6;
        -webkit-line-clamp: 2;
    }

    .vacancy-info-list {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .vacancy-info-list div {
        padding: 12px;
        border-radius: 12px;
    }

    .vacancy-info-list dt {
        margin-bottom: 3px;
        font-size: 12px;
    }

    .vacancy-info-list dd {
        font-size: 13px;
        line-height: 1.4;
    }

    .pg_wrap {
        margin-top: 30px;
    }

    /* vacancy view */
    .vacancy-view {
        padding: 44px 0 70px;
    }

    .vacancy-view-top {
        display: block;
    }

    .main-image {
        border-radius: 18px;
    }

    .main-image img {
        height: 260px;
    }

    .detail-slider-wrap {
        grid-template-columns: 34px minmax(0, 1fr) 34px;
        gap: 8px;
        margin-top: 12px;
    }

    .detail-slider {
        gap: 8px;
    }

    .detail-slide-item {
        flex-basis: 92px;
        width: 92px;
        height: 66px;
        border-radius: 10px;
    }

    .detail-slider-btn {
        width: 34px;
        height: 34px;
        font-size: 18px;
    }

    .vacancy-summary {
        position: static;
        margin-top: 24px;
        padding: 22px;
        border-radius: 18px;
    }

    .vacancy-summary h2 {
        margin: 14px 0 8px;
        font-size: 28px;
        line-height: 1.3;
    }

    .vacancy-summary .area {
        margin-bottom: 20px;
        font-size: 16px;
    }

    .summary-row {
        gap: 12px;
        padding: 14px 0;
    }

    .summary-row span {
        font-size: 13px;
    }

    .summary-row strong {
        font-size: 15px;
    }

    .vacancy-description {
        margin-top: 42px;
    }

    .vacancy-description h3 {
        margin-bottom: 14px;
        font-size: 24px;
    }

    .description-box {
        padding: 22px;
        border-radius: 18px;
        font-size: 15px;
        line-height: 1.75;
    }

    .vacancy-bottom-btn {
        flex-direction: column-reverse;
        gap: 10px;
        margin-top: 28px;
    }

    .btn-back,
    .btn-edit,
    .btn-delete,
    .btn-write,
    .btn-list {
        width: 100%;
        height: 46px;
        min-width: 0;
        padding: 0 16px;
        border-radius: 10px;
        font-size: 14px;
    }

    /* vacancy write */
    .vacancy-write-page {
        padding: 44px 0 70px;
    }

    .vacancy-write-box {
        border-radius: 18px;
    }

    .write-row {
        display: block;
        padding: 18px 16px;
    }

    .write-row > label {
        display: block;
        margin-bottom: 8px;
        font-size: 14px;
    }

    .write-inline {
        align-items: stretch;
        gap: 6px;
    }

    .write-inline span {
        align-self: center;
        font-size: 14px;
    }

    .write-row input[type="text"],
    .write-row input[type="date"],
    .write-row select,
    .write-row textarea {
        width: 100%;
        min-height: 42px;
        border-radius: 9px;
        font-size: 14px;
    }

    .write-row input[type="file"] {
        width: 100%;
        height: auto;
        min-height: 42px;
        padding: 8px 10px;
        border-radius: 9px;
        font-size: 13px;
    }

    .write-row input[type="file"]::file-selector-button {
        height: 28px;
        font-size: 13px;
    }

    .write-row textarea {
        min-height: 150px;
        padding: 12px;
        line-height: 1.65;
    }

    .file-current {
        align-items: flex-start;
        gap: 8px;
        margin-top: 8px;
    }

    .file-name,
    .file-delete-btn {
        font-size: 13px;
    }

    .write-btn-wrap {
        flex-direction: column-reverse;
        gap: 10px;
        margin-top: 22px;
    }

    .btn-cancel,
    .btn-submit {
        width: 100%;
        height: 48px;
        min-width: 0;
        border-radius: 10px;
        font-size: 14px;
    }
}