/**
 * NukeViet Content Management System
 * @version 4.x
 * @author VINADES.,JSC <contact@vinades.vn>
 * @copyright (C) 2009-2021 VINADES.,JSC. All rights reserved
 * @license GNU/GPL version 2 or any later version
 * @see https://github.com/nukeviet The NukeViet CMS GitHub project
 */

/* Font cách điệu cho tiêu đề chuyên mục / block — tải từ Google Fonts nếu có mạng,
   không có mạng thì tự lùi về Comic Sans MS (có sẵn trên Windows, đủ dấu tiếng Việt) */
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@600;700&display=swap');

/* Các tùy chỉnh CSS của giao diện nên để vào đây */
.header{
    background: url(../images/banner-tuachua1.png) no-repeat;
    background-size: 100% 100%;
    aspect-ratio: 1413 / 623;   /* đúng tỉ lệ ảnh banner -> không méo */
}
.mobile-menu-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
}

.mobile-menu-wrap {
    width: 280px;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: #fff;
    z-index: 9999;
    visibility: hidden;
    transform: translateX(100%);
}

.mobile-menu-wrap.animate {
    transition: all 0.35s ease;
    -webkit-transition: all .35s ease;
    -o-transition: all .35s ease;
    transition: all .35s ease;
    -webkit-transform: translateX(280px);
    -ms-transform: translateX(280px);
    -o-transform: translateX(280px);
    transform: translateX(280px);
}

.mobile-menu-wrap .logo {
    border-bottom: 1px transparent solid;
    padding: 10px;
    text-align: center;
}

.mobile-menu-wrap .logo img {
    height: 50px;
    width: auto;
}

.mobile-menu-wrap .menu {
    background-color: rgb(255, 255, 255);
    height: calc(100vh - 111px);
    overflow: auto;
}

.mobile-menu-wrap .mfooter {
    background-color: #fff;
    height: 30px;
    padding: 10px;
    text-align: center;
    color: #777;
}

.mobile-menu-toggle-btn {
    cursor: pointer;
    width: 100%;
    position: absolute;
    top: 176px;
    line-height: 36px;
    font-size: 22px;
    border-radius: 3px;
    display: none;
    left: 0;
    margin-top: -6px;
    text-align: end;
    padding-right: 10px;
}

.mobile-menu-toggle-btn i {
    color: #fff;
    font-size: 25px;
    border: 1px solid;
    border-radius: 7px;
    padding: 3px 10px 3px 10px;
    margin: 1px 1px 1px 1px;
    background-color: #245682;
}

.mobile-menu-toggle-btn i:hover {
    background-color: #428bca;
}

/* .mobile-menu-toggle-btn:hover {
    background-color: #245682;
} */

.btn-warning {
    background-color: #428bca;
    border-color: #fff;
}

.btn-warning:hover {
    color: #fff;
    background-color: #245682;
    border-color: #fff;
}

.btn-warning:focus,
.btn-warning.focus {
    color: #fff;
    background-color: #428bca;
    border-color: #245682;
}

.col-xs-20 {
    padding-left: 5px;
}

.col-xs-4 {
    padding-left: 0px;
}

.kidpic h3 {
    top: 30px !important;
}

.fb_iframe_widget iframe {
    top: 3px;
}

.nv-list-item li {
    display: flex;
}

.nv-list-item li h3 {
    margin-top: -4px;
    margin-bottom: 5px;
    padding-left: 5px;
}

.nv-social-share li.facebook {
    top: 2px;
}

.block_content_star ul li a img{
    height: 52px;
    object-fit: cover;
}

.fr {
    float: left;
}

.sf-main h3 {
    width: 100% !important;
    margin-left: 0px !important;
}

.easyslider_content .easyslider_albumtitle{
    /*max-width: 440px;*/
    height: 15px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .navbar-default .navbar-nav > li > a{
        padding-left: 20px;
        padding-right: 20px;
    }
}

.navbar-nav > li > a{
    padding-top: 10px;
    padding-bottom: 10px;
}

.header .logo{
    max-width: 200px;
    width: auto;
}

.topadv{
    width: 100%;
}

.page h3 {
    font-family: "butlong";
    font-size: 16px;
    color: #fe292b;
    margin-bottom: 6px;
}


.page .nv-list-item h3 {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
    font-size: 14px !important;
}

.page .panel-default>.panel-heading{
    background-color: transparent;
    border-color: transparent;
    background-image: none !important;
    padding: 10px 15px 0;
}

.page .panel-primary>.panel-heading{
    background-color: transparent;
    border-color: transparent;
    background-image: none !important;
    padding: 10px 15px 0;
    font-family: "butlong";
    color: #fe292b;
    font-size: 16px;
}

.page .panel-primary{
    border-color: #ccc;
}

.detail-related.related li *{
    display: inline !important;
}

.other-news .h3{
    text-align: left !important;
}

