@charset "utf-8";

/* ------------------------------------------------------------------ */
/* professor list                                                      */
/* ------------------------------------------------------------------ */

.professor-board {
    width: 100%;
    max-width: 100%;
    margin: 0 0 40px;
    box-sizing: border-box;
    font-family: "Noto Sans KR", sans-serif;
    color: #1f2937;
    background: #fff;
}

.professor-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0 0 28px;
}

.professor-count {
    font-size: 14px;
    font-weight: 700;
    color: #173a66;
    line-height: 1.4;
}

.professor-toolbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.professor-checkall {
    display: inline-flex;
    align-items: center;
    margin: 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

.professor-checkall label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.professor-board .btn_bo_user {
    float: none;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.professor-board .btn_bo_user > li {
    float: none;
    position: relative;
    width: auto;
    margin: 0;
    background: transparent;
}

.professor-board .btn_bo_user > li > a.btn,
.professor-board .btn_bo_user > li > button.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    color: #64748b;
    box-shadow: none;
    line-height: 1;
    text-decoration: none;
    box-sizing: border-box;
    cursor: pointer;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
}

.professor-board .btn_bo_user > li > a.btn:hover,
.professor-board .btn_bo_user > li > button.btn:hover {
    background: #173a66;
    border-color: #173a66;
    color: #fff;
}

.professor-board .btn_bo_user > li > a.btn_admin {
    color: #c2410c;
}

.professor-board .btn_bo_user > li > a.btn_admin:hover {
    background: #c2410c;
    border-color: #c2410c;
    color: #fff;
}

.professor-board .more_opt {
    display: none;
    position: absolute;
    top: 45px;
    right: 0;
    background: #fff;
    border: 1px solid #b8bfc4;
    z-index: 999;
    margin: 0;
    padding: 0;
    list-style: none;
}

.professor-board .more_opt:before {
    content: "";
    position: absolute;
    top: -8px;
    right: 13px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 6px 8px 6px;
    border-color: transparent transparent #b8bfc4 transparent;
}

.professor-board .more_opt:after {
    content: "";
    position: absolute;
    top: -6px;
    right: 13px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 6px 8px 6px;
    border-color: transparent transparent #fff transparent;
}

.professor-board .more_opt li {
    border-bottom: 1px solid #f1f1f1;
    padding: 10px;
    float: inherit;
    width: 90px;
    margin: 0;
    color: #6b757c;
    text-align: left;
}

.professor-board .more_opt li:last-child {
    border-bottom: 0;
}

.professor-board .more_opt li button,
.professor-board .more_opt li a {
    width: 100%;
    border: 0;
    background: #fff;
    color: #6b757c;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    padding: 0;
}

.professor-board .more_opt li:hover a,
.professor-board .more_opt li:hover button {
    color: #000;
}

.professor-board .more_opt li i {
    float: right;
    line-height: 20px;
}

.professor-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    box-sizing: border-box;
}

.professor-card {
    position: relative;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 26px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(23, 58, 102, 0.07);
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.professor-board--linkable .professor-card:hover {
    border-color: #9eb2cb;
    box-shadow: 0 10px 22px rgba(23, 58, 102, 0.1);
    transform: translateY(-1px);
}

.professor-select {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    box-sizing: border-box;
}

.professor-photo-wrap {
    width: 100%;
    max-width: 220px;
}

.professor-photo {
    display: block;
    width: 100%;
    max-width: 220px;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #eef2f7;
    border: 1px solid #dce3ec;
    border-radius: 8px;
    text-decoration: none;
    box-sizing: border-box;
}

.professor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.professor-photo--static {
    cursor: default;
}

.professor-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 200px;
    color: #94a3b8;
    background: #eef2f7;
    font-size: 42px;
}

.professor-content {
    min-width: 0;
    width: 100%;
}

.professor-header {
    margin: 0 0 18px;
}

.professor-name {
    margin: 0 0 16px;
    color: #173a66;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.35;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.professor-name-link {
    color: inherit;
    text-decoration: none;
}

