/**
 * Business Pro Theme v3.0
 * Premium Corporate Theme — Vinathis CMS
 */

/* === VARIABLES === */
:root {
    --c1: #041f33;
    /* navy dark — top header bar + panel-heading top */
    --c2: #062d4a;
    /* navy medium — panel-heading bottom */
    --c3: #C8972A;
    /* vang dong — accent */
    --c4: #B8841F;
    /* vang dong dam — hover */
    --c5: #041f33;
    /* navy dark — footer */
    --tx: #202030;
    /* text */
    --tx2: #666E78;
    /* text muted */
    --bg: #FFFFFF;
    --bg2: #F5F7FA;
    --bdr: #E2E6EC;
    --r: 5px;
    --sh: 0 1px 8px rgba(4, 31, 51, 0.08);
    --sh2: 0 6px 24px rgba(4, 31, 51, 0.12);
    --tr: all 0.25s ease;
    --ff: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
    /* Gold metallic gradient */
    --gold-grad: linear-gradient(135deg, #D4A029 0%, #F0C84A 45%, #B8841F 100%);
    --gold-text: #1a0e00;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font: 14px/1.65 var(--ff);
    color: var(--tx);
    background: var(--bg);
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--c2);
    text-decoration: none;
    transition: var(--tr);
}

a:hover {
    color: var(--c3);
    text-decoration: none;
}

.wraper {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--ff);
    font-weight: 700;
    color: var(--tx);
    line-height: 1.3;
    margin: 0 0 10px;
}

h1 {
    font-size: 26px;
}

h2 {
    font-size: 22px;
}

h3 {
    font-size: 17px;
}

h4 {
    font-size: 15px;
}

/* ============================
   1. INFO BAR — Ultra compact
   ============================ */
.bp-info-bar {
    background: var(--c1);
    height: 34px;
    line-height: 34px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    z-index: 1001;
}

.bp-info-bar .wraper {
    height: 34px;
}

.bp-info-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bp-info-right {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.bp-info-item {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.bp-info-bar .fa {
    color: var(--c3);
    font-size: 11px;
    margin-right: 4px;
}

.bp-info-bar a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 12px;
}

.bp-info-bar a:hover {
    color: var(--c3);
}

.bp-info-divider {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.15);
}

/* Contact block inline */
.bp-info-bar .contactDefault,
.bp-info-bar .contactDefault .content {
    display: inline;
}

.bp-info-bar .contactList {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    gap: 14px;
}

.bp-info-bar .contactList li {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.bp-info-bar .contactList li br {
    display: none;
}

/* ============================
   SOCIAL BLOCK — always horizontal, everywhere
   ============================ */

/* Hide mobile-only toggle button */
#socialList+span.visible-xs-inline-block,
span.visible-xs-inline-block:has(+ #socialList),
.social-icons>span.visible-xs-inline-block {
    display: none !important;
}

/* Strip .panel wrapper from social block inside info bar & social-icons */
.social-icons .panel,
.social-icons .panel-default,
.bp-info-bar .panel,
.bp-info-bar .panel-default {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    border-radius: 0 !important;
}

.social-icons .panel-body,
.bp-info-bar .panel-body {
    background: none !important;
    padding: 0 !important;
    border: none !important;
}

/* Settings button: hidden by default, visible on hover */
.social-icons .panel-heading,
.bp-info-bar .panel-heading {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 9999;
    background: var(--c1) !important;
    border-radius: 0 0 var(--r) var(--r) !important;
    padding: 4px 10px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
    white-space: nowrap;
}

.social-icons:hover .panel-heading,
.bp-info-bar .panel:hover .panel-heading {
    display: block;
}

.social-icons .panel-heading a,
.bp-info-bar .panel-heading a {
    color: #fff !important;
    font-size: 12px !important;
}

.social-icons .panel-heading::before,
.bp-info-bar .panel-heading::before {
    display: none !important;
}

/* Ensure the .panel is relatively positioned for dropdown */
.social-icons .panel,
.bp-info-bar .panel {
    position: relative;
}

/* Container */
#socialList,
#socialList.content {
    display: inline-flex !important;
    align-items: center !important;
    flex-direction: row !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Hide mobile-only title */
#socialList h3 {
    display: none !important;
}

/* List: always horizontal */
ul.socialList,
#socialList ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    gap: 6px !important;
}

