@charset "utf-8";
/* ==========================================================================
   Giao diện Logistics Việt Nam — tông cam #fe5004 / xanh #006ba4
   Re-skin cho CMS Binna (giữ nguyên các class plugin vks-*)
   ========================================================================== */
:root {
    --lg-orange: #fe5004;
    --lg-orange-dark: #e04600;
    --lg-blue: #006ba4;
    --lg-blue-dark: #005081;
    --lg-gray: #f3f3f3;
    --lg-text: #333333;
    --lg-muted: #666666;
    --lg-border: #e2e2e2;
    --font-body: Arial, Helvetica, sans-serif;

    /* Ánh xạ biến cũ của theme sang tông Logistics để plugin tự đổi màu */
    --vks-primary: #006ba4;
    --vks-primary-dark: #005081;
    --vks-secondary: #fe5004;
    --vks-accent: #333333;
    --color-1: #333333;
    --color-light: #e2e2e2;
    --color-gray: #ebe7e7;
    --color-white: #fff;
    --transition-smooth: all 0.3s ease;
}

.line-clamp{
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}
.lclamp-1{-webkit-line-clamp: 1; }
.lclamp-2{-webkit-line-clamp: 2; }
.lclamp-3{-webkit-line-clamp: 3; }
.lclamp-4{-webkit-line-clamp: 4; }

/* ---------- Base ---------- */
body {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--lg-text);
    background-color: #fff;
}
h1, h2, h3, h4, h5, h6, .heading-font { font-family: var(--font-body); }
img { max-width: 100%; }
a {
    color: var(--lg-text);
    text-decoration: none;
    transition: var(--transition-smooth);
}
a:hover { color: var(--lg-orange); text-decoration: none; }
.link1:hover{ color: var(--lg-orange) !important; }
.text-justify { text-align: justify; }

/* ================= Header ================= */
.lg-header {
    background: #fff;
}
.lg-header .lg-logo { max-height: 92px; width: auto; }
.lg-header .banner{background: url(../images/banner.jpg) no-repeat center;}

/* ================= Main nav (cam) ================= */
.lg-nav { background-color: var(--lg-orange); position: relative; height: 44px;}
.lg-nav-home {
    display: flex;
    align-items: center;
    padding: 10px;
    flex: 0 0 auto;

}
.lg-nav-home img { width: 24px; height: 24px; }
.lg-nav-toggle { display: none; }

