* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Breadcrumb */
.breadcrumb {
    background-color: #f8f9fa;
    padding: 15px 0;
    font-size: 14px;
    color: #666;
}

.breadcrumb-home {
    color: #333;
}

.breadcrumb-separator {
    margin: 0 10px;
    color: #999;
}

.breadcrumb-item {
    color: #666;
}

.breadcrumb-item.active {
    color: #333;
    font-weight: 500;
}

/* Page Banner */
.page-banner {
    background-image: url('/image/category_banner.png');
    background-size: contain;
    background-position: center top;
    background-repeat: no-repeat;
    position: relative;
    text-align: center;
    width: 100%;
    aspect-ratio: 4.13 / 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 50px 20px 40px;
    min-height: 300px;
}

.page-title {
    font-size: 48px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.page-banner .breadcrumb {
    background-color: transparent;
    padding: 0;
    font-size: 13px;
    color: #666;
    margin-bottom: 40px;
}

/* Admin Actions */
.admin-actions {
    background-color: #f8f9fa;
    padding: 20px 0;
}

.admin-actions .container {
    display: flex;
    justify-content: flex-end;
}

.btn-write {
    display: inline-block;
    padding: 12px 30px;
    background-color: #1064D9;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-write:hover {
    background-color: #0d53b3;
}

/* Resources Section */
.resources-section {
    padding: 80px 0;
    background-color: #fff;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 15px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #4A90E2;
    margin: 15px auto 0;
}

/* Total Count */
.total-count {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

/* Resources Table */
.resources-table {
    border-top: 2px solid #333;
    margin-bottom: 60px;
}

.empty-message {
    padding: 60px 20px;
    text-align: center;
    color: #666;
    font-size: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.table-header,
.table-row {
    display: grid;
    grid-template-columns: 80px 1fr 120px 80px 140px;
    gap: 20px;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.table-header {
    background-color: #fff;
    font-weight: 600;
    font-size: 15px;
    color: #333;
}

.table-row {
    transition: background-color 0.3s;
}

.table-row:hover {
    background-color: #f8f9fa;
}

.col-number,
.col-views {
    text-align: center;
    font-size: 15px;
    color: #666;
}

.col-title {
    text-align: left;
}

.col-title a {
    font-size: 15px;
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.col-title a:hover {
    color: #4A90E2;
}

.col-author,
.col-date {
    text-align: center;
    font-size: 15px;
    color: #666;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.page-btn:hover {
    background-color: #f8f9fa;
    border-color: #4A90E2;
    color: #4A90E2;
}

.page-btn.active {
    background-color: #4A90E2;
    border-color: #4A90E2;
    color: white;
}

/* Responsive */
@media (max-width: 1100px) {
    .page-title {
        font-size: 40px;
    }

    .page-banner {
        padding: 30px 20px 40px;
    }
}

@media (max-width: 900px) {
    .page-title {
        font-size: 38px;
    }

    .page-banner {
        padding: 25px 20px 40px;
    }
}

@media (max-width: 810px) {
    .page-title {
        font-size: 35px;
    }

    .page-banner {
        padding: 22px 20px 40px;
    }
}

@media (max-width: 768px) {
    .page-banner {
        background-image: url('/image/m_category_banner.png');
        aspect-ratio: 4.13 / 1;
        min-height: 200px;
        padding: 30px 15px 30px;
    }

    .page-title {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .page-banner .breadcrumb {
        font-size: 12px;
        margin-bottom: 30px;
    }

    .banner-illustration img {
        max-height: 180px;
    }

    .section-title {
        font-size: 28px;
    }

    .table-header {
        display: none;
    }

    .table-row {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 15px;
    }

    .col-number::before {
        content: '번호: ';
        font-weight: 600;
    }

    .col-author::before {
        content: '글쓴이: ';
        font-weight: 600;
    }

    .col-views::before {
        content: '조회: ';
        font-weight: 600;
    }

    .col-date::before {
        content: '날짜: ';
        font-weight: 600;
    }

    .col-number,
    .col-author,
    .col-views,
    .col-date {
        text-align: left;
    }
}

/* Extra small screens (Z Fold outer screen, etc.) */
@media (max-width: 350px) {
    .container {
        padding: 0 15px;
    }

    .breadcrumb {
        font-size: 12px;
        padding: 12px 0;
    }

    .breadcrumb-separator {
        margin: 0 6px;
    }

    .page-banner {
        min-height: 150px;
        padding: 25px 10px 20px;
    }

    .page-title {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .page-banner .breadcrumb {
        font-size: 11px;
        margin-bottom: 20px;
    }

    .resources-section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .data-table {
        border-radius: 8px;
    }

    .table-row {
        padding: 12px;
        gap: 8px;
    }

    .col-number,
    .col-title,
    .col-author,
    .col-views,
    .col-date {
        font-size: 13px;
    }

    .col-number::before,
    .col-author::before,
    .col-views::before,
    .col-date::before {
        font-size: 12px;
    }

    .pagination {
        gap: 8px;
    }

    .page-btn {
        min-width: 35px;
        height: 35px;
        padding: 0 10px;
        font-size: 13px;
    }
}