ul.socialList li,
#socialList li {
    display: inline-flex !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

/* Icon buttons — plain icons, no background */
ul.socialList li a,
#socialList li a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    font-size: 14px !important;
    color: rgba(255, 255, 255, 0.8) !important;
    transition: var(--tr);
    padding: 2px !important;
    text-decoration: none !important;
}

ul.socialList li a:hover,
#socialList li a:hover {
    color: var(--c3) !important;
    background: none !important;
}

/* On light backgrounds (sidebar, content, panels) — dark icons */
.panel-body ul.socialList li a,
.panel-body #socialList li a,
#body ul.socialList li a,
#body #socialList li a {
    background: none !important;
    color: var(--c1) !important;
    border: none !important;
}

.panel-body ul.socialList li a:hover,
.panel-body #socialList li a:hover,
#body ul.socialList li a:hover,
#body #socialList li a:hover {
    background: none !important;
    color: var(--c3) !important;
    border: none !important;
}

/* In top bar — keep compact */
.bp-info-right ul.socialList li a,
.bp-info-right #socialList li a {
    font-size: 13px !important;
    background: none !important;
    border: none !important;
}


/* Personal area */
.bp-info-nav {
    display: flex;
    align-items: center;
    height: 34px;
    position: relative;
}

.bp-info-bar .personalArea {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.bp-info-bar .personalArea a {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 12px;
    padding: 2px 8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--tr);
}

.bp-info-bar .personalArea a:hover {
    color: var(--c3) !important;
}

.bp-info-bar .personalArea a.button {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 3px 12px;
    color: #fff !important;
}

.bp-info-bar .personalArea a.button:hover {
    background: var(--c3);
}

.bp-info-bar .personalArea .fa {
    font-size: 13px;
    color: var(--c3);
}

/* #tip popup for login form */
#tip {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 10000;
    min-width: 320px;
    max-width: 400px;
    background: #fff;
    border-radius: 0 0 var(--r) var(--r);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    padding: 0;
    color: var(--tx) !important;
}

#tip .bg {
    padding: 15px;
    color: var(--tx) !important;
}

#tip * {
    color: var(--tx);
}

#tip h3,
#tip h4,
#tip .bg h3,
#tip .bg h4 {
    color: var(--c1) !important;
    font-size: 16px;
    margin-bottom: 12px;
}

#tip p,
#tip span,
#tip label,
#tip div {
    color: var(--tx) !important;
}

#tip a {
    color: var(--c2) !important;
}

#tip a:hover {
    color: var(--c3) !important;
}

#tip input[type="text"],
#tip input[type="password"],
#tip input[type="email"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--bdr);
    border-radius: var(--r);
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--tx) !important;
    background: #fff !important;
}

#tip .btn {
    width: 100%;
    margin-bottom: 5px;
    color: #fff !important;
}

#tip .fa {
    color: inherit !important;
}

/* ============================
   2. HEADER — Hero Banner
   ============================ */
.bp-header {
    background-color: #ffffff;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding: 0;
    position: relative;
    overflow: hidden;
    min-height: 120px;
}

/* Canvas blockchain animation — luon phu toan bo header */
.bp-header-canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: block;
}

/* Overlay gradient phia tren banner (dung ::before, khong can div rieng) */
.bp-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.45) 0%,
        rgba(0, 0, 0, 0.2) 40%,
        rgba(0, 0, 0, 0) 80%
    );
    z-index: 1;
    pointer-events: none;
}

/* Inner flex — z-index 2, tren canvas va overlay */
.bp-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    min-height: 120px;
    padding: 16px 0;
}

/* Logo khu vuc */
.bp-header .logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.bp-header .logo img {
    height: auto;
    max-height: none;
    width: auto;
    max-width: 100%;
    margin: 0;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}

.bp-header .logo h1,
.bp-header .logo .site_name {
    display: none;
}

.bp-header .logo h2,
.bp-header .logo .site_description {
    display: none;
}

