/* ==============================
   DMI Default Board - Scoped
   리스트/뷰 기본 게시판 전용
   .default-board 안에서만 작동하므로 media/inquiry 등 다른 게시판에 영향 없음
============================== */

.default-board {
    width: 100%;
    color: #111;
}

.default-board a {
    color: inherit;
    text-decoration: none;
}

.default-board a:hover {
    color: #07346b;
}

/* Default Board - Common Head */

.default-board .board-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.default-board .board-title {
    display: block;
    margin: 0;
    font-size: 28px;
    line-height: 1.35;
    font-weight: 800;
    color: #111;
}

.default-board .board-btn-write {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    height: 44px;
    padding: 0 20px;
    border: 1px solid #07346b;
    border-radius: 4px;
    background: #07346b;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    box-sizing: border-box;
}

.default-board .board-btn-write:hover {
    border-color: #052653;
    background: #052653;
    color: #fff;
}

/* Default Board - List */

.default-board .board-table {
    width: 100%;
    border-collapse: collapse;
    border-top: 2px solid #111;
    table-layout: fixed;
}

.default-board .board-table th,
.default-board .board-table td {
    height: 58px;
    padding: 0 14px;
    border-bottom: 1px solid #e1e5ec;
    font-size: 15px;
    vertical-align: middle;
    box-sizing: border-box;
}

.default-board .board-table th {
    background: #f7f9fc;
    color: #111;
    font-weight: 700;
    text-align: center;
}

.default-board .board-table td {
    color: #333;
    text-align: center;
}

.default-board .board-table .col-num {
    width: 90px;
}

.default-board .board-table .col-name {
    width: 140px;
}

.default-board .board-table .col-date {
    width: 140px;
}

.default-board .board-table .col-hit {
    width: 100px;
}

.default-board .board-table .col-subject {
    width: auto;
    text-align: left;
}

.default-board .board-table td.col-subject a {
    display: inline-block;
    max-width: 100%;
    color: #111;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

.default-board .board-table td.col-subject a:hover {
    color: #07346b;
}

.default-board .board-empty {
    height: auto;
    padding: 80px 0;
    border-bottom: 1px solid #e1e5ec;
    background: #fff;
    text-align: center !important;
    font-size: 16px;
    color: #666;
}

.default-board .board-paging {
    display: flex;
    justify-content: center;
    margin-top: 38px;
}

.default-board .board-paging a,
.default-board .board-paging strong,
.default-board .board-paging span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    margin: 0 3px;
    border: 1px solid #d8dde6;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-sizing: border-box;
}

.default-board .board-paging strong {
    border-color: #07346b;
    background: #07346b;
    color: #fff;
}

/* Default Board - View */

.default-board .view-wrap {
    border-top: 2px solid #111;
}

.default-board .view-title-bar {
    padding: 28px 0 24px;
    border-bottom: 1px solid #e1e5ec;
}

.default-board .view-subject {
    margin: 0 0 16px;
    font-size: 32px;
    line-height: 1.35;
    font-weight: 800;
    color: #111;
    word-break: keep-all;
}

.default-board .view-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    font-size: 15px;
    color: #666;
}

.default-board .view-meta span {
    position: relative;
}

.default-board .view-meta span + span::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 50%;
    width: 1px;
    height: 12px;
    background: #d6dce7;
    transform: translateY(-50%);
}

.default-board .view-content {
    min-height: 240px;
    padding: 42px 0 54px;
    border-bottom: 1px solid #e1e5ec;
    font-size: 17px;
    line-height: 1.8;
    color: #222;
    word-break: keep-all;
}

.default-board .view-nav {
    margin-top: 42px;
    border-top: 1px solid #e1e5ec;
    border-bottom: 1px solid #e1e5ec;
}

.default-board .view-nav .nav-row {
    display: flex;
    align-items: center;
    min-height: 58px;
    border-top: 1px solid #e1e5ec;
}

.default-board .view-nav .nav-row:first-child {
    border-top: 0;
}

.default-board .view-nav .nav-label {
    flex: 0 0 100px;
    padding-left: 16px;
    font-weight: 700;
    color: #111;
    box-sizing: border-box;
}

.default-board .view-nav a {
    flex: 1;
    min-width: 0;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.default-board .view-nav a:hover {
    color: #07346b;
}

.default-board .view-btn-wrap {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 34px;
}

.default-board .board-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    height: 44px;
    padding: 0 18px;
    border: 1px solid #cfd6e2;
    border-radius: 4px;
    background: #fff;
    color: #222;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    box-sizing: border-box;
}

.default-board .board-btn:hover {
    border-color: #07346b;
    color: #07346b;
}

.default-board .board-btn-del:hover {
    border-color: #c92121;
    color: #c92121;
}

