.modern-board-page {
    padding-top: 26px;
    padding-bottom: 58px;
    border-bottom: 0 !important;
}

.modern-board-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 24px;
    padding: 16px 18px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(17, 24, 39, 0.07);
}

.modern-board-toolbar label {
    margin: 0;
    color: #262626;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

.modern-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    width: min(100%, 420px);
}

.modern-search-box input {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #d6dbe3;
    border-radius: 8px;
    background: #fbfcfd;
    color: #1f2937;
    font-size: 15px;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.modern-search-box input:focus {
    border-color: #b4342b;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(180, 52, 43, 0.14);
}

.modern-search-box button {
    height: 42px;
    min-width: 74px;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    background: #b4342b;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease;
}

.modern-search-box button:hover {
    background: #92271f;
    transform: translateY(-1px);
}

.modern-board-list {
    overflow: hidden;
    border: 1px solid #e1e6ee;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(17, 24, 39, 0.08);
}

.modern-board-head,
.modern-board-row {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr) 150px;
    align-items: center;
}

.modern-board-head {
    min-height: 50px;
    background: #f6f7f9;
    color: #49515c;
    font-size: 14px;
    font-weight: 800;
    border-bottom: 1px solid #e4e8ef;
}

.modern-board-head span,
.modern-board-row span,
.modern-board-row strong,
.modern-board-row time {
    padding: 0 18px;
}

.modern-board-head span:first-child,
.modern-board-no,
.modern-board-date {
    text-align: center;
}

.modern-board-row {
    min-height: 66px;
    color: #20252c;
    border-top: 1px solid #edf0f4;
    text-decoration: none;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.modern-board-row:first-of-type {
    border-top: 0;
}

.modern-board-row:hover,
.modern-board-row:focus {
    background: #fff6f4;
    color: #9f2d25;
    text-decoration: none;
    transform: translateX(2px);
}

.modern-board-no,
.modern-board-date {
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
}

.modern-board-title {
    overflow: hidden;
    color: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.modern-gallery-card {
    overflow: hidden;
    border: 1px solid #e2e7ef;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(17, 24, 39, 0.08);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.modern-gallery-card:hover {
    border-color: rgba(180, 52, 43, 0.38);
    box-shadow: 0 18px 42px rgba(17, 24, 39, 0.14);
    transform: translateY(-4px);
}

.modern-gallery-card a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.modern-gallery-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #eef1f5;
}

.modern-gallery-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.modern-gallery-card:hover .modern-gallery-image img {
    transform: scale(1.045);
}

.modern-gallery-body {
    display: block;
    min-height: 94px;
    padding: 17px 18px 18px;
}

.modern-gallery-body strong {
    display: -webkit-box;
    overflow: hidden;
    min-height: 45px;
    color: #20252c;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.modern-gallery-body time {
    display: block;
    margin-top: 12px;
    color: #717986;
    font-size: 14px;
    font-weight: 600;
}

.modern-empty {
    grid-column: 1 / -1;
    padding: 52px 18px;
    border: 1px dashed #cfd6df;
    border-radius: 8px;
    background: #fafbfc;
    color: #6b7280;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
}

.modern-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 30px 0 0;
    border: 0 !important;
}

.modern-board-page hr,
.modern-board-page .title,
.modern-board-page .bt_line {
    display: none !important;
    border: 0 !important;
}

.modern-pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #d7dde6;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.modern-pagination .page-link:hover {
    border-color: #b4342b;
    color: #b4342b;
    transform: translateY(-1px);
}

.modern-pagination .is-current,
.modern-pagination .is-current:hover {
    border-color: #b4342b;
    background: #b4342b;
    color: #fff;
    transform: none;
}

.modern-pagination .is-disabled,
.modern-pagination .is-disabled:hover {
    opacity: .42;
    pointer-events: none;
    transform: none;
}

@media (max-width: 991px) {
    .modern-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}

@media (max-width: 767px) {
    .modern-board-page {
        padding-top: 18px;
    }

    .modern-board-toolbar {
        align-items: stretch;
        flex-direction: column;
        padding: 14px;
    }

    .modern-search-box {
        width: 100%;
    }

    .modern-board-head {
        display: none;
    }

    .modern-board-row {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 0;
        min-height: 76px;
        padding: 12px 0;
    }

    .modern-board-row strong,
    .modern-board-row time {
        padding-left: 8px;
        padding-right: 14px;
    }

    .modern-board-no {
        grid-row: 1 / span 2;
        padding: 0 8px;
    }

    .modern-board-title {
        white-space: normal;
    }

    .modern-board-date {
        margin-top: 4px;
        text-align: left;
    }

    .modern-gallery-grid {
        grid-template-columns: 1fr;
    }

    .modern-gallery-body {
        min-height: auto;
    }
}

@media (max-width: 420px) {
    .modern-search-box {
        flex-direction: column;
        align-items: stretch;
    }

    .modern-search-box button {
        width: 100%;
    }
}