.professor-name-link:hover,
.professor-name-link:focus-visible {
    text-decoration: underline;
    outline: none;
}

.professor-name-static {
    cursor: default;
}

.professor-meta {
    margin: 0;
    width: 100%;
    border-top: 1px solid #e5eaf1;
    border-bottom: 1px solid #e5eaf1;
}

.professor-meta-row {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: stretch;
    min-height: 40px;
    margin: 0;
    border-bottom: 1px solid #edf1f5;
}

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

.professor-meta-label {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 9px 12px;
    background: #f5f7fa;
    color: #526174;
    font-size: 13px;
    font-weight: 600;
    box-sizing: border-box;
}

.professor-meta-value {
    margin: 0;
    padding: 9px 14px;
    color: #26384d;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
    word-break: keep-all;
    overflow-wrap: anywhere;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

.professor-career {
    margin-top: 4px;
}

.professor-career-title {
    margin: 0 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5eaf1;
    color: #173a66;
    font-size: 15px;
    font-weight: 700;
}

.professor-career-content {
    color: #334155;
    font-size: 15px;
    line-height: 1.75;
    word-break: keep-all;
    overflow-wrap: anywhere;
    max-width: 100%;
}

.professor-career-content p {
    margin: 0 0 8px;
}

.professor-career-content p:last-child {
    margin-bottom: 0;
}

.professor-career-content ul,
.professor-career-content ol {
    margin: 8px 0;
    padding-left: 22px;
}

.professor-career-content img {
    max-width: 100%;
    height: auto;
}

.professor-empty {
    margin: 0;
    padding: 48px 12px;
    text-align: center;
    color: #94a3b8;
}

.professor-bottom-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
}

/* ------------------------------------------------------------------ */
/* view / write                                                        */
/* ------------------------------------------------------------------ */

.professor-view,
.professor-write {
    width: 100%;
    max-width: 100%;
    margin: 0 0 40px;
    box-sizing: border-box;
    font-family: "Noto Sans KR", sans-serif;
    color: #1f2937;
}

.professor-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    min-height: 38px;
    height: 38px;
    padding: 0 14px;
    border: 1px solid #dbe3ec;
    border-radius: 4px;
    background: #f8fafc;
    color: #334155;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    box-sizing: border-box;
    cursor: pointer;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
}

.professor-btn:hover,
.professor-btn:focus-visible {
    border-color: #173a66;
    background: #173a66;
    color: #fff;
    outline: none;
}

.professor-btn--primary {
    border-color: #173a66;
    background: #173a66;
    color: #fff;
}

.professor-btn--primary:hover,
.professor-btn--primary:focus-visible {
    border-color: #0f2d52;
    background: #0f2d52;
    color: #fff;
}

.professor-btn--danger {
    color: #dc2626;
}

.professor-btn--danger:hover,
.professor-btn--danger:focus-visible {
    border-color: #dc2626;
    background: #dc2626;
    color: #fff;
}

.professor-btn--light {
    background: #f8fafc;
}

.professor-view-actions,
.professor-write-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 0 24px;
}

.professor-view-profile {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 36px;
    align-items: start;
    padding: 8px 0 28px;
    border-top: 1px solid #d7dee8;
    border-bottom: 1px solid #e8edf3;
    box-sizing: border-box;
}

.professor-view-photo {
    width: 100%;
    max-width: 240px;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border: 1px solid #dce3ec;
    border-radius: 8px;
    background: #eef2f7;
    box-sizing: border-box;
}

.professor-view-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.professor-view-name {
    margin: 0 0 18px;
    color: #173a66;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.35;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.professor-view-career {
    margin-top: 28px;
}

.professor-write-guide {
    margin: 0 0 14px;
    color: #64748b;
    font-size: 14px;
}

.professor-write-guest {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 16px;
}

.professor-write-table {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-sizing: border-box;
}

.professor-write-table col.professor-write-th {
    width: 140px;
}