@media (max-width: 768px) {
    .default-board .board-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .default-board .board-table .col-num,
    .default-board .board-table .col-name,
    .default-board .board-table .col-hit {
        display: none;
    }

    .default-board .board-table .col-date {
        width: 110px;
    }

    .default-board .board-table th,
    .default-board .board-table td {
        height: 54px;
        padding: 0 10px;
        font-size: 14px;
    }

    .default-board .view-subject {
        font-size: 26px;
    }

    .default-board .view-meta {
        flex-direction: column;
        gap: 6px;
    }

    .default-board .view-meta span + span::before {
        display: none;
    }

    .default-board .view-nav .nav-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        padding: 16px 0;
    }

    .default-board .view-nav .nav-label {
        flex: none;
        padding-left: 0;
    }

    .default-board .view-nav a {
        width: 100%;
    }
}


.board-title {
    display: none;
}

/* ==============================
   DMI Board Common Layout
============================== */

.board-section {
    width: 100%;
    padding: 90px 0 120px;
    background: #fff;
}

.board-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

.dmi-board-wrap {
    width: 100%;
}

.dmi-sec-head {
    margin-bottom: 42px;
}

.dmi-sec-head span {
    display: block;
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 700;
    color: #0a4bc0;
    letter-spacing: 0.06em;
}

.dmi-sec-head h3 {
    margin: 0;
    font-size: 34px;
    line-height: 1.35;
    font-weight: 700;
    color: #111;
}

/* ==============================
   DMI Media Board - List
============================== */

.media-board {
    width: 100%;
}

.media-list-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 36px;
}

.media-list-count {
    font-size: 15px;
    color: #333;
}

.media-list-count strong {
    color: #0a4bc0;
    font-weight: 700;
}

.media-search {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 520px;
}

.media-search select {
    width: 160px;
    height: 54px;
    padding: 0 42px 0 18px;
    border: 1px solid #d8dde6;
    border-radius: 6px;
    background: #fff;
    font-size: 15px;
    color: #333;
}

.media-search-input {
    display: flex;
    width: 360px;
    height: 54px;
    border: 1px solid #0a4bc0;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.media-search-input input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0 18px;
    border: 0;
    outline: 0;
    font-size: 15px;
}

.media-search-input button {
    position: relative;
    width: 58px;
    height: 100%;
    border: 0;
    background: #0749c9;
    cursor: pointer;
}

.media-search-input button span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.media-search-input button::before {
    content: "";
    position: absolute;
    left: 19px;
    top: 16px;
    width: 15px;
    height: 15px;
    border: 2px solid #fff;
    border-radius: 50%;
}

.media-search-input button::after {
    content: "";
    position: absolute;
    left: 33px;
    top: 31px;
    width: 10px;
    height: 2px;
    background: #fff;
    transform: rotate(45deg);
    transform-origin: left center;
}

.media-admin-btns {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 32px;
}

.media-admin-btns .board-btn-write,
.board-btn-write {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    height: 44px;
    padding: 0 20px;
    border: 1px solid #07346b;
    border-radius: 4px;
    background: #07346b;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    box-sizing: border-box;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.media-admin-btns .board-btn-write:hover,
.board-btn-write:hover {
    border-color: #052653;
    background: #052653;
    color: #fff;
    text-decoration: none;
}

.board-empty {
    padding: 80px 0;
    border-top: 1px solid #e3e6ec;
    border-bottom: 1px solid #e3e6ec;
    text-align: center;
    font-size: 16px;
    color: #666;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 70px 24px;
}

.media-card {
    display: block;
    color: inherit;
    text-decoration: none;
}

.media-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid #d6dce7;
    border-radius: 4px;
    background: #eef1f5;
}

.media-thumb img,
.media-thumb video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.media-card:hover .media-thumb img,
.media-card:hover .media-thumb video {
    transform: scale(1.04);
}

.media-play-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    transform: translate(-50%, -50%);
}

.media-play-icon::before {
    content: "";
    position: absolute;
    left: 23px;
    top: 17px;
    border-left: 18px solid #fff;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
}

.media-no-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 15px;
    color: #777;
}

.media-info {
    padding-top: 22px;
}

.media-info h3 {
    margin: 0 0 14px;
    font-size: 22px;
    line-height: 1.35;
    font-weight: 700;
    color: #111;
    word-break: keep-all;
}

.media-info p {
    margin: 0;
    font-size: 16px;
    color: #666;
}

/* ==============================
   DMI Media Board - View
============================== */

.media-view {
    width: 100%;
}

.media-view-head {
    margin-bottom: 30px;
}

.media-view-head h2 {
    margin: 0 0 14px;
    font-size: 38px;
    line-height: 1.3;
    font-weight: 700;
    color: #111;
    word-break: keep-all;
}

.media-view-head p {
    margin: 0;
    font-size: 16px;
    color: #444;
}

.media-view-line {
    height: 1px;
    margin-bottom: 30px;
    background: #ddd;
}

.media-player-box {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid #d8d8d8;
    border-radius: 10px;
    background: #eee;
}

.media-view-video {
    display: block;
    width: 100%;
    height: 100%;
    background: #000;
}

.media-player-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #f5f5f5;
    font-size: 16px;
    color: #777;
}