.other-news ul li{
    padding-left: 3px;
    margin-bottom: 0px;
}

.text-muted ul.list-unstyled  li{
    font-size: 12px !important;
}
.headerSearch .input-group .form-control,
.headerSearch .btn {
    height: 33px;
}
.headerSearch .input-group .form-control {
    border-color: transparent;
    box-shadow: none;
}
.headerSearch .btn {
    background-color: #fff;
}
.navbar-default .navbar-collapse, 
.navbar-default .navbar-form {
    margin: 0;
}
.metismenu{
    border-bottom: none;
}
.metismenu .sidebar-nav .metismenu>li:first-child>a {
    border-top: none;
}
.metismenu .sidebar-nav .metismenu ul ul a {
    padding-left: 40px;
}
.header {
    margin: 0;
}
@media (min-width: 768px) and (max-width:800px) {
    .header .logo img{
        max-width: 120px;
        height: auto
    }
    .header .logo{
        top: 50%;
        transform: translateY(-50%);
    }
}

@media (max-width: 900px) {
    .mobile-menu-toggle-btn {
        display: block;
        margin-top: 0px;
        padding-right: 0px;
    }

    .header {
        background-repeat: initial !important;
        background-size: initial !important;
        margin-bottom: 50px;
    }

    .open-menu .mobile-menu-bg {
        display: block;
    }

    .open-menu .mobile-menu-wrap {
        visibility: visible;
        transform: translateX(0px);
    }


    .open-menu .mobile-menu-bg {
        display: block;
    }

    .navbar-default{
        display: none !important;
    }

    .headerSearch .btn-info{
        background-color: transparent;
        border-color: transparent;
        color: #000;
    }

    .headerSearch input{
        -webkit-box-shadow: none;
        box-shadow: none;
        -webkit-transition: none;
        -o-transition: none;
        transition: none;
    }

    .headerSearch .input-group{
        border: 1px solid #ccc;
        border-radius: 5px;
    }

    .search input{
        height: 31px !important;
    }

    /* .mobile-menu-wrap .menu .sidebar {
        height: calc(100vh - 350px);
        overflow: auto;
    } */

    .metismenu .sidebar-nav{
        background-image: none !important;
    }
}

@media (min-width: 375px) and (max-width: 424px) {
    .topadv p strong a {
        font-size: 15px;
    }

    .topadv p{
        margin-bottom: 0px;
    }
}

/* Tên & mô tả trường: serif thanh lịch, hơi cách điệu, mang dáng văn bản hành chính */
.topadv strong a{
    font-size: 17px;
    font-family: Cambria, "Times New Roman", Times, serif;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    color: rgb(61, 97, 198);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
}
.topadv strong.mota{
    font-size: 27px;
    font-family: Cambria, "Times New Roman", Times, serif;
    font-weight: bold;
    line-height: 1.25;
    text-align: center;
    color: rgb(255, 0, 50);
    text-transform: uppercase;
    letter-spacing: .8px;
    display: block;
}
 .bgblock .meal_list .meal p {
    color: #243a9e;

}

/* ============================================================
   MENU NGANG — thiết kế lại kiểu trường mầm non
   (pill bo tròn nhiều màu kẹo ngọt, chữ butlong, hover nảy)
   ============================================================ */
/* Kéo menu lên nằm đè lên dải thổ cẩm mép dưới banner
   -> banner + menu thành 1 khối, không còn dải kem ngăn cách */
.navbar.navbar-default {
    margin-top: -28px;
    position: relative;
    z-index: 4;
    background: transparent;
    border: none;
}
#menu-site-default .navbar-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 9px;
    padding: 6px 0;
}
#menu-site-default .navbar-nav > li {
    background: none;
    float: none;
}
#menu-site-default .navbar-nav > li > a {
    display: block;
    padding: 8px 18px;
    font-family: butlong, "Segoe UI", Arial, sans-serif;
    font-size: 18px;
    font-weight: normal;
    line-height: 1;
    letter-spacing: .3px;
    color: #fff;
    border-radius: 999px;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
/* bảng màu hài hòa cho 7 mục */
#menu-site-default .navbar-nav > li:nth-child(1) > a { background: #ff6b6b; }
#menu-site-default .navbar-nav > li:nth-child(2) > a { background: #4dabf7; }
#menu-site-default .navbar-nav > li:nth-child(3) > a { background: #51cf66; }
#menu-site-default .navbar-nav > li:nth-child(4) > a { background: #cc5de8; }
#menu-site-default .navbar-nav > li:nth-child(5) > a { background: #ffa94d; }
#menu-site-default .navbar-nav > li:nth-child(6) > a { background: #22b8cf; }
#menu-site-default .navbar-nav > li:nth-child(7) > a { background: #f783ac; }