.professor-write-table th {
    width: 140px;
    padding: 14px;
    text-align: left;
    vertical-align: top;
    white-space: nowrap;
    background: #f8fafc;
    color: #173a66;
    font-weight: 700;
    border-bottom: 1px solid #edf2f7;
    box-sizing: border-box;
}

.professor-write-table td {
    padding: 14px;
    vertical-align: top;
    border-bottom: 1px solid #edf2f7;
    box-sizing: border-box;
}

.professor-required {
    margin-left: 4px;
    color: #b8924c;
    font-size: 12px;
}

.professor-write-input {
    width: 100%;
    max-width: 520px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #d0d3db;
    border-radius: 4px;
    background: #fff;
    color: #334155;
    font-size: 14px;
    box-sizing: border-box;
}

.professor-write-input--order {
    max-width: 140px;
}

.professor-write-file {
    display: block;
    max-width: 100%;
    font-size: 14px;
}

.professor-write-help {
    display: block;
    margin: 8px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

.professor-write-file-del {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    color: #475569;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.professor-write-captcha {
    margin-top: 16px;
}

.professor-write .wr_content {
    width: 100%;
    max-width: 100%;
}

/* ------------------------------------------------------------------ */
/* responsive                                                          */
/* ------------------------------------------------------------------ */

@media (max-width: 1023px) {
    .professor-card {
        grid-template-columns: 180px minmax(0, 1fr);
        gap: 22px;
        padding: 22px;
    }

    .professor-photo-wrap,
    .professor-photo {
        max-width: 180px;
    }

    .professor-view-profile {
        grid-template-columns: 190px minmax(0, 1fr);
        gap: 24px;
    }

    .professor-view-photo {
        max-width: 190px;
    }
}

@media (max-width: 767px) {
    .professor-toolbar-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .professor-list {
        gap: 20px;
    }

    .professor-card {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 20px 16px;
    }

    .professor-photo-wrap {
        max-width: none;
        display: flex;
        justify-content: center;
    }

    .professor-photo {
        width: min(100%, 200px);
        max-width: 200px;
        margin: 0 auto;
    }

    .professor-name {
        font-size: 20px;
        text-align: left;
    }

    .professor-meta-row {
        grid-template-columns: 80px minmax(0, 1fr);
        min-height: 38px;
    }

    .professor-meta-label {
        padding: 8px 10px;
        font-size: 12px;
    }

    .professor-meta-value {
        padding: 8px 10px;
        font-size: 13px;
    }

    .professor-career-content {
        font-size: 14px;
    }

    .professor-view-profile {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 16px 0 22px;
    }

    .professor-view-photo {
        width: min(100%, 200px);
        max-width: 200px;
        margin: 0 auto;
    }

    .professor-view-name {
        font-size: 22px;
        text-align: center;
    }

    .professor-view-actions,
    .professor-write-actions {
        justify-content: flex-start;
    }

    .professor-write-table,
    .professor-write-table tbody,
    .professor-write-table tr,
    .professor-write-table th,
    .professor-write-table td {
        display: block;
        width: 100%;
        max-width: 100%;
    }

    .professor-write-table colgroup {
        display: none;
    }

    .professor-write-table th {
        padding: 12px 12px 4px;
        border-bottom: 0;
        white-space: normal;
    }

    .professor-write-table td {
        padding: 0 12px 12px;
    }

    .professor-write-input {
        max-width: none;
    }
}

@media (max-width: 390px) {
    .professor-card {
        padding: 16px 12px;
    }

    .professor-photo {
        width: min(100%, 180px);
        max-width: 180px;
    }

    .professor-meta-row {
        grid-template-columns: 72px minmax(0, 1fr);
    }
}

@supports not (aspect-ratio: 3 / 4) {
    .professor-photo,
    .professor-view-photo {
        height: 0;
        padding-top: 133.333%;
        position: relative;
    }

    .professor-photo img,
    .professor-view-photo img,
    .professor-photo .professor-photo-placeholder,
    .professor-view-photo .professor-photo-placeholder {
        position: absolute;
        inset: 0;
        min-height: 0;
    }
}