.media-view-utils {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 26px 0;
    border-bottom: 1px solid #ddd;
}

.media-view-stats {
    display: flex;
    align-items: center;
    gap: 8px;
}

.media-view-stats span {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 15px;
    color: #111;
}

.media-view-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.media-view-tools button {
    min-width: 96px;
    height: 44px;
    padding: 0 16px;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 15px;
    color: #111;
    cursor: pointer;
}

.media-view-tools button:hover {
    border-color: #0749c9;
    color: #0749c9;
}

.media-view-content {
    padding: 44px 0 20px;
    font-size: 18px;
    line-height: 1.8;
    color: #222;
}

.view-nav {
    margin-top: 50px;
    border-top: 1px solid #e1e5ec;
    border-bottom: 1px solid #e1e5ec;
}

.view-nav .nav-row {
    display: flex;
    align-items: center;
    min-height: 58px;
    border-top: 1px solid #e1e5ec;
}

.view-nav .nav-row:first-child {
    border-top: 0;
}

.view-nav .nav-label {
    flex: 0 0 100px;
    font-weight: 700;
    color: #111;
}

.view-nav a {
    color: #333;
    text-decoration: none;
}

.view-nav a:hover {
    color: #0749c9;
}

.view-btn-wrap {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 34px;
}

.board-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    height: 44px;
    padding: 0 18px;
    border: 1px solid #cfd6e2;
    border-radius: 4px;
    background: #fff;
    color: #222;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    box-sizing: border-box;
}

.board-btn:hover {
    border-color: #07346b;
    color: #07346b;
    text-decoration: none;
}

.board-btn-del:hover {
    border-color: #c92121;
    color: #c92121;
}

/* ==============================
   DMI Media Board - Write
============================== */

.media-write {
    max-width: 960px;
    margin: 0 auto;
}

.media-write h2 {
    margin: 0 0 28px;
    font-size: 32px;
    line-height: 1.35;
    font-weight: 700;
    color: #111;
}

.media-write form {
    width: 100% !important;
}

.media-write-form {
    border-top: 2px solid #111;
}

.media-write-row {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid #e1e5ec;
}

.media-write-row label {
    padding-top: 12px;
    font-size: 15px;
    font-weight: 700;
    color: #111;
}

.media-write-row label strong {
    color: #0a4bc0;
}

.media-write .frm_input {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid #d8dde6;
    border-radius: 4px;
    background: #fff;
    font-size: 15px;
    color: #111;
    box-sizing: border-box;
}

.media-write input[type="file"].frm_input {
    display: flex;
    align-items: center;
    padding: 10px 14px;
}

.media-write textarea.frm_input {
    min-height: 180px;
    padding: 16px;
    line-height: 1.7;
    resize: vertical;
}

.media-write .is-readonly {
    background: #f5f7fa;
}

.media-write-help {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.5;
    color: #777;
}

.media-current-files {
    display: grid;
    gap: 8px;
}

.media-current-file {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid #e1e1e1;
    background: #fafafa;
    font-size: 14px;
}

.media-current-file label {
    padding: 0;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 400;
}

.btn_confirm {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 36px;
}

.btn_confirm .btn,
.btn_confirm button,
.btn_confirm a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    height: 46px;
    padding: 0 22px;
    border: 1px solid #cfd6e2;
    border-radius: 4px;
    background: #fff;
    color: #222;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
}

.btn_confirm .btn_submit,
.btn_confirm button[type="submit"] {
    border-color: #07346b;
    background: #07346b;
    color: #fff;
}

.btn_confirm .btn_cancel {
    background: #fff;
    color: #333;
}

/* ==============================
   Responsive
============================== */

@media (max-width: 1024px) {
    .board-section {
        padding: 70px 0 100px;
    }

    .media-list-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .media-search {
        width: 100%;
        min-width: 0;
    }

    .media-search-input {
        width: 100%;
    }

    .media-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 48px 20px;
    }

    .media-info h3 {
        font-size: 20px;
    }

    .media-view-head h2 {
        font-size: 32px;
    }
}

@media (max-width: 640px) {
    .board-section {
        padding: 54px 0 80px;
    }

    .board-inner {
        padding: 0 18px;
    }

    .dmi-sec-head h3 {
        font-size: 28px;
    }

    .media-search {
        flex-direction: column;
        align-items: stretch;
    }

    .media-search select {
        width: 100%;
    }

    .media-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .media-info {
        padding-top: 16px;
    }

    .media-info h3 {
        margin-bottom: 10px;
        font-size: 19px;
    }

    .media-info p {
        font-size: 15px;
    }

    .media-view-head h2 {
        font-size: 26px;
    }

    .media-view-utils {
        align-items: flex-start;
        flex-direction: column;
    }

    .media-view-tools {
        width: 100%;
    }

    .media-view-tools button {
        flex: 1;
    }

    .view-nav .nav-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        padding: 16px 0;
    }

    .view-nav .nav-label {
        flex: none;
    }

    .media-write-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .media-write-row label {
        padding-top: 0;
    }
}