/* Site name tren banner: mau trang */
.bp-brand h1 {
    font-size: 22px;
    color: #fff;
    margin: 0;
    letter-spacing: -0.3px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.bp-brand .bp-slogan,
.bp-brand .site_description {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    margin: 3px 0 0;
    display: block;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* Right-ads: khu vuc block noi dung / banner phai */
.bp-header .right-ads {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: 20px;
    overflow: visible;
}

/* ============================
   3. MENU BAR — Standalone
   ============================ */
.bp-menu-bar {
    background: linear-gradient(135deg, #C09020 0%, #E8BF3A 40%, #F0C84A 55%, #C09020 100%);
    position: relative;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(4, 31, 51, 0.2), inset 0 1px 0 rgba(255,255,255,0.25);
}

.bp-menu-bar.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    box-shadow: 0 3px 20px rgba(0, 0, 0, 0.2);
    animation: bpStickyIn 0.28s ease;
}

@keyframes bpStickyIn {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.bp-menu-inner {
    display: flex;
    align-items: center;
}

.bp-menu-main {
    flex: 1;
}

/* Override Bootstrap navbar completely */
.bp-menu-main .navbar-default {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
}

.bp-menu-main .navbar-default .navbar-nav {
    margin: 0;
}

.bp-menu-main .navbar-default .navbar-nav>li>a {
    color: #1a0e00 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    padding: 14px 16px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    transition: var(--tr);
    text-shadow: 0 1px 0 rgba(255,255,255,0.3);
}

/* Navy underline hover effect on gold menu */
.bp-menu-main .navbar-default .navbar-nav>li>a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 12px;
    right: 12px;
    height: 3px;
    background: #041f33;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
    border-radius: 2px 2px 0 0;
}

.bp-menu-main .navbar-default .navbar-nav>li>a:hover::after,
.bp-menu-main .navbar-default .navbar-nav>.active>a::after,
.bp-menu-main .navbar-default .navbar-nav>.open>a::after {
    transform: scaleX(1);
}

.bp-menu-main .navbar-default .navbar-nav>li>a:hover,
.bp-menu-main .navbar-default .navbar-nav>.active>a,
.bp-menu-main .navbar-default .navbar-nav>.active>a:hover,
.bp-menu-main .navbar-default .navbar-nav>.active>a:focus {
    color: #041f33 !important;
    background: rgba(255, 255, 255, 0.25) !important;
}

.bp-menu-main .navbar-default .navbar-nav>.open>a,
.bp-menu-main .navbar-default .navbar-nav>.open>a:hover,
.bp-menu-main .navbar-default .navbar-nav>.open>a:focus {
    background: rgba(255, 255, 255, 0.25) !important;
    color: #041f33 !important;
}

/* Dropdown */
.bp-menu-main .dropdown-menu {
    background: #fff !important;
    border: none !important;
    border-radius: 0 0 var(--r) var(--r) !important;
    box-shadow: var(--sh2) !important;
    padding: 4px 0 !important;
    margin: 0 !important;
    min-width: 220px;
}

.bp-menu-main .dropdown-menu>li>a {
    color: var(--tx) !important;
    padding: 9px 20px !important;
    font-size: 13px;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: var(--tr);
}

.bp-menu-main .dropdown-menu>li>a:hover {
    background: var(--bg2) !important;
    color: var(--c2) !important;
    border-left-color: var(--c3) !important;
}

/* Inner container reset */
.bp-menu-main .container,
.bp-menu-main .container .row,
.bp-menu-main .container .row .bg {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

/* Search in menu */
.bp-menu-search {
    flex-shrink: 0;
    margin-left: 8px;
}

.bp-menu-search .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    border-radius: 20px 0 0 20px;
    padding: 0 12px;
    height: 32px;
    width: 150px;
    font-size: 12px;
}

.bp-menu-search .form-control::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.bp-menu-search .form-control:focus {
    background: rgba(255, 255, 255, 0.14);
    border-color: var(--c3);
    box-shadow: none;
    width: 200px;
}

.bp-menu-search .btn-search {
    background: #041f33;
    border: none;
    color: #fff;
    border-radius: 0 20px 20px 0;
    height: 32px;
    width: 36px;
    padding: 0;
}

.bp-menu-search .btn-search:hover {
    background: #062d4a;
}

/* ============================
   4. PAGE BODY
   ============================ */
.bp-page-body {
    background: var(--bg);
    padding: 0 0 30px;
    min-height: 50vh;
}

.bp-breadcrumb-bar {
    background: var(--bg2);
    border-bottom: 1px solid var(--bdr);
    padding: 8px 0;
    margin: 0 -20px 20px;
    padding-left: 20px;
    padding-right: 20px;
}

.breadcrumbs {
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumbs li {
    display: inline;
}

.breadcrumbs a,
.show-subs-breadcrumbs {
    background: none;
    padding: 0;
    color: var(--tx2);
    font-size: 12.5px;
    float: none;
    position: relative;
}

.breadcrumbs a:before,
.breadcrumbs a:after,
.show-subs-breadcrumbs:after {
    display: none;
}

.breadcrumbs a:hover {
    color: var(--c3);
    background: none;
}

.current-time {
    font-size: 12px;
    color: var(--tx2);
}

/* ============================
   5. PANELS / BLOCKS
   ============================ */
.panel {
    border: 1px solid var(--bdr);
    border-radius: var(--r);
    box-shadow: var(--sh);
    margin-bottom: 20px;
    overflow: hidden;
    background: var(--bg);
    transition: var(--tr);
}

.panel:hover {
    box-shadow: var(--sh2);
}

/* GOLD METALLIC HEADINGS — vang dong anh kim */
.panel-heading,
.panel-default>.panel-heading {
    background: linear-gradient(135deg, #D4A029 0%, #F0C84A 40%, #E8C040 55%, #B8841F 100%) !important;
    color: #1a0e00 !important;
    padding: 8px 14px !important;
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border: none !important;
    border-radius: var(--r) var(--r) 0 0 !important;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), inset 0 -1px 0 rgba(0,0,0,0.1);
}

/* Navy left accent on gold heading */
.panel-heading::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #041f33;
}

.panel-heading h3,
.panel-heading .panel-title,
.panel-heading a,
.panel-heading span,
.panel-default>.panel-heading h3,
.panel-default>.panel-heading .panel-title,
.panel-default>.panel-heading a {
    color: #1a0e00 !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    text-shadow: 0 1px 0 rgba(255,255,255,0.4);
}

.panel-primary>.panel-heading {
    background: linear-gradient(135deg, #D4A029 0%, #F0C84A 40%, #E8C040 55%, #B8841F 100%) !important;
}

.panel-primary>.panel-heading::before {
    background: #041f33;
}

.panel-body {
    padding: 14px 16px;
    background: var(--bg);
}

/* Override panel-body khi chua metismenu (Global Block Category) */
.panel-body > .panel.metismenu,
.panel-body > .clearfix.metismenu {
    margin: -14px -16px;
    border: none;
    box-shadow: none;
    border-radius: 0;
}

/* Well */
.well {
    background: var(--bg2);
    border: 1px solid var(--bdr);
    border-radius: var(--r);
    padding: 14px;
    margin-bottom: 20px;
    box-shadow: none;
}

/* Banner blocks */
.nv-block-banners {
    margin-bottom: 15px;
    border-radius: var(--r);
    overflow: hidden;
}

/* ============================
   6. CONTENT
   ============================ */
.bodytext {
    font-size: 15px;
    line-height: 1.8;
}

.bodytext p {
    margin-bottom: 12px;
}

/* News detail — center featured image */
/* Template uses: figure.article.left > div > p.text-center > img */
figure.article.left,
figure.article.left.noncaption,
figure.article.center {
    float: none !important;
    display: block !important;
    margin: 0 auto 20px !important;
    text-align: center;
}

figure.article.left>div,
figure.article.left.noncaption {
    margin: 0 auto !important;
}

figure.article img,
figure.article .img-thumbnail {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    border-radius: var(--r);
    box-shadow: var(--sh2);
}

figure.article figcaption {
    text-align: center;
    font-size: 12.5px;
    color: var(--tx2);
    font-style: italic;
    margin-top: 8px;
}

.news-image,
.detail-image {
    text-align: center;
    margin: 0 auto 20px;
}

.news-image img,
.detail-image img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    border-radius: var(--r);
    box-shadow: var(--sh2);
}

.bodytext img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 10px auto;
    border-radius: var(--r);
}

.bodytext figcaption,
.news-image figcaption {
    text-align: center;
    font-size: 12.5px;
    color: var(--tx2);
    font-style: italic;
    margin-top: 8px;
}

.hometext {
    font-weight: 600;
}

.title {
    font-size: 22px;
    font-weight: 700;
    color: var(--tx);
}

.new_title a,
.news_title a {
    color: var(--tx);
    font-weight: 600;
}

.new_title a:hover,
.news_title a:hover {
    color: var(--c3);
}

/* ============================
   6b. READING PROGRESS BAR
   ============================ */
#bp-reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--c3), var(--c2));
    z-index: 99999;
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
}