/* hover / mở dropdown: nảy lên, sáng hơn, đổ bóng */
#menu-site-default .navbar-nav > li > a:hover,
#menu-site-default .navbar-nav > li > a:focus,
#menu-site-default .navbar-nav > li:hover > a,
#menu-site-default .navbar-nav > li.open > a {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, .22);
    filter: brightness(1.08) saturate(1.12);
    color: #fff;
}
/* mục đang xem */
#menu-site-default .navbar-nav > li.active > a {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, .25);
}
#menu-site-default .navbar-nav > li > a .caret {
    border-top-color: rgba(255, 255, 255, .95);
    margin-left: 5px;
}

/* ---------- menu sổ xuống ---------- */
@media (min-width: 992px) {
    #menu-site-default .navbar-nav > li:hover > .dropdown-menu,
    #menu-site-default .navbar-nav > li:focus-within > .dropdown-menu {
        display: block;
    }
}
#menu-site-default .dropdown-menu {
    border: none;
    border-radius: 16px;
    padding: 8px;
    margin-top: 4px;
    min-width: 214px;
    background-color: #fff;
    box-shadow: 0 14px 34px rgba(20, 40, 80, .17);
    animation: navDropIn .18s ease-out;
}
/* cầu nối vô hình lấp khoảng trống giữa nút menu và bảng sổ xuống,
   để rê chuột không bị "ngắt quãng" làm menu đóng lại */
#menu-site-default .navbar-nav > li > .dropdown-menu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -14px;
    height: 16px;
}
@keyframes navDropIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
#menu-site-default .dropdown-menu > li { border: none; }
#menu-site-default .dropdown-menu > li > a,
#menu-site-default .dropdown-menu > li > a:link {
    font-family: butlong, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    color: #2f5673;
    padding: 9px 14px;
    border-radius: 10px;
    transition: background .15s ease, color .15s ease, padding-left .15s ease;
}
#menu-site-default .dropdown-menu > li > a:hover,
#menu-site-default .dropdown-menu > li > a:focus,
#menu-site-default .dropdown-menu > li.active > a {
    /* !important để ghi đè rule !important của bootstrap.non-responsive.css (dòng ~5307) */
    background-color: #4dabf7 !important;
    color: #fff !important;
    padding-left: 20px;
}
/* submenu cấp 2 */
#menu-site-default .dropdown-submenu > .dropdown-menu {
    border-radius: 14px;
    margin-top: -4px;
}
#menu-site-default .dropdown-submenu > a:after { border-left-color: #9db4c6; }
#menu-site-default .dropdown-submenu:hover > a:after { border-left-color: #1b6ec2; }

