/* =====================================================================
   Cac trang trong (tin, chuyen muc, van ban, anh, video, tai lieu...)
   Dong bo phong cach voi trang chu: khoi co vien + bong, tieu de co duong ke,
   the tin to ro, phan trang bo tron, bang co tieu de mau
   ===================================================================== */
#body {
    --in-navy: #123a7a;
    --in-blue: #0a60b6;
    --in-line: #d5e3f4;
    --in-shadow: 0 6px 18px rgba(18, 58, 122, .10), 0 1px 3px rgba(18, 58, 122, .07);
}

/* ---- khoi (panel) ---- */
#body .panel-default,
#body .news_column .panel {
    background: #fff;
    border: 1px solid var(--in-line);
    border-radius: 14px;
    box-shadow: var(--in-shadow);
    overflow: hidden;
}
#body .panel-default > .panel-heading {
    background: #fff;
    border: 0;
    border-bottom: 2px solid #e3edf9;
    color: var(--in-navy);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .2px;
    position: relative;
}
#body .panel-default > .panel-heading::after {
    content: ''; position: absolute; left: 14px; bottom: -2px; width: 56px; height: 2px; background: var(--in-blue);
}

/* ---- danh sach tin trong chuyen muc ---- */
#body .news_column > .panel { margin-bottom: 16px; transition: transform .2s, box-shadow .2s, border-color .2s; }
#body .news_column > .panel:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(18, 58, 122, .16); border-color: #b5cfee; }
#body .news_column > .panel > .panel-body {
    padding: 14px 18px 14px 16px;
    border-left: 4px solid transparent;
    min-height: 140px;
}
#body .news_column > .panel:hover > .panel-body { border-left-color: var(--in-blue); }
#body .news_column .panel-body > a:first-child { display: block; float: left; margin-right: 18px; }
#body .news_column img.imghome {
    float: none !important;
    width: 176px !important;
    height: 118px !important;
    object-fit: cover;
    border: 0 !important;
    padding: 0 !important;
    border-radius: 10px;
    margin: 0 !important;
    background: #dfe9f5;
    display: block;
}
#body .news_column .panel-body h2,
#body .news_column .panel-body h3 { margin: 2px 0 8px; font-size: 18px; line-height: 1.4; font-weight: 800; }
#body .news_column .panel-body h2 { font-size: 20px; }
#body .news_column .panel-body h2 a,
#body .news_column .panel-body h3 a { color: var(--in-navy); }
#body .news_column .panel-body h2 a:hover,
#body .news_column .panel-body h3 a:hover { color: var(--in-blue); }
#body .news_column .panel-body .text-muted ul { margin: 0 0 6px; }
#body .news_column .panel-body .text-muted li { font-size: 12.5px; color: #6b7a8c; }
#body .news_column .panel-body p { color: #3c4b5d; line-height: 1.55; margin: 0; }

/* ---- phan trang ---- */
#body ul.pagination { margin: 14px 0 6px; }
#body ul.pagination > li > a,
#body ul.pagination > li > span {
    border: 1px solid var(--in-line);
    border-radius: 10px !important;
    margin: 0 3px;
    min-width: 38px;
    text-align: center;
    color: var(--in-blue);
    font-weight: 700;
    background: #fff;
}
#body ul.pagination > li > a:hover { background: #e8f1fb; border-color: #b5cfee; }
#body ul.pagination > .active > a,
#body ul.pagination > .active > a:hover { background: linear-gradient(180deg, #1b78d6, #0a5aae); border-color: #0a5aae; color: #fff; }
#body ul.pagination > .disabled > a { color: #a9b7c8; background: #f4f7fb; }

/* ---- bang (van ban, tai lieu) ---- */
#body table.table,
#body table.tab1 {
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--in-line);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}
#body table.table > thead > tr > th,
#body table.tab1 > thead > tr > th,
#body table.table > tbody > tr:first-child > th {
    background: linear-gradient(180deg, #1b78d6, #0a5aae);
    color: #fff;
    border: 0;
    text-align: center;
    font-weight: 700;
    padding: 10px 8px;
}
#body table.table > tbody > tr > td,
#body table.tab1 > tbody > tr > td { border-top: 1px solid #e6eef8; padding: 9px 10px; }
#body table.table > tbody > tr:nth-child(even) > td { background: #f6faff; }
#body table.table > tbody > tr:hover > td { background: #eaf3fd; }
#body table.table a { color: var(--in-navy); font-weight: 600; }
#body table.table a:hover { color: var(--in-blue); }

/* ---- nut chinh ---- */
#body .btn-primary, #body .btn-info {
    background: linear-gradient(180deg, #1b78d6, #0a5aae);
    border-color: #0a5aae;
    border-radius: 9px;
    font-weight: 700;
}
#body .btn-primary:hover, #body .btn-info:hover { filter: brightness(1.08); }

/* ---- chi tiet bai viet ---- */
#body h1.page-header, #body .page-header h1, #body h1[itemprop="headline"] {
    color: var(--in-navy);
    font-weight: 800;
    line-height: 1.35;
}
#body .hometext { border-radius: 10px; }
#body .bodytext img, #body #news-bodyhtml img { max-width: 100%; height: auto; border-radius: 6px; }

/* ---- album anh / video / tai lieu ---- */
#body .thumbnail, #body .panel-photo, #body .album-item {
    border: 1px solid var(--in-line);
    border-radius: 14px;
    box-shadow: var(--in-shadow);
}

@media (max-width: 767px) {
    #body .news_column img.imghome { width: 120px !important; height: 84px !important; }
    #body .news_column .panel-body h2, #body .news_column .panel-body h3 { font-size: 16px; }
}

/* ---- bang van ban dang luoi ---- */
#body .flex-table-laws {
    border: 1px solid var(--in-line);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--in-shadow);
}
#body .flex-table-laws .table-head {
    background: linear-gradient(180deg, #1b78d6, #0a5aae) !important;
    border: 0 !important;
}
#body .flex-table-laws .table-head > div { color: #fff !important; font-weight: 700; }
#body .flex-table-laws .table-rows { border-bottom: 1px solid #e6eef8; transition: background .15s; }
#body .flex-table-laws .table-rows:not(.table-head):nth-child(even) { background: #f6faff; }
#body .flex-table-laws .table-rows:not(.table-head):hover { background: #eaf3fd; }
#body .flex-table-laws .c-intro a, #body .flex-table-laws .c-code a { color: var(--in-navy); font-weight: 700; }
#body .flex-table-laws .c-intro a:hover { color: var(--in-blue); }
#body .flex-table-laws .c-file a { color: var(--in-blue); font-weight: 600; }

/* ---- bai khong co anh: bo anh mac dinh lap lai, de the tin gon va ro chu ---- */
#body .news_column .panel-body > a:first-child:has(img[src$="no-image-mn.jpg"]) { display: none; }
#body .news_column .panel-body:has(img[src$="no-image-mn.jpg"]) { min-height: 0; padding-top: 12px; padding-bottom: 12px; }
