/**
 * Tài Liệu Template Styles
 * Font: Roboto, Sans-serif
 * Icons: Font Awesome
 */

/* ==========================================================================
   General Styles
   ========================================================================== */
body {
    font-family: "Roboto", Sans-serif;
}

.container-fuild {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

#body {
    padding-top: 20px;
    padding-bottom: 40px;
}
#right-sidebar{
    margin-top: 0px !important;
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */
.breadcrumbs {
    margin-bottom: 25px;
    font-size: 14px;
    color: #666;
}

.breadcrumbs a {
    color: #2e3192;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: #1a1d5e;
    text-decoration: underline;
}

.breadcrumb_last {
    color: #333;
    font-weight: 600;
}

/* ==========================================================================
   Layout Grid
   ========================================================================== */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-xs-12 {
    width: 100%;
    padding: 0 15px;
}

/* Desktop columns */
@media (min-width: 768px) {
    .col-md-3 {
        width: 25%;
        padding: 0 15px;
    }

    .col-md-6 {
        width: 50%;
        padding: 0 15px;
    }

    .col-md-9 {
        width: 75%;
        padding: 0 15px;
    }
}

/* ==========================================================================
   Archive List Styles
   ========================================================================== */
.viewcat_list {
    margin-bottom: 30px;
}

.panel {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.panel-default {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* List Header */
.list-title {
    background: linear-gradient(135deg, #2e3192 0%, #1a1d5e 100%);
    border-bottom: none;
    padding: 16px 20px;
    font-weight: 600;
    color: #fff;
    align-items: center;
}

.list-title strong {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
}

/* List Content */
.list-content {
    padding: 18px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    align-items: center;
}

.list-content:hover {
    background: #f8f9fa;
    border-left: 3px solid #2e3192;
    padding-left: 17px;
}

.list-content:last-child {
    border-bottom: none;
}

.list-content a {
    color: #2e3192;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.list-content a:hover {
    color: #1a1d5e;
    text-decoration: underline;
}

.list-content .col-md-3 {
    color: #666;
    font-size: 14px;
}

.list-content .col-md-6 {
    overflow: hidden;
}

.list-content .text-center {
    text-align: center;
    color: #888;
    font-weight: 600;
    font-size: 14px;
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.pagination-container {
    text-align: center;
    padding: 30px 0;
    margin-top: 20px;
    border-top: 1px solid #eee;
}

.pagination-wrapper {
    display: inline-block;
}

.pagination-wrapper ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 5px;
    align-items: center;
}

.pagination-wrapper li {
    display: inline-block;
}

.pagination-wrapper a,
.pagination-wrapper span {
    display: inline-block;
    padding: 10px 15px;
    background: #fff;
    border: 1px solid #ddd;
    color: #2e3192;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
    min-width: 40px;
    text-align: center;
}

.pagination-wrapper a:hover {
    background: #2e3192;
    color: #fff;
    border-color: #2e3192;
}

.pagination-wrapper .current {
    background: #2e3192;
    color: #fff;
    border-color: #2e3192;
}

.pagination-wrapper .dots {
    border: none;
    background: transparent;
    color: #999;
}

.pagination-wrapper .prev,
.pagination-wrapper .next {
    font-weight: 600;
}

/* Old pagination style for compatibility */
.page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    background: #fff;
    border: 1px solid #ddd;
    color: #2e3192;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.page-numbers:hover {
    background: #2e3192;
    color: #fff;
    border-color: #2e3192;
}

.page-numbers.current {
    background: #2e3192;
    color: #fff;
    border-color: #2e3192;
}

.page-numbers.next,
.page-numbers.prev {
    font-weight: 600;
}

/* ==========================================================================
   Sidebar Styles
   ========================================================================== */
#right-sidebar {
    margin-top: 20px;
}

.colorblock {
    margin-bottom: 25px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.panel-heading {
    background: linear-gradient(135deg, #2e3192 0%, #1a1d5e 100%);
    color: #fff;
    padding: 14px 18px;
    border-radius: 6px 6px 0 0;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
}

.panel-heading i {
    margin-right: 10px;
    font-size: 16px;
}

.panel-body {
    padding: 18px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 6px 6px;
}

/* List Items */
.list_item {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list_item li {
    border-bottom: 1px solid #f0f0f0;
    padding: 14px 0;
    transition: all 0.3s ease;
}

.list_item li:hover {
    background: #f8f9fa;
    padding-left: 10px;
    margin-left: -10px;
    padding-right: 10px;
    margin-right: -10px;
    border-radius: 4px;
}

.list_item li:last-child {
    border-bottom: none;
}

.list_item .item {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.list_item a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 1.4;
}

.list_item a:hover {
    color: #2e3192;
}

.list_item em {
    color: #2e3192;
    margin-right: 6px;
    font-size: 13px;
}

.list_item .item {
    color: #666;
}

/* Contact List */
.contactList {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contactList li {
    padding: 10px 0;
    font-size: 14px;
}

.contactList .icall {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.contactList .icall:hover {
    background: #e8f0fe;
    transform: translateX(3px);
}

.contactList span {
    font-weight: 700;
    color: #2e3192;
    font-size: 16px;
}

/* Support Box */
.icat {
    margin-bottom: 20px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.icat .title {
    background: linear-gradient(135deg, #2e3192 0%, #1a1d5e 100%);
    color: #fff;
    padding: 14px 18px;
    margin: 0;
    font-size: 15px;
    border-radius: 6px 6px 0 0;
    font-weight: 600;
}

.panel-block {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 6px 6px;
}

.m-bottom {
    margin-bottom: 15px;
}

.text-left {
    text-align: left;
}

/* ==========================================================================
   Single Document Styles
   ========================================================================== */
.block_download {
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.block_download .title {
    color: #2e3192;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
}

.block_download .margin-top {
    margin-top: 0;
}

.introtext {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

.introtext a {
    color: #2e3192;
    font-weight: 500;
}

.introtext a:hover {
    text-decoration: underline;
}

/* PDF Viewer */
.pdfjs-viewer {
    width: 100%;
    height: 600px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 20px 0;
}

/* Download Section */
.info_download {
    background: #f5f5f5;
    padding: 12px 15px;
    margin: 20px 0 10px;
    border-radius: 4px;
    font-weight: 600;
    color: #2e3192;
}

.info_download em {
    margin-right: 5px;
}

.download {
    margin-bottom: 20px;
}

.file-download-link {
    display: flex;
    align-items: center;
    padding: 15px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.file-download-link:hover {
    color: #2e3192;
}

.file-download-link i {
    margin-right: 10px;
    font-size: 18px;
}

.text-black {
    color: #333;
}

.hidden {
    display: none;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */
@media (max-width: 767px) {
    .hidden-xs {
        display: none !important;
    }

    .list-title {
        padding: 10px;
    }

    .list-content {
        padding: 10px;
    }

    #right-sidebar {
        margin-top: 30px;
    }

    .block_download .title {
        font-size: 22px;
    }

    .pdfjs-viewer {
        height: 400px;
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}