/* Breadcrumb bar — reading position indicator */
.bp-breadcrumb-bar {
    background: var(--bg2);
    border-bottom: 1px solid var(--bdr);
    padding: 10px 0;
    margin: 0 0 20px;
}

.bp-breadcrumb-bar .breadcrumbs-wrap {
    position: relative;
}

.breadcrumbs {
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumbs li {
    display: inline;
}

.breadcrumbs li+li::before {
    content: '\f105';
    font-family: 'FontAwesome';
    margin: 0 8px;
    color: var(--tx2);
    font-size: 11px;
}

.breadcrumbs a,
.show-subs-breadcrumbs {
    background: none;
    padding: 4px 10px;
    color: var(--tx2);
    font-size: 12.5px;
    float: none;
    position: relative;
    border-radius: 3px;
    transition: var(--tr);
}

.breadcrumbs a:hover {
    color: var(--c2);
    background: rgba(46, 125, 50, 0.08);
}

.breadcrumbs a:before,
.breadcrumbs a:after,
.show-subs-breadcrumbs:after {
    display: none;
}

.current-time {
    font-size: 12px;
    color: var(--tx2);
    float: right;
    margin-top: 2px;
}

/* ============================
   6c. COUNTER / STATS BLOCK
   ============================ */
ul.counter.display-table {
    width: 100%;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

ul.counter.display-table li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 12px;
    line-height: 1.4;
}

ul.counter.display-table li:nth-child(odd) {
    background: var(--bg2);
}

ul.counter.display-table li:last-child {
    border-bottom: none;
}

ul.counter.display-table li span:first-child {
    color: var(--tx2);
    font-size: 12px;
}

ul.counter.display-table li span:last-child {
    font-weight: 700;
    color: var(--c1);
    font-size: 13px;
    min-width: 40px;
    text-align: right;
}

ul.counter.display-table li .fa {
    color: var(--c2);
    font-size: 12px;
    width: 16px;
    text-align: center;
    margin-right: 6px;
}

ul.counter.display-table li .margin-top-lg {
    margin-top: 0 !important;
}

/* ============================
   7. BUTTONS
   ============================ */
.btn {
    border-radius: var(--r);
    font-weight: 600;
    padding: 7px 20px;
    font-size: 13px;
    border: none;
    transition: var(--tr);
}

.btn-primary,
.btn-info {
    background: var(--c2);
    color: #fff;
}

.btn-primary:hover,
.btn-info:hover {
    background: var(--c1);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.btn-success {
    background: #27ae60;
    color: #fff;
}

.btn-danger {
    background: #e74c3c;
    color: #fff;
}

.btn-warning {
    background: var(--c3);
    color: #fff;
}

a.btn {
    color: #fff;
}

/* ============================
   8. FORMS
   ============================ */
.form-control {
    border: 1px solid var(--bdr);
    border-radius: var(--r);
    padding: 7px 12px;
    font-size: 13.5px;
    transition: var(--tr);
}

.form-control:focus {
    border-color: var(--c3);
    box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.1);
    outline: none;
}

/* ============================
   9. TABLES
   ============================ */
.table>thead>tr>th {
    background: var(--c1);
    color: #fff;
    font-weight: 600;
    padding: 10px 14px;
    border: none;
}

.table>tbody>tr>td {
    padding: 9px 14px;
    border-bottom: 1px solid var(--bdr);
}

.table-striped>tbody>tr:nth-of-type(odd) {
    background: var(--bg2);
}

/* ============================
   10. FOOTER
   ============================ */
.bp-footer {
    background: var(--c5);
    color: rgba(255, 255, 255, 0.8);
    margin-top: 30px;
}

.bp-footer-top {
    padding: 30px 0 15px;
}

.bp-footer .panel,
.bp-footer .well {
    background: transparent;
    border: none;
    box-shadow: none;
    margin-bottom: 10px;
}

.bp-footer .panel:hover {
    box-shadow: none;
}

.bp-footer .panel-heading,
.bp-footer .panel-default>.panel-heading {
    background: none !important;
    padding: 0 0 8px !important;
    border-radius: 0 !important;
    border-bottom: 2px solid var(--c3) !important;
    display: inline-block;
    position: static;
}

.bp-footer .panel-heading::before {
    display: none;
}

.bp-footer .panel-heading h3,
.bp-footer .panel-heading .panel-title {
    font-size: 14px !important;
    text-transform: uppercase;
}

.bp-footer .panel-body {
    background: transparent;
    padding: 12px 0 0;
}

.bp-footer a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
}