.lg-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    overflow: visible; /* khong cat dropdown cap 2/3 (position:absolute) khi hover */
}
.lg-menu-list li { position: relative; overflow-wrap: anywhere;}
.lg-menu-list > li > a {
    display: flex;
    align-items: center;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 14px;
    white-space: nowrap;
    position: relative;
}
.lg-menu-list > li > a::before {
    content: "|";
    color: rgba(255,255,255,.55);
    position: absolute;
    left: -2px;
    top: 12px;
}
.lg-menu-list > li > a:hover,
.lg-menu-list > li > a.active { color: #ffe9df; }

.lg-menu-list .dropdown-icon {
    font-size: 0.7rem;
    margin-left: 6px;
    transition: transform 0.2s;
}
.idrop, .sdrop { display: none; }
.lg-menu-list .has-dropdown.pmenu > a .idrop,
.lg-menu-list .has-dropdown.submenu > a .sdrop { display: inline-block; }

/* Dropdown cấp 2 */
.lg-menu-list li > ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    border: 1px solid #e5e5e5;
    border-top: 2px solid var(--lg-orange);
    z-index: 1000;
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 0;
}
.lg-menu-list li:hover > ul { display: flex; }
.lg-menu-list li > ul li { width: 100%; border-bottom: 1px solid #eee; }
.lg-menu-list li > ul li:last-child { border-bottom: 0; }
.lg-menu-list li > ul li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--lg-text);
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 600;
    background: #fff;
}
.lg-menu-list li > ul li a:hover,
.lg-menu-list li > ul li a.active { background: var(--lg-orange); color: #fff; }
.lg-menu-list li.has-dropdown:hover > a > .dropdown-icon { transform: rotate(180deg); }
/* Cấp 3: flyout bên phải */
.lg-menu-list li > ul li > ul { top: 0; left: 100%; border-top: 2px solid var(--lg-orange); }
.lg-menu-list li > ul li a .dropdown-icon { margin-left: auto; transform: rotate(-90deg); }

/* ================= Utility bar ================= */
.lg-utility { border-bottom: 1px solid var(--lg-border); padding: 10px 0; }
.lg-date { color: var(--lg-muted); font-weight: 700; }
.lg-search .form-control { border-radius: 0; border-color: #cfcfcf; border-right:none ;}
.lg-search .form-control:focus{box-shadow: none;}
.lg-search .btn {
    background-color: #fff;
    color: var(--lg-orange);
    border-radius: 0;
    border: 1px solid #cfcfcf;
    border-left:none ;
}
.lg-lang img { width: 34px; height: 22px; border: 1px solid #ddd; margin-left: 4px; }

/* Breadcrumb */
.v-nav { border-bottom: 1px solid var(--lg-border); display: none;}
.v-nav a { color: var(--lg-blue); }

/* ================= Tiêu đề box (xanh) ================= */
.vks-title {
    background-color: var(--lg-blue);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .3px;
    padding: 8px 14px;
    margin-bottom: 14px;
    border: 0;
    text-align: center;
}
.vks-title-tight { margin: -14px -14px 14px -14px; }

/* ================= Cards / feature ================= */
.vks-card {
    background: #fff;
    border: 1px solid var(--lg-border);
    border-radius: 0;
    padding: 14px;
}
.vks-feature { padding: 0; }
.vks-feature .vks-title-tight { margin: 0 0 12px 0; }
.vks-feature img { width: 100%; object-fit: cover; margin-bottom: 10px; }
.vks-feature h3 { font-size: 18px; font-weight: 700; margin: 10px 0 8px; line-height: 1.35; }
.vks-feature h3 a { color: var(--lg-text); }
.vks-feature h3 a:hover { color: var(--lg-orange); }
.vks-feature .summary { color: var(--lg-muted); font-size: 0.95rem; line-height: 1.6; font-style: italic; }
.support-cont img{width:100%;height: auto;}
/* ================= Trắc nghiệm / Khảo sát ================= */
.vks-poll, .vks-survey { height: 100%; }
.vks-poll > p strong, .vks-survey > p strong {
    color: var(--lg-orange);
    font-weight: 700;
    font-size: 15px;
    line-height: 1.45;
}
.vks-poll .form-check, .vks-survey .form-check { margin-bottom: 8px; }
.vks-poll button, .vks-survey button {
    display: block;
    margin: 12px auto 0;
    background: var(--lg-orange);
    border: 0;
    color: #fff;
    padding: 6px 26px;
    border-radius: 2px;
    font-weight: 700;
}
.vks-poll button:hover, .vks-survey button:hover { background: var(--lg-orange-dark); }

.pollresult .qapercent{width:34px;text-align:right;font-size: 0.8rem;font-weight: bold;}
.pollresult .qarsult{ width:calc(100% - 34px);}
.pollresult .qabox,.pollresult .qarsone{height:16px;}
.pollresult .qabox{background:var(--lg-gray);}
.pollresult .qarsone{background:var(--lg-orange);}

/* ================= Lưới tin bài ================= */
.vks-news-item { margin-bottom: 22px; }
.vks-news-item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.vks-news-item h4 { font-size: 14px; font-weight: 700; margin-top: 8px; line-height: 1.4; }
.vks-news-item h4 a { color: var(--lg-text); }
.vks-news-item h4 a:hover { color: var(--lg-orange); }

/* ================= Sidebar ================= */
.vks-support-item {
    display: flex;
    align-items: center;
    padding: 10px 2px;
    border-bottom: 1px dashed var(--lg-border);
}
.vks-support-item:last-child { border-bottom: 0; }
.vks-support-item i { color: var(--lg-orange); font-size: 1.5rem; margin-right: 10px; }
.vks-support-item .name { font-weight: 700; color: var(--lg-muted); }
.vks-support-item .phone a { color: var(--lg-orange); font-size: 18px; font-weight: 700; }
.vks-support p{ margin-bottom: 0; }

.vks-partner {
    display: block;
    padding: 2px;
    border: 1px solid #eee;
    margin-bottom: 8px;
    background: #fff;
    text-align: center;
}
.vks-partner img { max-width: 100%; }

.linkSelect { border-radius: 0; }

/* ================= Footer (cam) ================= */
.lg-footer {
    background-color: var(--lg-orange);
    color: #fff;
    padding: 22px 0;
    margin-top: 10px;
}
.lg-footer a { color: #fff; text-decoration: underline; }
.lg-footer h5 { font-weight: 700; font-size: 16px; margin-bottom: 10px; }
.lg-footer p, .lg-footer li { font-size: 13px; line-height: 1.7; margin-bottom: 2px; }
.lg-footer ul { list-style: none; padding: 0; margin: 0; }
.lg-footer .stat { font-size: 13px; margin-bottom: 6px; }
.lg-footer .stat i { margin-right: 6px; }
.lg-footer .stat span { font-weight: 700; }
.lg-footer-cert { background: #fff; display: inline-block; padding: 6px; border-radius: 4px; margin-top: 8px; }

/* ================= Advertise responsive ================= */
.plugmb1 .advpc{display: block;}
.plugmb1 .advmb{display: none;}
.plugmb0 .advpc{display: block;}
.plugmb0 .advmb{display: none;}

/* Hiển thị plugin theo độ phân giải:
   - plugmb1: hiện ở mọi độ phân giải
   - plugmb0: chỉ hiện khi >=768px, ẩn khi <768px */
@media (max-width: 767.98px){
    .plugmb0{ display: none !important; }
}

/* ================= Trang chi tiết tin ================= */
.lg-article{background:#fff;}
.lg-article-title{font-size:22px;font-weight:700;line-height:1.35;color:var(--lg-text);margin:6px 0 8px;}
.lg-article-date{color:var(--lg-muted);font-style:italic;font-size:13px;margin-bottom:14px;}
.lg-article-author{margin-bottom:12px;font-size:14px;}
.lg-article-sapo{font-weight:700;color:var(--lg-text);line-height:1.6;margin-bottom:16px;}
.lg-article .v-content{line-height:1.75;font-size:15px;}
.lg-article .v-content img{max-width:100%;height:auto;}
.lg-article .v-content p{margin-bottom:14px;}
.lg-article-foot{border-top:1px solid var(--lg-border);padding-top:14px;margin-top:20px;gap:10px;}
.bt-share{width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;color:#fff;padding:0;}
.lg-share-fb{background:#1877f2;border:0;}
.lg-share-tw{background:#1da1f2;border:0;}
.lg-share-fb:hover,.lg-share-tw:hover{color:#fff;opacity:.9;}

/* Tin khác / tin cũ hơn (danh sách bullet như logistics.gov.vn) */
.lg-newsother{margin-top:26px;}
.lg-newsother-heading{font-size:15px;font-weight:700;color:var(--lg-blue);text-transform:uppercase;border-bottom:2px solid var(--lg-blue);padding-bottom:6px;margin-bottom:12px;}
.lg-newsother-list{list-style:disc;padding-left:20px;margin:0;}
.lg-newsother-list li{padding:5px 0;line-height:1.5;}
.lg-newsother-link{color:var(--lg-text);font-weight:600;}
.lg-newsother-link:hover{color:var(--lg-orange);}
.lg-newsother-date{color:var(--lg-muted);font-style:italic;font-size:12px;margin-left:4px;}
@media (max-width:575.98px){
    .lg-article-title{font-size:19px;}
}

/* ================= Menu mobile ================= */
#menumb {
    width:100%;
    margin:auto;
    display:none;
    overflow:hidden;
    position:absolute;
    top:0;left:0;
    z-index:109;
    padding:0;
    border-top: 1px solid var(--color-gray);
}
.menumb{
    width: 100%;
    height: 100%;
    overflow: auto;
    position:relative;
    background-color:var(--color-white);
    border:1px solid #fff;
}
.mobi-nav { display:block; font-size:16px;border:1px solid var(--color-gray); }
.mobi-nav ul{list-style:none;padding:0;margin:0;}
.nav-list { text-align:left; }
.nav-item { zoom:1; position:relative; }
.nav-item a {
    display:block;
    color:var(--color-1);
    padding:5px 20px 5px 10px;
    border-bottom:1px solid var(--color-gray);
    line-height:30px;
    text-decoration:none;
}
.nav-item:last-child a{border-bottom:none;}
.nav-item .nav-submenu-item:last-child a{border-bottom:1px solid var(--color-gray);}
.nav-item:hover .nav-submenu { display:block; width:100%; }
.nav-submenu { display:none; background-color:var(--color-white); }
.nav-submenu-item a {
    border-bottom:1px solid var(--color-gray);
    display:block;
    padding:8px 15px 6px 20px !important;
    text-decoration:none;
}
.nav-submenu-item1 a{padding:8px 15px 6px 30px !important;}
.nav-click {
    position:absolute; top:0; right:0; display:block;
    height:40px; width:38px; cursor:pointer;
}
.nav-click i {
    display:flex; height:38px; width:36px;
    background-size:20px;
    justify-content: center; align-items: center;
    color:var(--color-1); font-size:34px;
}
.nav-rotate { transform:rotate(180deg); }

.page-link.page{color:var(--lg-blue)!important; }
.page-link.active.page{background-color:var(--lg-orange)!important;border-color:var(--lg-orange)!important;color:#fff !important; }
.page-link.active:hover{color:#fff;}
.pagination .NumOfPage{align-self:center;margin-right:12px;color:var(--lg-muted);font-size:13px;font-weight:700;}

/* ================= Modul tin tức (danh sách dạng hàng) ================= */
.lg-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
.lg-newslist{padding-top:4px;}
.lg-newsitem{
    display:flex;
    gap:16px;
    padding:16px 2px;
    border-bottom:1px dashed var(--lg-border);
}
.lg-newsitem:last-child{border-bottom:0;}
.lg-newsitem-thumb{flex:0 0 260px;display:block;padding:2px;border: 1px solid #dadada;}
.lg-newsitem-thumb img{width:260px;height:145px;object-fit:cover;}
.lg-newsitem-body{flex:1 1 auto;min-width:0;}
.lg-newsitem-title{font-size:16px;font-weight:700;line-height:1.4;margin:0 0 6px;}
.lg-newsitem-title a{color:var(--lg-text);}
.lg-newsitem-title a:hover{color:var(--lg-orange);}
.lg-newsitem-date{color:var(--lg-muted);font-style:italic;font-size:12px;margin-bottom:8px;}
.lg-newsitem-sum{
    color:var(--lg-muted);
    font-size:14px;
    line-height:1.6;
    margin:0;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}
.lg-pagination{margin-top:22px;}
/* Tablet nhỏ: thu nhỏ ảnh, vẫn xếp ngang */
@media (max-width:767.98px) and (min-width:576px){
    .lg-newsitem-thumb{flex-basis:160px;}
    .lg-newsitem-thumb img{width:160px;height:100px;}
}
/* Điện thoại: xếp dọc, ảnh full-width trên cùng (như logistics.gov.vn) */
@media (max-width:575.98px){
    .lg-newsitem{flex-direction:column;gap:10px;padding:14px 0;}
    .lg-newsitem-thumb{flex:0 0 auto;width:100%;}
    .lg-newsitem-thumb img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;}
    .lg-newsitem-title{font-size:16px;margin-bottom:5px;}
    .lg-newsitem-date{margin-bottom:6px;}
    .lg-newsitem-sum{-webkit-line-clamp:3;}
    .pagination .NumOfPage{display:none;}
    .lg-pagination .page-link{padding:5px 10px;}
}

.notebox-1 { padding:1rem 1rem 0.25rem; background:rgba(0,125,196,.05); border-radius:8px; margin:1.5rem auto; overflow-wrap:break-word; line-height:1.5rem; }
.notebox-2 { padding:1rem 1rem 0.25rem; background:#def9e9; border-radius:8px; margin:1.5rem auto; overflow-wrap:break-word; line-height:1.5rem; }
.notebox-3 { margin:1.5rem auto; overflow-wrap:break-word; border-left:1px solid #000; background:#faf5f0; padding:1rem 1rem 0.25rem; line-height:1.5rem; }
.notebox-4 { margin:1.5rem auto; overflow-wrap:break-word; border-left:1px solid #000; background:#f6d388; padding:1rem 1rem 0.25rem; line-height:1.5rem; }

/* ================= Responsive ================= */
@media (max-width: 991.98px) {
    .lg-menu-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
        background: var(--lg-orange-dark);
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }
    .lg-menu-list.open { display: flex; }
    .lg-menu-list > li { width: 100%; border-bottom: 1px solid rgba(255,255,255,.15); flex: 1 1 0;}
    .lg-menu-list > li + li > a::before { display: none; }
    .lg-menu-list > li > a { padding: 10px 16px; }
    .lg-nav-toggle {
        display: inline-block;
        height: 45px;
        align-items: center;
        background: transparent;
        color: #fff;
        border: 0;
        cursor: pointer;
        padding: 0 16px;
        font-size: 1.4rem;
        position: relative;
        z-index: 10;
    }
    .lg-menu-list li > ul { position: static; width: 100%; border: 0; box-shadow: none; background: rgba(255,255,255,.08); }
    .lg-menu-list li > ul li a { color: #fff; background: transparent; }
    .lg-nav-home{display: none;}
    .lg-utility{margin-top: -47px;position: relative;border: none;}

}
@media (max-width: 767px) {
    .lg-header { text-align: center; }
    .lg-header .lg-logo { max-height: 64px; }
    .lg-date { text-align: center; }
    .lg-lang { text-align: center !important; margin-top: 6px; }
}
