.facility-board-page {
    padding: 80px 0 100px;
    background: #fff;
}

.facility-write-btn {
    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;
}

.facility-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.facility-gallery-card {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    background: #fff;
    transition: 0.25s ease;
}

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

.facility-gallery-thumb {
    height: 230px;
    background: #dbe5f0;
}

.facility-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.facility-gallery-content {
    padding: 24px;
}

.facility-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.facility-head h3 {
    margin: 0;
    color: #111827;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.3;
}

.facility-category {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: #eef3f8;
    color: #1d3557;
    font-size: 13px;
    font-weight: 800;
}

.tfacility-desc {
    margin: 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.65;
}

/* =========================
   WRITE
========================= */

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

.facility-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 input[type="url"],
.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 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;
}

.facility-summary-text {
    padding: 20px 0;
    color: #475569;
    font-size: 16px;
    word-break: keep-all;
    overflow-wrap: break-word;
}

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

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

    .facility-gallery-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .facility-gallery-card {
        border-radius: 18px;
    }

    .facility-gallery-card:hover {
        transform: none;
        box-shadow: none;
    }

    .facility-gallery-thumb {
        height: 200px;
    }

    .facility-gallery-content {
        padding: 18px;
    }

    .facility-head {
        gap: 10px;
        margin-bottom: 8px;
    }

    .facility-head h3 {
        font-size: 20px;
        line-height: 1.35;
    }

    .facility-category {
        height: 26px;
        padding: 0 10px;
        font-size: 12px;
    }

    .tfacility-desc {
        font-size: 14px;
        line-height: 1.7;
    }

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

    .facility-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 {
        flex-wrap: wrap;
        gap: 8px;
    }

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

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

    .write-row input[type="file"] {
        height: auto;
        padding: 10px;
    }

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

    .write-row textarea {
        min-height: 220px;
        padding: 14px;
        line-height: 1.7;
    }

    .file-current {
        flex-direction: column;
        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: 24px;
    }

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

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

    .vacancy-view-top {
        grid-template-columns: 1fr;
        gap: 28px;
    }

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

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

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

    .detail-slider {
        gap: 8px;
    }

    .detail-slide-item {
        flex: 0 0 90px;
        width: 90px;
        height: 70px;
        border-radius: 10px;
    }

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

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

    .vacancy-summary h2 {
        margin: 12px 0 8px;
        font-size: 26px;
        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: 36px;
    }

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

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

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

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

    .facility-summary-text {
        padding: 14px 0;
        font-size: 14px;
    }
}