.bp-footer a:hover {
    color: var(--c3);
}

.bp-footer p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

.bp-footer .fa {
    color: var(--c3);
    margin-right: 5px;
}

.bp-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bp-footer-copyright {
    background: rgba(0, 0, 0, 0.25);
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.bp-copyright-inner {
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.bp-copyright-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.bp-copyright-left {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.bp-copyright-left .qr-code-wraper {
    display: inline-flex;
    align-items: center;
}

.bp-copyright-left .qr-code-wraper img {
    max-height: 40px;
    width: auto;
}

.bp-copyright-center {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.bp-copyright-inner a {
    color: var(--c3);
}

.copyright {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
}

.copyright a {
    color: var(--c3);
}

/* Session timeout — hidden by default */
#timeoutsess {
    display: none !important;
}

.chromeframe {
    display: none;
}

.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--c1);
    color: #fff;
    padding: 12px 20px;
    font-size: 13px;
}

.cookie-notice button {
    float: right;
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

/* ============================
   11. BACK TO TOP
   ============================ */
.bp-totop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 38px;
    height: 38px;
    background: var(--c2);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    opacity: 0;
    visibility: hidden;
    transition: var(--tr);
    z-index: 9998;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}

.bp-totop.visible {
    opacity: 1;
    visibility: visible;
}

.bp-totop:hover {
    background: var(--c3);
    color: #fff;
    transform: translateY(-2px);
}

/* ============================
   12. MISC COMPAT
   ============================ */
.site-banner {
    display: none;
}

.section-header-bar {
    display: none;
}

.second-nav,
.third-nav {
    display: none;
}

.section-nav {
    display: block;
}

/* Fix banner: hiển thị trên TẤT CẢ thiết bị (chứa contact float button) */
.fix_banner_left,
.fix_banner_right {
    display: block;
    position: fixed;
    z-index: 9990;
}

/* Mặc định (mobile + tablet): góc dưới màn hình */
.fix_banner_left {
    bottom: 15px;
    left: 10px;
}

.fix_banner_right {
    bottom: 15px;
    right: 10px;
}

/* Desktop lớn (≥1500px): 2 bên lề trang như cũ */
@media (min-width: 1500px) {
    .fix_banner_left {
        top: 5px;
        bottom: auto;
        left: 5px;
        width: 120px;
    }

    .fix_banner_right {
        top: 5px;
        bottom: auto;
        right: 5px;
        width: 120px;
    }
}

.bp-theme-type {
    display: none;
}

.m-bottom {
    margin-bottom: 10px !important;
}

iframe {
    border: 0;
    max-width: 100%;
}

.qr-code-wraper {
    text-align: center;
}

.nv-fullbg {
    min-height: 100%;
    background: #fff;
}

figure.table table td,
figure.table table th {
    min-width: 5px;
    padding: 7px;
    border: 1px solid var(--bdr);
}

figure.image {
    display: table !important;
    clear: both;
    text-align: center;
    margin: 5px auto 10px auto;
}

figure.image img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

/* ============================
   CATEGORY BLOCK — sync colors
   ============================ */
.list-group-item {
    border-color: var(--bdr);
    color: var(--tx);
    font-size: 13px;
    padding: 8px 14px;
    transition: var(--tr);
}

.list-group-item:hover,
.list-group-item:focus {
    background: var(--bg2);
    color: var(--c2);
}

.list-group-item.active,
.list-group-item.active:hover,
.list-group-item.active:focus,
a.list-group-item.active,
a.list-group-item.active:hover {
    background: var(--c1) !important;
    border-color: var(--c1) !important;
    color: #fff !important;
}

.list-group-item .badge {
    background: var(--c2);
    color: #fff;
    font-size: 11px;
}

.list-group-item.active .badge {
    background: var(--c3);
    color: var(--c1);
}

/* MetisMenu category — Gold gradient (synced with Business Pro menu bar) */
.metismenu .sidebar {
    background: var(--gold-grad) !important;
}

.metismenu .sidebar-nav {
    background: var(--gold-grad) !important;
    background-image: none !important;
    border-bottom-color: rgba(0, 0, 0, 0.15) !important;
}

.metismenu .sidebar-nav ul a {
    color: #fff !important;
    border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08) inset !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

.metismenu .sidebar-nav ul a:hover,
.metismenu .sidebar-nav ul a:focus,
.metismenu .sidebar-nav ul a:active {
    background: rgba(0, 0, 0, 0.12) !important;
    background-image: linear-gradient(to right, var(--c1) 4px, rgba(0, 0, 0, 0) 4px) !important;
}

.metismenu .sidebar-nav ul ul a {
    background-color: rgba(0, 0, 0, 0.1) !important;
}

.metismenu .sidebar-nav ul ul a:hover,
.metismenu .sidebar-nav ul ul a:focus,
.metismenu .sidebar-nav ul ul a:active {
    background-color: rgba(0, 0, 0, 0.18) !important;
}

/* ============================
   ACCOUNT TIP PANEL (#tip)
   ============================ */
#tip {
    position: absolute;
    top: 100%;
    right: 0;
    min-height: 50px;
    max-width: 340px;
    width: 340px;
    z-index: 9999;
    display: none;
    background: #ffffff;
    color: #333;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    animation: tipSlideDown 0.3s ease;
    overflow: hidden;
}

@keyframes tipSlideDown {
    0% {
        opacity: 0;
        transform: translateY(-8px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

#tip .bg {
    padding: 22px 20px 18px;
    position: relative;
    background: #ffffff;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

#tip h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--c1);
    text-align: center;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

#tip h3 i,
#tip h3 .fa {
    margin-right: 6px;
    color: var(--c2);
}

#tip ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

#tip ul li {
    padding: 4px 0;
}

#tip a {
    color: var(--c1);
    text-decoration: none;
    transition: color 0.2s;
}

#tip a:hover {
    color: var(--c2);
    text-decoration: underline;
}

/* Form inputs */
#tip input[type="text"],
#tip input[type="password"],
#tip input[type="email"] {
    width: 100%;
    padding: 11px 14px 11px 38px;
    margin-bottom: 10px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    background: #f9fafb;
    color: #333;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    background-repeat: no-repeat;
    background-position: 12px center;
    background-size: 16px;
}

#tip input[type="text"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23999'%3E%3Cpath d='M12 12c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm0 2c-3.33 0-10 1.67-10 5v2h20v-2c0-3.33-6.67-5-10-5z'/%3E%3C/svg%3E");
}

#tip input[type="password"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23999'%3E%3Cpath d='M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zM9 8V6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9z'/%3E%3C/svg%3E");
}

#tip input[type="email"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23999'%3E%3Cpath d='M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
}

#tip input[type="text"]:focus,
#tip input[type="password"]:focus,
#tip input[type="email"]:focus {
    border-color: var(--c2);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(52, 120, 198, 0.12);
}

#tip input[type="text"]::placeholder,
#tip input[type="password"]::placeholder,
#tip input[type="email"]::placeholder {
    color: #aaa;
}

/* Buttons */
#tip .btn,
#tip input[type="submit"],
#tip button {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
    letter-spacing: 0.3px;
}

#tip .btn:hover,
#tip input[type="submit"]:hover,
#tip button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#tip .btn-primary,
#tip input[type="submit"] {
    background: linear-gradient(135deg, #4a90d9, #357abd);
    color: #fff !important;
}

#tip .btn-primary:hover,
#tip input[type="submit"]:hover {
    background: linear-gradient(135deg, #357abd, #2a6cb0);
}

#tip .btn-success {
    background: linear-gradient(135deg, #27ae60, #219a52);
    color: #fff !important;
}

#tip .btn-default {
    background: #f5f5f5;
    color: #555;
    border: 1px solid #ddd;
}

#tip .btn-default:hover {
    background: #eee;
}

/* Tip footer */
#tip .tip-footer {
    background: #f8f9fa;
    border-top: 1px solid #eee;
    padding: 12px 20px;
    margin: 16px -20px -18px;
    text-align: center;
    font-size: 12px;
    color: #888;
}