/* ---------- ô tìm kiếm: nhỏ gọn, thanh mảnh ---------- */
.headerSearch {
    max-width: 210px;
    margin-left: auto;
    margin-top: 7px;
}
.headerSearch .input-group {
    border: 1px solid #e4e4e4;
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
}
.headerSearch .input-group .form-control {
    height: 30px;
    font-size: 13px;
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 4px 14px;
}
.headerSearch .input-group-btn .btn {
    height: 30px;
    padding: 0 12px;
    background: transparent;
    border: none;
    color: #9aa4ad;
    box-shadow: none;
    transition: color .15s ease;
}
.headerSearch .input-group-btn .btn:hover { color: #ff6b6b; }
.headerSearch .btn .fa-search { font-size: 13px; }
@media(max-width: 767px){
	.topadv strong.mota {
	    font-size: 17px;
	    line-height: 25px;
   }
}


/*blog news*/
.section_blog {
  margin-bottom:50px;
  margin: 0 5px 50px 5px
}

.section_blog .block-title {
  text-align:center;
  margin-bottom:30px;
}

.section_blog .block-title h2 {
  font-size:40px;
  font-weight:700;
}

.section_blog .block-title p {
  position:relative;
  display:inline-block;
  color:#ff5e14;
  font-size:16px;
  text-transform:uppercase;
  letter-spacing:0.2em;
  margin-bottom:5px;
}

.section_blog .block-content .item-blog {
  box-shadow:0 0 20px 0 rgba(0,0,0,0.09);
  border-radius:10px;
  overflow:hidden;
}

.section_blog .block-content .item-blog .block-thumb .thumb {
  padding-bottom:56%;
  display:block;
  height:0;
  position:relative;
}

.section_blog .block-content .item-blog .block-thumb .thumb img {
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  max-width:100%;
  max-height:100%;
  width:auto !important;
  height:auto !important;
  position:absolute;
}

.section_blog .block-content .item-blog .block-info {
  padding:15px;
}

.section_blog .block-content .item-blog .block-info h3 {
  font-size:16px;
  height:45px;
  overflow:hidden;
  margin-bottom:10px;
}

.section_blog .block-content .item-blog .block-info .post {
  margin-bottom:5px;
  color:#acacac;
}

.section_blog .block-content .item-blog .block-info .post .time-post {
  display:inline-block;
}

.section_blog .block-content .item-blog .block-info p.justify {
  margin:0;
}



.section_blog .block-content .margin-am .swiper-container {
  padding:1rem !important;
}

.section_blog .block-content .swiper-pagination {
  position:initial;
  margin-top:10px;
}

.section_blog .block-content .swiper-pagination .swiper-pagination-bullet {
  background:#ff5e14;
}

/* ============================================================
   BLOCK "Văn bản mới" + "Tin xem nhiều" — làm mới, hiện đại
   (thẻ bo góc, viền nhấn, hiệu ứng hover nảy nhẹ)
   ============================================================ */

/* -------- Văn bản mới -------- */
.bgblock .block-law .item {
    position: relative;
    background: #fff;
    border: 1px solid #eef0f3;
    border-left: 3px solid #4dabf7;
    border-radius: 10px;
    padding: 10px 12px;
    margin: 0 2px 9px;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.bgblock .block-law .item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(20, 40, 80, .12);
    border-left-color: #f76707;
}
.bgblock .block-law .law-code {
    margin: 0 0 6px;
    border: none;
}
.bgblock .block-law .law-code a {
    display: inline-block;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .3px;
    line-height: 1.6;
    color: #1b6ec2;
    background: #e7f1fb;
    border-radius: 20px;
    text-decoration: none;
    transition: background .16s ease, color .16s ease;
}
.bgblock .block-law .item:hover .law-code a {
    background: #1b6ec2;
    color: #fff;
}
.bgblock .block-law .law-title {
    margin: 0 0 7px;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 500;
    color: #2b3a4a !important;
    transition: color .16s ease;
}
.bgblock .block-law .item:hover .law-title {
    color: #1b6ec2 !important;
}
.bgblock .block-law .law-view {
    display: inline-block;
    margin: 0 12px 0 0;
    font-size: 11px;
    font-style: normal;
    color: #8a97a5 !important;
}

/* -------- Tin xem nhiều -------- */
.block_tophits {
    counter-reset: hit;
    padding: 8px 2px 0;
}
.block_tophits > li {
    position: relative;
    padding: 9px;
    margin-bottom: 8px;
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 10px;
    list-style: none;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
/* clearfix để bó gọn ảnh thu nhỏ (float) mà không cần overflow:hidden */
.block_tophits > li::after {
    content: "";
    display: block;
    clear: both;
}
.block_tophits > li:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(20, 40, 80, .12);
    background: #f8fbff;
}
.block_tophits > li > a:first-child {
    float: left;
    width: 62px;
    height: 52px;
    margin: 0 10px 0 0;
    display: block;
    overflow: hidden;
    border-radius: 8px;
}
.block_tophits > li > a:first-child img {
    float: none !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 8px;
    object-fit: cover;
    transition: transform .28s ease;
}
.block_tophits > li:hover > a:first-child img {
    transform: scale(1.08);
}
.block_tophits > li .show {
    font-size: 12.5px;
    line-height: 1.4;
    font-weight: 500;
    color: #2b3a4a;
    /* !important để ghi đè class .show của bootstrap (display:block!important) */
    display: -webkit-box !important;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .16s ease;
}
.block_tophits > li:hover .show {
    color: #1b6ec2;
}
/* số thứ tự "TOP" cho 3 tin đầu */
.block_tophits > li:nth-child(-n+3)::before {
    counter-increment: hit;
    content: counter(hit);
    position: absolute;
    top: 5px;
    left: 5px;
    z-index: 2;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: #f76707;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .35);
}

/* -------- Tooltip xem nhanh tin (block_news_tooltip) -------- */
.tooltip.in {
    opacity: 1;
}
.tooltip-inner {
    max-width: 260px;
    padding: 10px 12px;
    text-align: left;
    font-size: 12.5px;
    line-height: 1.5;
    color: #2b3a4a;
    background: #fff;
    border: 1px solid #e6eaf0;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(20, 40, 80, .2);
}
.tooltip-inner img {
    float: none !important;
    display: block;
    width: 100% !important;
    height: auto !important;
    max-height: 140px;
    margin: 0 0 8px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 8px;
    object-fit: cover;
}
.tooltip-inner p {
    margin: 0;
}
.tooltip.top .tooltip-arrow {
    border-top-color: #fff;
}
.tooltip.bottom .tooltip-arrow {
    border-bottom-color: #fff;
}
.tooltip.left .tooltip-arrow {
    border-left-color: #fff;
}
.tooltip.right .tooltip-arrow {
    border-right-color: #fff;
}


/* ============================================================
   CHUYÊN MỤC TIN TỨC trang chủ (viewcat_main_right) — bố cục
   thẻ hiện đại: 1 tin nổi bật + danh sách tin bên cạnh
   ============================================================ */
.nc-sec {
    margin-bottom: 26px;
}
.nc-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 14px;
    padding-bottom: 10px;
    margin-bottom: 14px;
    border-bottom: 2px solid #f76707;
    border-image: linear-gradient(90deg, #f76707, #ffce9e 45%, rgba(232, 235, 239, .6) 85%) 1;
}
.nc-title {
    margin: 0;
    padding-left: 48px;
    position: relative;
    font-family: "Baloo 2", "Comic Sans MS", Cambria, Georgia, "Times New Roman", serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: .5px;
    text-transform: uppercase;
}
/* con vật ngộ nghĩnh thay cho gạch màu — mỗi chuyên mục một con */
.nc-title::before {
    content: "🐻";
    position: absolute;
    left: -4px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
    line-height: 1;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .18));
}
.nc-sec:nth-of-type(3n+2) .nc-title::before { content: "🐰"; }
.nc-sec:nth-of-type(3n)   .nc-title::before { content: "🦊"; }
.nc-title a {
    color: #16436b;
    transition: color .15s ease;
}
.nc-title a:hover { color: #1b6ec2; }
.nc-sub {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.nc-sub a {
    font-size: 12px;
    line-height: 1.7;
    padding: 2px 10px;
    border-radius: 20px;
    background: #eef4fb;
    color: #2f5673;
    transition: background .15s ease, color .15s ease;
}
.nc-sub a:hover { background: #1b6ec2; color: #fff; }
.nc-all {
    margin-left: auto;
    font-size: 12.5px;
    font-weight: 600;
    color: #1b6ec2;
    white-space: nowrap;
}
.nc-all::after { content: " \203A"; }
.nc-all:hover { color: #f76707; }

.nc-body {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* ---- tin nổi bật ---- */
.nc-feat {
    flex: 1 1 340px;
    min-width: 0;
    display: flex;
    gap: 12px;
    padding: 10px;
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 12px;
    transition: transform .16s ease, box-shadow .16s ease;
}
.nc-feat:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(20, 40, 80, .12);
}
.nc-feat-thumb {
    flex: 0 0 42%;
    max-width: 42%;
    align-self: flex-start;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 10px;
}
.nc-feat-thumb img {
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    object-fit: cover;
    transition: transform .3s ease;
}
.nc-feat:hover .nc-feat-thumb img { transform: scale(1.06); }
.nc-feat-main {
    flex: 1;
    min-width: 0;
}
.nc-feat-title {
    margin: 0 0 6px;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 700;
}
.nc-feat-title a {
    color: #1b3a5c;
    transition: color .15s ease;
}
.nc-feat:hover .nc-feat-title a { color: #1b6ec2; }
.nc-feat-desc {
    font-size: 13px;
    line-height: 1.55;
    color: #6b7785;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nc-feat-desc p { margin: 0; }
.nc-feat-more {
    display: inline-block;
    margin-top: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: #f76707;
}
.nc-feat-more .fa { margin-left: 3px; }

/* ---- danh sách tin bên cạnh ---- */
.nc-list {
    flex: 1 1 220px;
    min-width: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nc-list li {
    position: relative;
    padding: 9px 0 9px 16px;
    border-bottom: 1px dashed #e3e7ec;
}
.nc-list li:first-child { padding-top: 0; }
.nc-list li:last-child { border-bottom: 0; }
.nc-list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 15px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f76707;
    transition: background .15s ease;
}
.nc-list li:first-child::before { top: 6px; }
.nc-list a.show {
    /* !important: đè display:block!important của class .show (bootstrap) */
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    color: #2b3a4a;
    transition: color .15s ease, transform .15s ease;
}
.nc-list li:hover::before { background: #1b6ec2; }
.nc-list li:hover a.show {
    color: #1b6ec2;
    transform: translateX(3px);
}

@media (max-width: 991px) {
    .nc-feat, .nc-list { flex-basis: 100%; }
}


/* ============================================================
   BLOCK THỐNG KÊ — thiết kế lại: thẻ trắng bo góc, icon tròn
   nhiều màu (hợp mầm non), số tổng nổi bật
   ============================================================ */
.blocksite:has(.stat-box) {
    width: 100%;
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(20, 40, 80, .07);
    /* clip thay cho hidden + chừa lề để con vật được chờm ra ngoài mà nội dung vẫn bo góc */
    overflow: clip;
    overflow-clip-margin: 30px;
}
.blocksite:has(.stat-box) .block_header_kiencon,
.blocksite:has(.stat-box) .block_bottom {
    display: none;
}
.blocksite:has(.stat-box) .block_content {
    background: none;
    padding: 14px;
}
.blocksite:has(.stat-box) .block_content h3 {
    position: relative;
    margin: 0 0 10px;
    padding: 0 0 8px 40px;
    font-family: "Baloo 2", "Comic Sans MS", Cambria, Georgia, "Times New Roman", serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    text-align: left;
    color: #16436b;
    border-bottom: 2px solid #4dabf7;
    border-image: linear-gradient(90deg, #4dabf7, #cfe8fb 55%, rgba(230, 235, 240, .35) 90%) 1;
}
.blocksite:has(.stat-box) .block_content h3::before {
    content: "🐘";
    position: absolute;
    left: -8px;
    top: 42%;
    transform: translateY(-50%);
    font-size: 27px;
    line-height: 1;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .18));
}

.stat-list {
    margin: 0;
    padding: 0;
}
.stat-list > li {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 2px;
    border-bottom: 1px dashed #e7ebf0;
    font-size: 13px;
    line-height: 1.25;
}
.stat-list > li:last-child { border-bottom: 0; }
.stat-ico {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 13px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .14);
}
.stat-ico em { font-style: normal; }
.stat-list > li:nth-child(6n+1) .stat-ico { background: linear-gradient(135deg, #74c0fc, #4dabf7); }
.stat-list > li:nth-child(6n+2) .stat-ico { background: linear-gradient(135deg, #faa2c1, #f06595); }
.stat-list > li:nth-child(6n+3) .stat-ico { background: linear-gradient(135deg, #d0bfff, #9775fa); }
.stat-list > li:nth-child(6n+4) .stat-ico { background: linear-gradient(135deg, #66d9e8, #22b8cf); }
.stat-list > li:nth-child(6n+5) .stat-ico { background: linear-gradient(135deg, #8ce99a, #40c057); }
.stat-list > li:nth-child(6n)   .stat-ico { background: linear-gradient(135deg, #ffc078, #ff922b); }
.stat-label {
    flex: 1;
    min-width: 0;
    color: #4a5763;
}
.stat-num {
    font-weight: 700;
    font-size: 13.5px;
    color: #16436b;
    white-space: nowrap;
}

.stat-total {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, #1b6ec2, #4dabf7);
    box-shadow: 0 8px 18px rgba(27, 110, 194, .28);
}
.stat-total-label {
    display: block;
    margin-bottom: 3px;
    font-size: 11.5px;
    letter-spacing: .4px;
    text-transform: uppercase;
    opacity: .95;
}
.stat-total-num {
    display: block;
    font-size: 23px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: .5px;
}


/* ============================================================
   BLOCK QUẢN LÝ THÀNH VIÊN — thiết kế lại (thẻ, avatar tròn,
   danh sách link có icon, nút đăng xuất bo tròn)
   ============================================================ */
.bgblock:has(.mb-user),
.bgblock:has(.form-detail) {
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(20, 40, 80, .07);
    overflow: clip;
    overflow-clip-margin: 30px;
    padding-bottom: 4px;
}
.bgblock:has(.mb-user) .header-block1,
.bgblock:has(.form-detail) .header-block1 {
    border: 0;
    padding: 0;
}
.bgblock:has(.mb-user) .header-block1 h3,
.bgblock:has(.form-detail) .header-block1 h3,
.bgblock:has(.block-law) .header-block1 h3 {
    position: relative;
    margin: 0;
    padding: 12px 14px 10px 54px;
    font-family: "Baloo 2", "Comic Sans MS", Cambria, Georgia, "Times New Roman", serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    text-align: left;
    color: #16436b;
    border: 0;
    border-bottom: 2px solid #4dabf7;
    border-image: linear-gradient(90deg, #4dabf7, #cfe8fb 55%, rgba(230, 235, 240, .35) 90%) 1;
}
.bgblock:has(.mb-user) .header-block1 h3::before,
.bgblock:has(.form-detail) .header-block1 h3::before,
.bgblock:has(.block-law) .header-block1 h3::before {
    content: "🐨";
    position: absolute;
    left: 7px;
    top: 58%;
    transform: translateY(-50%);
    font-size: 27px;
    line-height: 1;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .18));
}
.bgblock:has(.block-law) .header-block1 h3::before { content: "🦉"; }
.bgblock:has(.mb-user) .meal_list,
.bgblock:has(.mb-user) .meal,
.bgblock:has(.form-detail) .meal_list,
.bgblock:has(.form-detail) .meal { background: none; }

/* ---- Quản lý thành viên: trạng thái CHƯA đăng nhập (form login) ---- */
.bgblock:has(.form-detail) .meal { padding: 14px; }
.bgblock:has(.form-detail) .nv-info {
    margin: 0 0 12px;
    font-size: 12.5px;
    line-height: 1.5;
    color: #6b7785;
    text-align: center;
}
.bgblock:has(.form-detail) .form-group { margin-bottom: 10px; }
.bgblock:has(.form-detail) .input-group {
    border: 1px solid #e2e7ee;
    border-radius: 10px;
    overflow: hidden;
    background: #f8fafc;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.bgblock:has(.form-detail) .input-group:focus-within {
    border-color: #4dabf7;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(77, 171, 247, .16);
}
.bgblock:has(.form-detail) .input-group-addon {
    border: 0;
    background: transparent;
    color: #7c93a8;
    padding: 0 10px;
}
.bgblock:has(.form-detail) .input-group .form-control {
    height: 38px;
    border: 0;
    box-shadow: none;
    background: transparent;
    font-size: 13px;
}
.bgblock:has(.form-detail) .text-center.margin-bottom-lg {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}
.bgblock:has(.form-detail) .btn-default,
.bgblock:has(.form-detail) .btn-primary {
    flex: 1;
    height: 40px;
    border: 0;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
}
.bgblock:has(.form-detail) .btn-default {
    background: #eef2f6;
    color: #5a6b7a;
}
.bgblock:has(.form-detail) .btn-default:hover { background: #e2e8ee; }
.bgblock:has(.form-detail) .btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #1b6ec2, #4dabf7);
    box-shadow: 0 6px 14px rgba(27, 110, 194, .28);
}
.bgblock:has(.form-detail) .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(27, 110, 194, .38);
}
.bgblock:has(.form-detail) .form-group .text-right a {
    font-size: 12.5px;
    font-weight: 600;
    color: #1b6ec2;
}
.bgblock:has(.form-detail) .form-group .text-right a:hover { color: #f76707; }

.mb-user { padding: 12px 14px 6px; }
.mb-user .userBlock { width: 100%; }

/* --- hồ sơ --- */
.mb-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 10px;
    border-bottom: 1px dashed #e7ebf0;
}
.mb-avatar {
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    display: block;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #e7f1fb;
    box-shadow: 0 3px 8px rgba(20, 40, 80, .12);
}
.mb-avatar img {
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    object-fit: cover;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
}
.mb-ident { min-width: 0; }
.mb-role {
    display: inline-block;
    font-size: 11px;
    line-height: 1.6;
    padding: 1px 9px;
    border-radius: 20px;
    font-weight: 700;
    color: #7a3d00;
    background: linear-gradient(135deg, #ffd8a8, #ffa94d);
}
.mb-name {
    display: block;
    margin-top: 4px;
    font-size: 15px;
    font-weight: 700;
    color: #16436b;
    word-break: break-word;
}

/* --- danh sách link --- */
.mb-links,
.mb-admin {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.mb-link {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-radius: 9px;
    font-size: 13px;
    color: #3a4653;
    transition: background .14s ease, color .14s ease, padding-left .14s ease;
}
.mb-link > em.fa {
    flex: 0 0 20px;
    text-align: center;
    font-size: 13px;
    color: #1b6ec2;
}
.mb-link > span { min-width: 0; }
.mb-link:hover {
    background: #eef6ff;
    color: #1b6ec2;
    padding-left: 14px;
    text-decoration: none;
}
.mb-link.active {
    background: #e7f1fb;
    color: #1b6ec2;
    font-weight: 600;
}

/* --- khu vực admin --- */
.mb-admin {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e7ebf0;
}
.mb-admin-title {
    padding: 0 10px 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #f76707;
}
.mb-admin-title em { margin-right: 5px; }
.mb-admin .mb-link > em.fa { color: #f76707; }
.mb-admin .mb-link:hover {
    background: #fff2e8;
    color: #e8590c;
}

/* --- chân block --- */
.mb-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed #e7ebf0;
}
.mb-login {
    font-size: 11px;
    color: #8a97a5;
    line-height: 1.3;
}
.mb-login em { margin-right: 3px; }
.mb-logout {
    flex: 0 0 auto;
    border: 0;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    white-space: nowrap;
    background: linear-gradient(135deg, #ff8787, #f03e3e);
    box-shadow: 0 4px 10px rgba(240, 62, 62, .28);
    transition: transform .14s ease, box-shadow .14s ease;
}
.mb-logout:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(240, 62, 62, .38);
}
.mb-logout em { margin-right: 4px; }


/* ============================================================
   Đồng bộ phong cách: BLOCK TIN XEM NHIỀU + TÌM KIẾM TÀI LIỆU
   (thẻ trắng bo góc, header IN HOA + gạch nhấn xanh)
   ============================================================ */

/* ---- Tin xem nhiều: bọc thẻ, bỏ ảnh cỏ/sao ---- */
div:has(> .block_header_star) {
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(20, 40, 80, .07);
    overflow: clip;
    overflow-clip-margin: 30px;
    padding-bottom: 6px;
}
.block_tophits {
    padding: 10px 12px 2px;
}

/* ---- Tìm kiếm tài liệu ---- */
.blocksite:has(.block_header_vetcon) {
    width: 100%;
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(20, 40, 80, .07);
    overflow: clip;
    overflow-clip-margin: 30px;
}
.blocksite:has(.block_header_vetcon) .block_header_vetcon,
.blocksite:has(.block_header_vetcon) .block_bottom {
    display: none;
}
.blocksite:has(.block_header_vetcon) .block_content {
    background: none;
    padding: 14px;
}
.blocksite:has(.block_header_vetcon) .block_content h3 {
    position: relative;
    margin: 0 0 12px;
    padding: 0 0 8px 46px;
    font-family: "Baloo 2", "Comic Sans MS", Cambria, Georgia, "Times New Roman", serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    text-align: left;
    color: #16436b;
    border: 0;
    border-bottom: 2px solid #4dabf7;
    border-image: linear-gradient(90deg, #4dabf7, #cfe8fb 55%, rgba(230, 235, 240, .35) 90%) 1;
}
.blocksite:has(.block_header_vetcon) .block_content h3::before {
    content: "🐢";
    position: absolute;
    left: -3px;
    top: 42%;
    transform: translateY(-50%);
    font-size: 27px;
    line-height: 1;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .18));
}
.blocksite:has(.block_header_vetcon) form p { margin: 0; }
.blocksite:has(.block_header_vetcon) .form-group { margin-bottom: 10px; }
.blocksite:has(.block_header_vetcon) .form-control {
    height: 38px;
    padding: 6px 12px;
    border: 1px solid #e2e7ee;
    border-radius: 10px;
    box-shadow: none;
    font-size: 13px;
    background: #f8fafc;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.blocksite:has(.block_header_vetcon) .form-control:focus {
    border-color: #4dabf7;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(77, 171, 247, .16);
}
.blocksite:has(.block_header_vetcon) .btn-primary {
    display: block;
    width: 100%;
    height: 40px;
    border: 0;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #1b6ec2, #4dabf7);
    box-shadow: 0 6px 14px rgba(27, 110, 194, .28);
    transition: transform .14s ease, box-shadow .14s ease;
}
.blocksite:has(.block_header_vetcon) .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(27, 110, 194, .38);
}


/* ============================================================
   FOOTER — dải chân trang full-width, tách hẳn khỏi body,
   phong cách mầm non (giữ ảnh minh hoạ bg_footer.jpg)
   ============================================================ */
.wraper > .row:has(> p) {
    position: relative;
    /* kéo tràn hết chiều ngang màn hình */
    margin: 40px calc(50% - 50vw) 0;
    padding: 116px 20px 26px;
    text-align: center;
    color: #fff;
    /* viền cầu vồng ngăn cách hẳn với body */
    border-top: 5px solid #ffa94d;
    border-image: linear-gradient(90deg, #ff6b6b, #ffa94d, #ffd43b, #51cf66, #4dabf7, #cc5de8) 1;
    background:
        linear-gradient(to bottom,
            rgba(22, 55, 92, 0) 0%,
            rgba(22, 55, 92, .30) 26%,
            rgba(19, 47, 80, .90) 62%,
            #132f50 100%),
        url(../images/bg_footer.jpg) top center / 1120px auto no-repeat,
        #132f50;
}
.wraper > .row:has(> p) > p {
    margin: 0 0 7px !important;
    font-size: 13.5px !important;
    line-height: 1.6;
    color: #e9f1fb !important;
}
.wraper > .row:has(> p) > p span,
.wraper > .row:has(> p) > p strong {
    color: inherit !important;
    font-weight: 600;
}
.wraper > .row:has(> p) > p:first-child {
    margin-bottom: 14px !important;
}
.wraper > .row:has(> p) > p:first-child strong {
    font-family: Cambria, Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #fff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .45);
}
/* icon trước địa chỉ / điện thoại / email */
.wraper > .row:has(> p) > p:nth-child(2) strong::before { content: "\f041"; }
.wraper > .row:has(> p) > p:nth-child(3) strong::before { content: "\f095"; }
.wraper > .row:has(> p) > p:nth-child(4) strong::before { content: "\f0e0"; }
.wraper > .row:has(> p) > p:nth-child(n+2) strong::before {
    font-family: FontAwesome;
    margin-right: 8px;
    color: #ffd8a8;
}

/* --- thanh bản quyền --- */
.main:has(> .footer) {
    margin: 0 calc(50% - 50vw);
    background: #0f2843;
}
.main:has(> .footer) > .footer {
    background: rgba(0, 0, 0, .16) !important;
    border-top: 1px solid rgba(255, 255, 255, .10);
    padding: 13px 20px !important;
    margin: 0 !important;
}
.main:has(> .footer) .text-center,
.main:has(> .footer) .text-center span {
    color: rgba(255, 255, 255, .78) !important;
    font-size: 12px;
}
.main:has(> .footer) .text-center a {
    color: #ffd8a8 !important;
}
.main:has(> .footer) .text-center a:hover { color: #fff !important; }


/* Chặn thanh cuộn ngang thừa ~7px (do .mobile-menu-wrap fixed đẩy ra ngoài) */
html, body {
    overflow-x: clip;
}
