﻿
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.page-wrap {
    color: #222;
    padding: 24px 20px 40px;
}

/* breadcrumb */
.breadcrumb {
    font-size: 12px;
    color: #777;
    margin-bottom: 18px;
}

    .breadcrumb a {
        color: #1a3a6e;
        text-decoration: none;
    }

        .breadcrumb a:hover {
            text-decoration: underline;
        }

    .breadcrumb span {
        margin: 0 5px;
    }

/* page title strip */
.page-title-bar {
    background: #1a3a6e;
    color: #fff;
    padding: 14px 20px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

    .page-title-bar h1 {
        font-size: 18px;
        font-weight: bold;
        letter-spacing: 0.02em;
    }

    .page-title-bar .doc-count {
        font-size: 12px;
        background: rgba(255,255,255,0.15);
        border: 1px solid rgba(255,255,255,0.25);
        padding: 4px 12px;
        border-radius: 20px;
        color: #fff;
    }

/* search bar */
.search-wrap {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    display: flex;
    overflow: hidden;
    margin-bottom: 22px;
}

    .search-wrap input {
        flex: 1;
        border: none;
        outline: none;
        padding: 10px 14px;
        font-size: 13px;
        font-family: Arial, Helvetica, sans-serif;
        color: #333;
        background: transparent;
    }

    .search-wrap button {
        background: #1a3a6e;
        border: none;
        color: #fff;
        padding: 0 18px;
        font-size: 13px;
        cursor: pointer;
        font-family: Arial, Helvetica, sans-serif;
    }

/* filter tabs */
.filter-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.filter-tab {
    background: #fff;
    border: 1px solid #ccc;
    color: #444;
    font-size: 12px;
    padding: 5px 13px;
    border-radius: 4px;
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
    transition: all 0.15s;
}

    .filter-tab:hover {
        border-color: #1a3a6e;
        color: #1a3a6e;
    }

    .filter-tab.active {
        background: #1a3a6e;
        color: #fff;
        border-color: #1a3a6e;
    }

/* section label */
.section-label {
    font-size: 13px;
    font-weight: bold;
    color: #1a3a6e;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-left: 4px solid #1a3a6e;
    padding-left: 10px;
    margin-bottom: 14px;
}

/* publication cards grid */
.pub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.pub-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.2s, border-color 0.2s;
    cursor: pointer;
}

    .pub-card:hover {
        border-color: #1a3a6e;
        box-shadow: 0 3px 12px rgba(0,0,0,0.1);
    }

.pub-card-header {
    background: #1a3a6e;
    padding: 18px 14px 14px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    position: relative;
}

    .pub-card-header.light {
        background: #e8ecf4;
    }

        .pub-card-header.light .pub-icon {
            color: #1a3a6e;
        }

.pub-icon {
    font-size: 32px;
    line-height: 1;
}

.pub-tag {
    font-size: 10px;
    background: rgba(255,255,255,0.18);
    color: #fff;
    padding: 3px 8px;
    border-radius: 3px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.pub-card-header.light .pub-tag {
    background: rgba(26,58,110,0.12);
    color: #1a3a6e;
}

.pub-card-body {
    padding: 13px 14px;
}

.pub-card-title {
    font-size: 13px;
    font-weight: bold;
    color: #222;
    line-height: 1.4;
    margin-bottom: 8px;
}

.pub-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #888;
}

.pub-card-dl {
    color: #1a3a6e;
    font-weight: bold;
    text-decoration: none;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 3px;
}

    .pub-card-dl:hover {
        text-decoration: underline;
    }

/* document list */
.doc-list {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 28px;
}

.doc-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.15s;
}

    .doc-item:last-child {
        border-bottom: none;
    }

    .doc-item:hover {
        background: #f5f7fc;
    }

.doc-ext {
    width: 34px;
    height: 38px;
    border-radius: 4px;
    background: #e8ecf4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    color: #1a3a6e;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

    .doc-ext.pdf {
        background: #fde8e8;
        color: #b00;
    }

.doc-info {
    flex: 1;
}

.doc-name {
    font-size: 13px;
    font-weight: bold;
    color: #222;
    margin-bottom: 2px;
}

.doc-sub {
    font-size: 11px;
    color: #888;
}

.doc-right {
    text-align: right;
    flex-shrink: 0;
}

.doc-size {
    font-size: 11px;
    color: #aaa;
    display: block;
    margin-bottom: 4px;
}

.doc-dl-btn {
    font-size: 11px;
    background: #1a3a6e;
    color: #fff;
    border: none;
    padding: 4px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
}

/* pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 8px;
}

.pg-btn {
    background: #fff;
    border: 1px solid #ccc;
    color: #444;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
}

    .pg-btn:hover {
        border-color: #1a3a6e;
        color: #1a3a6e;
    }

    .pg-btn.active {
        background: #1a3a6e;
        color: #fff;
        border-color: #1a3a6e;
    }

/* document table */
.document-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

    .document-table thead th {
        background: #1a3a6e;
        color: #fff;
        font-size: 13px;
        text-align: left;
        padding: 12px 14px;
        font-weight: 600;
    }

    .document-table tbody td {
        padding: 12px 14px;
        border-top: 1px solid #eee;
        vertical-align: middle;
        font-size: 13px;
        color: #222;
    }

    .document-table tbody tr:hover td {
        background: #f5f7fc;
    }

    .document-table .doc-ext {
        width: 48px;
        height: 36px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 4px;
        background: #e8ecf4;
        color: #1a3a6e;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }
