/*
 * CTUMP library - modern public layout (2026-11). Restyles the portlet blocks marked by /Scripts/ctump-modern.js.
 * CTUMP colours: blue #005fab (logo / old top bar), deep navy for text and footer, a light teal accent.
 * The database HTML is unchanged; every rule is scoped to html.ct-modern.
 */
html.ct-modern {
    --ct-blue: #005fab;
    --ct-blue-600: #004f8f;
    --ct-blue-700: #003f73;
    --ct-navy: #0b2545;
    --ct-teal: #1aa6b7;
    --ct-ink: #1f2d3d;
    --ct-muted: #5b6b7d;
    --ct-line: #e3e9f1;
    --ct-bg: #f3f6fa;
    --ct-card: #ffffff;
    --ct-radius: 16px;
    --ct-shadow: 0 1px 2px rgba(11, 37, 69, .06), 0 8px 24px rgba(11, 37, 69, .08);
    --ct-shadow-hover: 0 2px 6px rgba(11, 37, 69, .08), 0 18px 40px rgba(11, 37, 69, .14);
    --ct-font: "Poppins", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
    --ct-max: 1200px;
}
html.ct-modern body { background: var(--ct-bg) !important; color: var(--ct-ink); font-family: var(--ct-font); }
html.ct-modern a { color: var(--ct-blue); }
html.ct-modern a:hover { color: var(--ct-blue-700); }

/* ---------- structure: every block encloses its own floats (this is what made the old page overlap) ---------- */
html.ct-modern .psc-divPortlet-Wrapper, html.ct-modern .psc-divPortlet-Content,
html.ct-modern #psc-divPanelTop, html.ct-modern #psc-divPanelMid, html.ct-modern #psc-divPanelCenter,
html.ct-modern #psc-divPanelBottom { display: flow-root; float: none !important; width: auto !important; }
html.ct-modern #bd, html.ct-modern #yt_wrapper { float: none !important; width: auto !important; }
html.ct-modern .container { max-width: var(--ct-max); width: auto !important; padding-left: 20px; padding-right: 20px; }
html.ct-modern .ct-hidden, html.ct-modern .ct-news .vpi-wrap .item.ct-hidden { display: none !important; }

/* ---------- top bar ---------- */
html.ct-modern .ct-topbar section.login { margin: 0 !important; padding: 0 !important; background: linear-gradient(90deg, var(--ct-blue-700), var(--ct-blue)) !important; }
html.ct-modern .ct-topbar .container { display: flex; align-items: center; justify-content: space-between; min-height: 42px; padding-top: 0 !important; padding-bottom: 0 !important; }
html.ct-modern .ct-topbar .container::before, html.ct-modern .ct-topbar .container::after { display: none; }
html.ct-modern .ct-topbar .left-item, html.ct-modern .ct-topbar .right-item { float: none !important; width: auto !important; margin: 0 !important; padding: 0 !important; }
html.ct-modern .ct-topbar #homehref { display: flex; align-items: center; gap: 6px; margin: 0 !important; }
html.ct-modern .ct-topbar #homehref a {
    display: inline-grid; place-items: center; width: 30px; height: 30px; margin: 0 !important; border-radius: 50%;
    color: #fff !important; background: rgba(255, 255, 255, .12); transition: background .15s;
}
html.ct-modern .ct-topbar #homehref a:hover { background: rgba(255, 255, 255, .26); }
html.ct-modern .ct-topbar #homehref a i, html.ct-modern .ct-topbar #homehref a span { font-size: 14px !important; line-height: 1 !important; color: #fff !important; }
html.ct-modern .ct-topbar #loginpanel a, html.ct-modern .ct-topbar .right-item a {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; color: #fff !important;
    background: rgba(255, 255, 255, .14); font-size: 13px !important; font-weight: 500; text-decoration: none !important;
}
html.ct-modern .ct-topbar #loginpanel a { position: static !important; top: auto !important; }
html.ct-modern .ct-topbar #loginpanel a:hover { background: #fff; color: var(--ct-blue) !important; }
html.ct-modern .ct-topbar #loginpanel a:hover i, html.ct-modern .ct-topbar #loginpanel a:hover span { color: var(--ct-blue) !important; }
html.ct-modern .ct-topbar #loginpanel i, html.ct-modern .ct-topbar #loginpanel span { color: #fff !important; }
/* signed in: "name + avatar" chip in the top bar, account menu as a white card (the theme floats the name 35px down
   in a grey label and the menu inherits the bar's white link colour) */
html.ct-modern .ct-topbar .right-item { display: flex; align-items: center; gap: 10px; line-height: normal !important; position: relative; }
html.ct-modern .ct-topbar #userlog2 {
    position: static !important; float: none !important; top: auto !important; left: auto !important; order: 1;
    padding: 0 !important; background: none !important; border: 0 !important; color: #fff !important; font: 500 13.5px/1.2 var(--ct-font) !important; white-space: nowrap;
}
html.ct-modern .ct-topbar #userlog2 p { margin: 0 !important; }
html.ct-modern .ct-topbar #logoutpanel { order: 2; float: none !important; margin: 0 !important; display: block; line-height: normal !important; }
html.ct-modern .ct-topbar #logoutpanel > li { float: none !important; position: relative; line-height: normal !important; }
html.ct-modern .ct-topbar #dropdownToggle {
    width: 34px !important; height: 34px; margin: 4px 0 !important; float: none !important; border-radius: 50%; overflow: hidden;
    background: #fff; box-shadow: 0 0 0 2px rgba(255, 255, 255, .55); cursor: pointer;
}
html.ct-modern .ct-topbar #dropdownToggle img { display: block; width: 100% !important; height: 100% !important; margin: 0 !important; object-fit: cover; }
html.ct-modern .ct-topbar #listmenupanel {
    left: auto !important; right: 0 !important; top: calc(100% + 8px) !important; min-width: 240px; padding: 8px !important; margin: 0 !important;
    border: 1px solid var(--ct-line) !important; border-radius: 12px !important; background: #fff !important; box-shadow: var(--ct-shadow-hover) !important;
    line-height: normal !important; z-index: 2000 !important;
}
html.ct-modern .ct-topbar .open > #listmenupanel { display: block; }
html.ct-modern .ct-topbar #listmenupanel > li { float: none !important; line-height: normal !important; }
html.ct-modern .ct-topbar #listmenupanel a.loginul {
    display: block; position: static !important; margin: 0 !important; padding: 9px 12px !important; border: 0 !important; border-radius: 8px;
    background: none !important; color: var(--ct-ink) !important; font: 500 14px/1.35 var(--ct-font) !important; text-decoration: none !important; white-space: nowrap;
}
html.ct-modern .ct-topbar #listmenupanel a.loginul:hover { background: #eef5fc !important; color: var(--ct-blue) !important; }
html.ct-modern .ct-topbar #listmenupanel #userlog { color: var(--ct-navy) !important; font-weight: 700 !important; border-bottom: 1px solid var(--ct-line) !important; border-radius: 0; margin-bottom: 4px !important; cursor: default; }
html.ct-modern .ct-topbar #listmenupanel #userlog:hover { background: none !important; }
html.ct-modern .ct-topbar #listmenupanel #clickkk { color: #c0392b !important; }
html.ct-modern .ct-topbar #mesagenumber a { position: absolute !important; top: 2px !important; right: -6px !important; width: auto !important; height: auto !important; padding: 1px 6px !important; font-size: 11px; border-radius: 999px; }
/* sign-in dialog: the theme's button text has the same colour as the button */
html.ct-modern #loginwindow #btnLogin { color: #fff !important; background: linear-gradient(135deg, var(--ct-blue), var(--ct-blue-700)) !important; border: 0 !important; border-radius: 8px; font: 600 14px var(--ct-font) !important; }
@media (max-width: 767px) {
    html.ct-modern body .ct-topbar .right-item { flex: 1 1 auto; justify-content: flex-end; min-width: 0; width: auto !important; max-width: none !important; }
    html.ct-modern .ct-topbar #userlog2 { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
    html.ct-modern .ct-topbar #logoutpanel { flex: 0 0 auto; width: auto !important; }
}

/* ---------- banner (photo with the library name drawn in it: shown whole, never cropped) ---------- */
html.ct-modern .ct-banner { background: #fff; }
html.ct-modern .ct-banner .psc-divPortlet-Content { max-width: var(--ct-max); margin: 0 auto; padding: 18px 20px 14px; }
html.ct-modern .ct-banner p { margin: 0 !important; }
html.ct-modern .ct-banner img { display: block; width: 100% !important; height: auto !important; border-radius: 14px; }
html.ct-modern .ct-banner .OpenTime:empty, html.ct-modern .ct-banner .OpenTime span:empty { display: none; }

/* ---------- main menu: sticky white bar ---------- */
html.ct-modern .ct-nav { position: sticky; top: 0; z-index: 900; background: #fff; border-top: 1px solid var(--ct-line); border-bottom: 1px solid var(--ct-line); transition: box-shadow .2s; }
html.ct-modern.ct-scrolled .ct-nav { box-shadow: 0 8px 24px rgba(11, 37, 69, .10); }
html.ct-modern .ct-nav .main-menu, html.ct-modern .ct-nav .bg-header, html.ct-modern .ct-nav .top-menu { float: none !important; width: auto !important; background: transparent !important; margin: 0 !important; }
html.ct-modern .ct-nav .header-top { display: none; }
html.ct-modern .ct-nav .navbar { min-height: 0; margin: 0 !important; border: 0 !important; background: transparent !important; position: static !important; }
html.ct-modern .ct-nav .navbar .container { display: flex; align-items: center; }
html.ct-modern .ct-nav .navbar-collapse { padding: 0 !important; flex: 1; }
/* SmartMenus' Bootstrap add-on switches to its phone (click-to-open, collapsible) mode when the top items are not
   float:left - so on desktop they stay floated (a flex row would report float:none) inside a centred fit-content list */
html.ct-modern .ct-nav .navbar-nav { float: none !important; margin: 0 !important; }
@media (min-width: 768px) {
    html.ct-modern body .ct-nav ul.navbar-nav { display: flow-root !important; width: fit-content; max-width: 100%; margin: 0 auto !important; }
    html.ct-modern body .ct-nav ul.navbar-nav > li { float: left !important; margin: 0 1px; }
}
html.ct-modern .ct-nav .navbar-nav > li > a {
    position: relative; padding: 18px 14px !important; color: var(--ct-navy) !important; background: transparent !important;
    font: 600 13.5px/1.2 var(--ct-font) !important; letter-spacing: .02em; text-transform: uppercase;
}
html.ct-modern .ct-nav .navbar-nav > li > a::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 10px; height: 3px; border-radius: 3px;
    background: var(--ct-blue); transform: scaleX(0); transform-origin: left; transition: transform .2s;
}
html.ct-modern .ct-nav .navbar-nav > li > a:hover::after, html.ct-modern .ct-nav .navbar-nav > li.active > a::after,
html.ct-modern .ct-nav .navbar-nav > li > a.highlighted::after { transform: scaleX(1); }
/* release.css paints hovered / open / active items solid blue (text included): keep them light */
html.ct-modern body .ct-nav .navbar-nav > li:not(.disabled) > a:hover, html.ct-modern body .ct-nav .navbar-nav > li:not(.disabled) > a:focus,
html.ct-modern body .ct-nav .navbar-nav > li:not(.disabled) > a.highlighted, html.ct-modern body .ct-nav .navbar-nav > li:not(.disabled).open > a,
html.ct-modern body .ct-nav .navbar-nav > li:not(.disabled).active > a { background: transparent !important; color: var(--ct-blue) !important; }
html.ct-modern .ct-nav .navbar-nav .caret, html.ct-modern .ct-nav .sub-arrow { border-top-color: currentColor !important; }
html.ct-modern .ct-nav .dropdown-menu {
    min-width: 250px !important; width: auto !important; max-width: 340px !important; padding: 8px !important; border: 1px solid var(--ct-line) !important; border-radius: 12px !important;
    box-shadow: var(--ct-shadow-hover) !important; background: #fff !important;
}
html.ct-modern .ct-nav .dropdown-menu > li > a {
    padding: 9px 12px !important; border-radius: 8px; color: var(--ct-ink) !important; font: 500 14px/1.35 var(--ct-font) !important;
    white-space: normal !important; text-transform: none; display: flex !important; align-items: baseline; gap: 8px;
}
html.ct-modern .ct-nav .dropdown-menu > li > a > .fa { flex: 0 0 auto; color: var(--ct-teal); }
@media (min-width: 768px) { html.ct-modern .ct-nav .dropdown-menu > li { width: 100%; float: none !important; } }
html.ct-modern .ct-nav .dropdown-menu > li > a:hover { background: #eef5fc !important; color: var(--ct-blue) !important; }
html.ct-modern .ct-nav .navbar-toggle { margin: 10px 0; border-color: var(--ct-line) !important; border-radius: 10px; }
html.ct-modern .ct-nav .navbar-toggle .icon-bar { background: var(--ct-navy) !important; }

/* ---------- search: card on a blue band ---------- */
html.ct-modern .ct-search { background: linear-gradient(135deg, var(--ct-blue-700) 0%, var(--ct-blue) 60%, #1677c7 100%); }
html.ct-modern .ct-search aside, html.ct-modern .ct-search .danhsach-theloai { background: transparent !important; margin: 0 !important; padding: 0 !important; }
html.ct-modern .ct-search .container { padding-top: 34px !important; padding-bottom: 34px !important; }
html.ct-modern .ct-search section.search { float: none !important; width: auto !important; margin: 0 auto !important; max-width: 880px; background: none !important; }
html.ct-modern .ct-search .search::before {
    content: "Tra cứu tài liệu, giáo trình, luận văn, tạp chí y khoa…"; display: block; margin-bottom: 12px; text-align: center;
    color: rgba(255, 255, 255, .9); font: 500 15px/1.4 var(--ct-font);
}
html.ct-modern .ct-search .form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 8px !important; border-radius: 999px; background: #fff; box-shadow: 0 18px 40px rgba(0, 30, 60, .25); }
html.ct-modern .ct-search .SearchLeft { flex: 1; display: flex; align-items: center; gap: 8px; float: none !important; width: auto !important; margin: 0 !important; position: relative; left: auto !important; right: auto !important; transform: none !important; }
html.ct-modern .ct-search #txtSearch {
    flex: 1; float: none !important; width: auto !important; height: 48px; margin: 0 !important; padding: 0 18px 0 46px !important;
    border: 0 !important; border-radius: 999px !important; background: transparent !important; box-shadow: none !important;
    font: 400 15.5px var(--ct-font) !important; color: var(--ct-ink) !important;
}
html.ct-modern .ct-search .SearchLeft::before {
    content: "\f002"; position: absolute; left: 18px; top: 50%; transform: translateY(-50%); font-family: FontAwesome; color: #8aa0b6; font-size: 16px; pointer-events: none;
}
html.ct-modern .ct-search a.text-search {
    float: none !important; width: auto !important; flex: 0 0 auto; height: 48px; display: inline-grid; place-items: center; margin: 0 !important;
    padding: 0 28px !important; border-radius: 999px; background: linear-gradient(135deg, var(--ct-blue), var(--ct-blue-700)) !important;
    color: #fff !important; font: 600 14.5px var(--ct-font) !important; text-transform: none; border: 0 !important; text-decoration: none !important;
}
html.ct-modern .ct-search a.text-search:hover { filter: brightness(1.08); }
html.ct-modern .ct-search .SearchRight { float: none !important; width: auto !important; margin: 0 6px 0 0 !important; animation: none !important; position: static !important; left: auto !important; right: auto !important; transform: none !important; }
html.ct-modern .ct-search .SearchRight p { margin: 0 !important; }
html.ct-modern .ct-search .SearchRight a { color: var(--ct-blue) !important; font: 600 13.5px var(--ct-font); text-decoration: none; white-space: nowrap; }
html.ct-modern .ct-search .SearchRight a::before { content: "\f0b0"; font-family: FontAwesome; margin-right: 6px; }
html.ct-modern .ct-search #pnSearchResult { position: absolute; left: 0; right: 0; top: 100%; z-index: 50; }
html.ct-modern .ct-search #tab1111, html.ct-modern .ct-search #LoadingPanelImg:empty { display: none; }

/* ---------- featured news carousel ---------- */
html.ct-modern .ct-hero { padding: 36px 0 8px; }
html.ct-modern .ct-hero section.block-intro { margin: 0 !important; padding: 0 !important; background: none !important; }
html.ct-modern .ct-hero .hero_carosel { border-radius: var(--ct-radius); overflow: hidden; background: #fff; box-shadow: var(--ct-shadow); }
html.ct-modern .ct-hero .owl-item .item { display: grid !important; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: stretch; min-height: 340px; background: #fff; }
html.ct-modern .ct-hero .hero-img { position: relative; overflow: hidden; background: #e9eff6; float: none !important; width: auto !important; height: auto !important; }
html.ct-modern .ct-hero .hero-img { background: linear-gradient(135deg, #eef4fb, #dfeaf6) !important; }
/* the slides are designed banners with text in them: shown whole, never cropped */
html.ct-modern .ct-hero .hero-img img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: contain; }
html.ct-modern .ct-hero .desc { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 36px 40px !important; float: none !important; width: auto !important; position: static !important; background: none !important; transform: none !important; top: auto !important; left: auto !important; right: auto !important; max-width: none !important; }
html.ct-modern .ct-hero .desc::before { content: "Tin nổi bật"; align-self: flex-start; padding: 5px 12px; border-radius: 999px; background: #e6f1fb; color: var(--ct-blue); font: 600 12px var(--ct-font); letter-spacing: .06em; text-transform: uppercase; }
html.ct-modern .ct-hero .desc h2 { margin: 0 !important; color: var(--ct-navy) !important; font: 700 clamp(20px, 2.2vw, 28px)/1.3 var(--ct-font) !important; text-transform: none !important; text-align: left !important; }
html.ct-modern .ct-hero .carsl_cnt { margin: 0 !important; color: var(--ct-muted); font-size: 15px; line-height: 1.6; }
html.ct-modern .ct-hero .carsl_cnt:empty { display: none; }
html.ct-modern .ct-hero .carsl_btn { margin: 4px 0 0 !important; }
html.ct-modern .ct-hero .carsl_btn a {
    display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px !important; border-radius: 999px; border: 0 !important;
    background: linear-gradient(135deg, var(--ct-blue), var(--ct-blue-700)) !important; color: #fff !important; font: 600 14px var(--ct-font) !important;
    text-decoration: none !important; box-shadow: 0 8px 18px rgba(0, 95, 171, .28);
}
html.ct-modern .ct-hero .carsl_btn a::after { content: "\f061"; font-family: FontAwesome; font-size: 12px; }
html.ct-modern .ct-hero .owl-dots { position: absolute; right: 24px; bottom: 18px; margin: 0 !important; }
html.ct-modern .ct-hero .owl-dot span { width: 8px !important; height: 8px !important; margin: 3px !important; background: #c7d5e4 !important; transition: width .2s; }
html.ct-modern .ct-hero .owl-dot.active span { width: 24px !important; background: var(--ct-blue) !important; }
html.ct-modern .ct-hero .pag-item { display: none !important; }

/* ---------- quick links ---------- */
html.ct-modern .ct-quick section.block { margin: 0 !important; padding: 28px 0 8px !important; background: none !important; }
html.ct-modern .ct-quick .features {
    float: none !important; width: auto !important; margin: 0 !important; display: grid; gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
html.ct-modern .ct-quick .feature-item { float: none !important; width: auto !important; margin: 0 !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; background: none !important; outline: 0 !important; }
html.ct-modern .ct-quick .feature-item::before, html.ct-modern .ct-quick .feature-item::after { display: none !important; content: none !important; }
html.ct-modern .ct-quick .feature-item a {
    height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px 14px;
    border: 1px solid var(--ct-line); border-radius: var(--ct-radius); background: #fff; box-shadow: var(--ct-shadow);
    text-align: center; text-decoration: none !important; transition: transform .2s, box-shadow .2s, border-color .2s;
}
html.ct-modern .ct-quick .feature-item a:hover { transform: translateY(-4px); box-shadow: var(--ct-shadow-hover); border-color: #bcd6ee; }
html.ct-modern .ct-quick .feature-item img { width: auto !important; max-width: 100%; height: 64px !important; object-fit: contain; }
html.ct-modern .ct-quick .feature-item span {
    position: static !important; width: auto !important; margin: 0 !important; color: var(--ct-navy) !important;
    font: 600 13.5px/1.35 var(--ct-font) !important; text-transform: uppercase; letter-spacing: .02em;
}

/* ---------- section headings ---------- */
html.ct-modern .ct-heading { display: flex; align-items: center; gap: 12px; margin: 0 0 18px !important; padding: 0 !important; border: 0 !important; background: none !important; }
html.ct-modern .ct-heading::before { content: ""; width: 6px; height: 26px; border-radius: 4px; background: linear-gradient(var(--ct-teal), var(--ct-blue)); flex: 0 0 auto; }
html.ct-modern .ct-heading a, html.ct-modern .ct-heading span, html.ct-modern h3.ct-heading {
    position: static !important; padding: 0 !important; margin: 0 !important; background: none !important; border: 0 !important;
    color: var(--ct-navy) !important; font: 700 22px/1.3 var(--ct-font) !important; text-transform: none !important;
}
html.ct-modern .ct-heading a::before, html.ct-modern .ct-heading a::after, html.ct-modern .ct-heading span::before, html.ct-modern .ct-heading span::after { display: none !important; }

/* ---------- news ("Thông báo"): card grid instead of the cramped slider ---------- */
html.ct-modern .ct-news { padding: 34px 0 10px; }
html.ct-modern .ct-news > .psc-divPortlet-Content > div { float: none !important; width: auto !important; }
html.ct-modern .ct-news > .psc-divPortlet-Content > div > hr { display: none; }
html.ct-modern .ct-news .ct-heading { max-width: var(--ct-max); margin-left: auto !important; margin-right: auto !important; padding: 0 20px !important; }
html.ct-modern .ct-news section.block { margin: 0 !important; padding: 0 !important; background: none !important; }
html.ct-modern .ct-news #top4 { width: 100% !important; float: none !important; padding: 0 !important; }
html.ct-modern .ct-news #top5 { display: none; }
html.ct-modern .ct-news .row { margin: 0 !important; }
html.ct-modern .ct-news .module, html.ct-modern .ct-news .modcontent, html.ct-modern .ct-news .sj-k2-container-slider,
html.ct-modern .ct-news .slider, html.ct-modern .ct-news .vpo-wrap, html.ct-modern .ct-news .vp {
    position: static !important; width: auto !important; height: auto !important; margin: 0 !important; padding: 0 !important; overflow: visible !important; background: none !important;
}
html.ct-modern .ct-news .page-button, html.ct-modern .ct-news .control-button { display: none !important; }
html.ct-modern .ct-news .vpi-wrap {
    position: static !important; left: auto !important; transform: none !important; width: auto !important; height: auto !important;
    display: grid !important; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
html.ct-modern .ct-news .vpi-wrap .item { float: none !important; width: auto !important; height: auto !important; margin: 0 !important; padding: 0 !important; display: block !important; }
html.ct-modern .ct-news .item-wrap {
    height: 100%; display: flex; flex-direction: column; overflow: hidden; margin: 0 !important; padding: 0 !important;
    border: 1px solid var(--ct-line); border-radius: var(--ct-radius); background: #fff; box-shadow: var(--ct-shadow); transition: transform .2s, box-shadow .2s;
}
html.ct-modern .ct-news .item-wrap:hover { transform: translateY(-4px); box-shadow: var(--ct-shadow-hover); }
html.ct-modern .ct-news .item-img { width: auto !important; height: auto !important; margin: 0 !important; float: none !important; }
html.ct-modern .ct-news .item-img-info { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #e9eff6; }
html.ct-modern .ct-news .item-img-info a, html.ct-modern .ct-news .item-img-info img { display: block; width: 100% !important; height: 100% !important; }
html.ct-modern .ct-news .item-img-info img { object-fit: cover; transition: transform .35s; }
html.ct-modern .ct-news .item-wrap:hover .item-img-info img { transform: scale(1.05); }
html.ct-modern .ct-news .over-image { display: none !important; }
html.ct-modern .ct-news .item-info, html.ct-modern .ct-news .item-inner { position: static !important; width: auto !important; height: auto !important; margin: 0 !important; padding: 0 !important; background: none !important; }
html.ct-modern .ct-news .item-inner { padding: 16px 18px 20px !important; }
html.ct-modern .ct-news .item-title { margin: 0 !important; }
html.ct-modern .ct-news .item-title a {
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
    color: var(--ct-navy) !important; font: 600 15px/1.5 var(--ct-font) !important; text-decoration: none !important; text-transform: none !important;
}
html.ct-modern .ct-news .item-title a:hover { color: var(--ct-blue) !important; }
html.ct-modern .ct-news .item-content, html.ct-modern .ct-news .item-des:empty { display: none; }

/* ---------- book showcase ---------- */
html.ct-modern .ct-books.ct-empty { display: none !important; }
html.ct-modern .ct-books section.lists-book-fullscreen { padding: 30px 0 !important; background: none !important; }
html.ct-modern .ct-books .nav-tabs1 { border: 0 !important; display: flex; flex-wrap: wrap; gap: 8px; }
html.ct-modern .ct-books .nav-tabs1 > li > a { border: 1px solid var(--ct-line) !important; border-radius: 999px !important; padding: 7px 16px !important; background: #fff; color: var(--ct-navy) !important; }
html.ct-modern .ct-books .nav-tabs1 > li.active > a { background: var(--ct-blue) !important; border-color: var(--ct-blue) !important; color: #fff !important; }

/* ---------- floating dock (Fanpage, khảo sát, ...) ---------- */
html.ct-modern ul.hanging {
    position: fixed !important; right: 14px !important; top: 50% !important; transform: translateY(-50%); z-index: 950;
    display: flex; flex-direction: column; gap: 8px; margin: 0 !important; padding: 8px !important; list-style: none;
    border-radius: 999px; background: rgba(255, 255, 255, .92); box-shadow: var(--ct-shadow-hover); backdrop-filter: blur(6px);
}
html.ct-modern ul.hanging li { position: relative; margin: 0 !important; padding: 0 !important; background: none !important; border: 0 !important; width: auto !important; height: auto !important; }
html.ct-modern ul.hanging li a {
    display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--ct-blue) !important;
    transition: background .15s, transform .15s; padding: 0 !important;
}
html.ct-modern ul.hanging li a:hover { background: var(--ct-blue-700) !important; transform: scale(1.06); }
html.ct-modern ul.hanging li a img { width: 22px !important; height: 22px !important; object-fit: contain; filter: brightness(0) invert(1); margin: 0 !important; }
html.ct-modern ul.hanging li a span {
    position: absolute; right: 54px; top: 50%; transform: translateY(-50%); white-space: nowrap; pointer-events: none;
    padding: 6px 12px; border-radius: 8px; background: var(--ct-navy); color: #fff !important; font: 500 13px var(--ct-font) !important;
    opacity: 0; visibility: hidden; transition: opacity .15s;
}
html.ct-modern ul.hanging li a:hover span, html.ct-modern ul.hanging li a:focus span { opacity: 1; visibility: visible; }

/* ---------- footer ---------- */
html.ct-modern .ct-footer { margin-top: 48px; background: linear-gradient(160deg, var(--ct-navy), var(--ct-blue-700)) !important; color: rgba(255, 255, 255, .86); }
html.ct-modern .ct-footer footer, html.ct-modern .ct-footer #yt_copyright, html.ct-modern .ct-footer .footerpanel { background: transparent !important; float: none !important; width: auto !important; margin: 0 !important; padding: 0 !important; }
html.ct-modern .ct-footer .container { padding-top: 44px !important; padding-bottom: 24px !important; }
html.ct-modern .ct-footer .HomePage, html.ct-modern .ct-footer .ContentEditable { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr); gap: 36px; float: none !important; width: auto !important; }
html.ct-modern .ct-footer .ContentEditable { display: contents; }
html.ct-modern .ct-footer [class*="col-"] { float: none !important; width: auto !important; padding: 0 !important; margin: 0 !important; }
html.ct-modern .ct-footer .modtitle, html.ct-modern .ct-footer h3.ct-heading, html.ct-modern .ct-footer .ct-heading a, html.ct-modern .ct-footer .ct-heading span {
    margin: 0 0 16px !important; color: #fff !important; font: 700 17px/1.3 var(--ct-font) !important; text-transform: uppercase !important; letter-spacing: .06em; background: none !important; border: 0 !important;
}
html.ct-modern .ct-footer .modtitle::before { background: linear-gradient(var(--ct-teal), #6fd3df); }
html.ct-modern .ct-footer .modcontent ul { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; gap: 12px; }
html.ct-modern .ct-footer .modcontent li { display: flex; gap: 12px; align-items: flex-start; margin: 0 !important; color: rgba(255, 255, 255, .86); font-size: 14.5px; line-height: 1.6; background: none !important; padding: 0 !important; }
html.ct-modern .ct-footer .modcontent li em, html.ct-modern .ct-footer .modcontent li i {
    flex: 0 0 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(255, 255, 255, .1); color: #8fe3ec !important; font-size: 15px;
}
html.ct-modern .ct-footer a { color: #fff !important; }
html.ct-modern .ct-footer a:hover { color: #8fe3ec !important; }
html.ct-modern .ct-footer .section-coutting { float: none !important; width: auto !important; padding: 0 !important; margin: 0 !important; background: none !important; }
html.ct-modern .ct-footer .section-coutting * { color: rgba(255, 255, 255, .86) !important; background: transparent; }
html.ct-modern .ct-footer .section-coutting h3, html.ct-modern .ct-footer .section-coutting h4 { color: #fff !important; font: 700 17px var(--ct-font) !important; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 16px !important; }
html.ct-modern .ct-footer .coutting-right, html.ct-modern .ct-footer .coutting-wrapper, html.ct-modern .ct-footer .coutting-body { float: none !important; width: auto !important; margin: 0 !important; padding: 0 !important; background: none !important; border: 0 !important; }
html.ct-modern .ct-footer .coutting-wrapper .box-header { display: none; }
html.ct-modern .ct-footer .coutting-row { display: grid !important; gap: 8px; margin: 0 !important; padding: 0 !important; background: none !important; }
html.ct-modern .ct-footer .coutting-row article {
    display: flex; align-items: center; gap: 10px; margin: 0 !important; padding: 10px 14px !important; float: none !important; width: auto !important;
    border-radius: 10px; background: rgba(255, 255, 255, .07) !important; font-size: 14px; line-height: 1.3;
}
html.ct-modern .ct-footer .coutting-row article > span { flex: 1; }
html.ct-modern .ct-footer .coutting-row article em { flex: 0 0 auto; color: #8fe3ec !important; font-size: 14px; }
html.ct-modern .ct-footer .coutting-row article a.title { color: #fff !important; font-weight: 700; font-variant-numeric: tabular-nums; text-decoration: none !important; }
html.ct-modern .ct-footer .countingpn .module { margin: 0 !important; padding: 0 !important; background: none !important; }
html.ct-modern .ct-footer .section-coutting img { width: 18px; height: 18px; margin-right: 8px; filter: brightness(0) invert(1); opacity: .8; vertical-align: -3px; }
html.ct-modern .ct-footer .FBsocial:empty, html.ct-modern .ct-footer .FBsocial .modcontent:empty { display: none; }
html.ct-modern .ct-copy { max-width: var(--ct-max); margin: 0 auto; padding: 16px 20px 22px; border-top: 1px solid rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .62); font-size: 13px; text-align: center; }

/* ---------- inner pages (article / topic / ZLIS modules) ---------- */
html.ct-modern .ct-page { max-width: var(--ct-max); margin: 32px auto 0 !important; padding: 28px 32px !important; background: #fff; border: 1px solid var(--ct-line); border-radius: var(--ct-radius); box-shadow: var(--ct-shadow); }
html.ct-modern .ct-page .container { padding-left: 0; padding-right: 0; }

/* back-to-top button */
html.ct-modern #yt-totop, html.ct-modern .backtotop {
    right: 18px !important; bottom: 18px !important; width: 46px !important; height: 46px !important; display: grid !important; place-items: center;
    padding: 0 !important; border-radius: 14px !important; background: var(--ct-blue) !important; color: #fff !important; font-size: 0 !important;
    box-shadow: var(--ct-shadow-hover); opacity: 0; pointer-events: none; transition: opacity .2s;
}
html.ct-modern.ct-scrolled #yt-totop, html.ct-modern.ct-scrolled .backtotop { opacity: 1; pointer-events: auto; }
html.ct-modern #yt-totop i, html.ct-modern .backtotop i { font-size: 22px !important; }

/* ---------- tablet / phone ---------- */
@media (max-width: 991px) {
    html.ct-modern .ct-hero .owl-item .item { grid-template-columns: 1fr; }
    html.ct-modern .ct-hero .hero-img { aspect-ratio: 16 / 9; }
    html.ct-modern .ct-hero .desc { padding: 24px !important; }
    html.ct-modern .ct-footer .HomePage { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
    html.ct-modern .container { padding-left: 16px; padding-right: 16px; }
    html.ct-modern .ct-banner .psc-divPortlet-Content { padding: 10px 12px; }
    html.ct-modern .ct-banner img { border-radius: 10px; }
    html.ct-modern .ct-nav .navbar .container { display: block; }
    html.ct-modern .ct-nav .navbar-nav { display: block; }
    html.ct-modern .ct-nav .navbar-nav > li > a { padding: 12px 6px !important; }
    html.ct-modern .ct-nav .navbar-nav > li > a::after { display: none; }
    html.ct-modern .ct-nav .navbar-collapse.collapse:not(.in) { display: none !important; }
    /* the theme fixes .navbar at 55px: let the opened menu push the page down, on white, scrolling if long */
    html.ct-modern .ct-nav .navbar, html.ct-modern .ct-nav .top-menu, html.ct-modern .ct-nav .bg-header, html.ct-modern .ct-nav .main-menu { height: auto !important; }
    html.ct-modern .ct-nav .navbar-collapse.in { background: #fff; max-height: calc(100vh - 64px) !important; overflow-y: auto; border-top: 1px solid var(--ct-line); }
    html.ct-modern .ct-nav .dropdown-menu { min-width: 0 !important; max-width: none !important; margin: 0 0 6px !important; padding: 4px 0 4px 10px !important; border: 0 !important; border-left: 2px solid var(--ct-line) !important; border-radius: 0 !important; box-shadow: none !important; background: transparent !important; }
    html.ct-modern .ct-search .container { padding-top: 22px !important; padding-bottom: 22px !important; }
    html.ct-modern .ct-search .form { border-radius: 18px; }
    html.ct-modern .ct-search .SearchLeft { flex: 1 1 100%; }
    html.ct-modern .ct-search a.text-search { height: 44px; padding: 0 18px !important; }
    html.ct-modern .ct-search .SearchRight { flex: 1 1 100%; text-align: center; margin: 2px 0 6px !important; }
    html.ct-modern .ct-quick .features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    html.ct-modern .ct-search .SearchLeft, html.ct-modern .ct-search #txtSearch { min-width: 0; }
    html.ct-modern .ct-search #txtSearch { padding-right: 6px !important; }
    /* phone: the quick-access dock becomes a small bottom bar instead of covering the content */
    html.ct-modern ul.hanging { top: auto !important; bottom: 12px; right: 12px !important; margin: 0 !important; transform: none; flex-direction: row; gap: 6px; padding: 5px !important; }
    html.ct-modern ul.hanging li a { width: 34px; height: 34px; }
    html.ct-modern ul.hanging li a img { width: 18px !important; height: 18px !important; }
    html.ct-modern ul.hanging li a span { display: none; }
    html.ct-modern body { padding-bottom: 60px; }
    html.ct-modern #yt-totop, html.ct-modern .backtotop { bottom: 64px !important; right: 12px !important; width: 40px !important; height: 40px !important; }
    html.ct-modern .ct-page { margin: 16px 12px 0 !important; padding: 18px !important; }
}
@media print { html.ct-modern ul.hanging, html.ct-modern .ct-nav { display: none !important; } }