#tip .tip-footer a {
    color: var(--c2);
    font-weight: 600;
}

#tip .tip-footer a:hover {
    color: var(--c1);
}

/* Labels & checkboxes */
#tip label {
    color: #555;
    font-size: 12px;
    font-weight: normal;
}

#tip .socialList a {
    color: #fff;
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    margin: 2px;
    font-size: 13px;
    transition: transform 0.2s;
}

#tip .socialList a:hover {
    transform: scale(1.15);
    text-decoration: none;
}

/* ========= NEWS BLOCK LISTS — Compact & Clean ========= */
ul.list-items,
ul.block_news,
ul.block_groups {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

ul.list-items li,
ul.block_news li,
ul.block_groups li {
    display: flex !important;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    margin: 0;
    gap: 10px;
}

ul.list-items li:last-child,
ul.block_news li:last-child,
ul.block_groups li:last-child {
    border-bottom: none;
}

/* Thumbnail in block lists */
ul.list-items li img,
ul.block_news li img,
ul.block_groups li img {
    width: 60px !important;
    height: 45px !important;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    float: none !important;
    margin: 0 !important;
}

/* Title links in block lists */
ul.list-items li>a.show,
ul.block_news li>a.show,
ul.block_groups li>a.show {
    flex: 1;
    min-width: 0;
    color: #333;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 500;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

ul.list-items li>a.show:hover,
ul.block_news li>a.show:hover,
ul.block_groups li>a.show:hover {
    color: var(--c2);
}

/* News Center block — sidebar list */
.hot-news-others ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.hot-news-others li {
    padding: 8px 0 !important;
    border-bottom: 1px solid #f0f0f0;
    margin: 0 !important;
}

.hot-news-others li:last-child {
    border-bottom: none;
}

.hot-news-others li.icon_list::before {
    display: none !important;
}

.hot-news-others li a {
    display: flex !important;
    align-items: center;
    gap: 10px;
    color: #333;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 500;
    text-decoration: none;
}

.hot-news-others li a:hover {
    color: var(--c2);
}

.hot-news-others li a img {
    width: 60px !important;
    height: 45px !important;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    float: none !important;
    margin: 0 !important;
    order: -1;
}

.hot-news-others li a span {
    flex: 1;
    min-width: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Icon list dot removal */
li.icon_list {
    list-style: none !important;
}

li.icon_list::before {
    display: none !important;
}

/* New day icon */
.icon_new {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #e74c3c;
    border-radius: 50%;
    margin-left: 4px;
    vertical-align: middle;
}

/* ============================
   RESPONSIVE — MOBILE (≤ 767px)
   ============================ */
@media (max-width: 767px) {

    /* Tip popup — ẩn trên mobile */
    #tip {
        display: none !important;
    }

    /* --- HEADER BANNER: Mobile responsive --- */

    /* Header: giảm chiều cao, nền trắng cho blockchain */
    .bp-header {
        background-color: #ffffff !important;
        min-height: 80px;
    }

    /* Banner image: ẩn trên mobile, chỉ giữ blockchain canvas */
    .bp-header-banner-bg {
        display: none !important;
    }

    /* Overlay gradient: ẩn khi không có banner */
    .bp-header-overlay {
        display: none !important;
    }

    /* Inner flex: chuyển column, canh giữa */
    .bp-header-inner {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        min-height: 80px;
        padding: 10px 0;
    }

    /* Logo: thu nhỏ và canh giữa */
    .bp-header .logo {
        justify-content: center;
        gap: 8px;
    }

    .bp-header .logo img {
        max-height: 50px;
        width: auto;
        filter: drop-shadow(0 1px 4px rgba(0,0,0,0.15));
    }

    /* Brand text: ẩn trên mobile, chỉ giữ logo image */
    .bp-brand {
        display: none;
    }

    /* Right-ads: ẩn trên mobile */
    .bp-header .right-ads {
        display: none;
    }
}

/* ============================
   RESPONSIVE — TABLET (768 – 991px)
   ============================ */
@media (min-width: 768px) and (max-width: 991px) {

    .bp-header {
        min-height: 100px;
    }

    .bp-header-inner {
        min-height: 100px;
        padding: 12px 0;
    }

    .bp-header .logo img {
        max-height: 70px;
    }
}