﻿/* =============================================================
   SPC WEBSITE 2026 - UI LAYER
   File duy nhat cho header/menu moi + chuan hoa cac trang Gioi thieu/KGVH.
   Load sau Reset.css, Default.css, Responsive.css de co chu dich ghi de legacy.
   ============================================================= */
:root{--spc:#0069a8;--spc-dark:#004f82;--spc-soft:#eef8fd;--spc-line:#d9e8f0;--spc-text:#243f50;--spc-muted:#6e8390;--spc-max:1280px}
.spc2026-header,.spc2026-header *{box-sizing:border-box}
.spc2026-header{height:82px;width:100%;position:sticky;top:0;z-index:9999;background:linear-gradient(180deg,#f8fbfd 0,#fff 16%,#fff 86%,#eef5f8 100%);border-top:1px solid #d5e3eb;border-bottom:1px solid #b9d0dc;box-shadow:0 7px 18px rgba(0,58,91,.16);font-family:Arial,Helvetica,sans-serif}
.spc2026-header .header-shell{height:82px;width:100%;padding:0 34px 0 145px;display:flex;align-items:center;position:relative}
.spc2026-header .brand{position:absolute;left:34px;top:7px;width:84px;height:86px;text-decoration:none;z-index:4}
.spc2026-header .brand:before{content:"";position:absolute;inset:-3px -3px -5px;border-radius:14px;border:1px solid rgba(0,105,168,.15);background:linear-gradient(145deg,#fff,#eff7fb);box-shadow:0 9px 20px rgba(0,61,96,.15),inset 0 1px 0 #fff;z-index:-1;transition:.22s}
.spc2026-header .brand-inner{height:100%;display:grid;place-items:center;border-radius:11px;background:#fff;overflow:hidden}
.spc2026-header .brand img{width:74px;height:78px;max-width:none!important;object-fit:contain;transition:.22s}
.spc2026-header .brand:hover:before{box-shadow:0 0 0 3px rgba(255,255,255,.9),0 10px 24px rgba(0,61,96,.18)}
.spc2026-header .brand:hover img{transform:scale(1.025)}

/* Menu chinh */
.spc2026-header .main-nav{height:100%;margin-left:auto;display:flex;align-items:stretch;gap:3px}
.spc2026-header .nav-item{position:relative;display:flex;align-items:center}
.spc2026-header .nav-item>a{height:46px;margin:auto 1px;padding:0 13px;border-radius:9px;display:flex;align-items:center;color:var(--spc-dark)!important;font-size:13px;font-weight:700;line-height:1;letter-spacing:.15px;text-decoration:none!important;white-space:nowrap;text-transform:uppercase;transition:.18s}
.spc2026-header .nav-item:hover>a,.spc2026-header .nav-item:focus-within>a,.spc2026-header .nav-item.menu-open>a{background:linear-gradient(180deg,#f5fbfe,#eaf6fc);box-shadow:inset 0 0 0 1px #d4eaf5;color:#00659e!important;transform:translateY(-1px)}
.spc2026-header .nav-home>a{width:46px;padding:0;justify-content:center;margin-right:4px}
.spc2026-header .home-icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.spc2026-header .chev{width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg) translateY(-2px);margin-left:8px;transition:.18s}
.spc2026-header .nav-item:hover .chev,.spc2026-header .nav-item.menu-open .chev{transform:rotate(225deg) translate(-1px,-1px)}

/* Dropdown - hover CSS van hoat dong neu JS gap loi */
.spc2026-header .dropdown{position:absolute;top:82px;left:2px;min-width:270px;padding:5px 9px;background:#fff;border:1px solid #d7e5ed;border-radius:10px;box-shadow:0 18px 38px rgba(0,45,74,.20),0 3px 8px rgba(0,45,74,.08);opacity:0;visibility:hidden;transform:translateY(5px);transition:opacity .16s,visibility .16s,transform .16s;pointer-events:none;z-index:10001}
.spc2026-header .dropdown:before{content:"";position:absolute;left:0;right:0;top:-16px;height:18px;background:transparent}
.spc2026-header .nav-item.menu-open>.dropdown,.spc2026-header .nav-item.has-menu:hover>.dropdown,.spc2026-header .nav-item.has-menu:focus-within>.dropdown{opacity:1;visibility:visible;transform:none;pointer-events:auto}
.spc2026-header .dropdown a{position:relative;display:flex;align-items:center;min-height:34px;padding:6px 13px 6px 18px;border-radius:0;border-bottom:1px solid #e8f0f4;text-decoration:none!important;color:#31566d!important;font-size:13px;font-weight:400;line-height:1.25;text-transform:none;transition:.16s}
.spc2026-header .dropdown a:last-child{border-bottom:0}
.spc2026-header .dropdown a:before{content:"";position:absolute;left:7px;width:3px;height:0;border-radius:3px;background:#0877b9;transition:.16s}
.spc2026-header .dropdown a:hover{background:linear-gradient(90deg,#eaf6fc,#f8fcfe);color:#0067a5!important;padding-left:22px;box-shadow:inset 0 0 0 1px #dbeef7}
.spc2026-header .dropdown a:hover:before{height:17px}
.spc2026-header .product-parent>.dropdown{width:520px;display:grid;grid-template-columns:1fr 1fr;gap:0 12px;padding:7px 10px}
.spc2026-header .library-parent>.dropdown{left:auto;right:0}

/* Search + language */
.spc2026-header .header-tools{display:flex;align-items:center;gap:8px;margin-left:12px;padding-left:13px;border-left:1px solid #dce7ed}
.spc2026-header button{font-family:Arial,Helvetica,sans-serif}
.spc2026-header .search-trigger{width:45px;height:45px;padding:0;border:0;border-radius:10px;background:transparent;display:grid;place-items:center;cursor:pointer;color:var(--spc-dark);transition:.18s}
.spc2026-header .search-glyph{font-size:0}.spc2026-header .search-glyph:before{content:"";display:block;width:17px;height:17px;border:2px solid currentColor;border-radius:50%;box-sizing:border-box}.spc2026-header .search-glyph:after{content:"";display:block;width:8px;height:2px;background:currentColor;transform:rotate(45deg);transform-origin:left center;margin:-1px 0 0 14px;border-radius:2px}
.spc2026-header .search-trigger:hover,.spc2026-header .search-trigger.active{background:#edf7fc;color:var(--spc)}
.spc2026-header .language{position:relative}.spc2026-header .language-trigger{height:44px;min-width:96px;padding:0 12px;border:1px solid #c7dce8;border-radius:10px;background:linear-gradient(180deg,#fff,#f5f9fb);display:flex;align-items:center;justify-content:center;gap:8px;color:var(--spc-dark);cursor:pointer}
.spc2026-header .flag{width:25px;height:17px;border-radius:3px;display:grid;place-items:center;overflow:hidden;box-shadow:0 0 0 1px rgba(0,0,0,.08);font-size:16px;line-height:1}.spc2026-header .flag-vn{background:#da251d;color:#ffdf00;font-size:11px}
.spc2026-header .flag-gb{background:#174a8b}.spc2026-header .flag-la{background:linear-gradient(to bottom,#ce1126 0 25%,#002868 25% 75%,#ce1126 75%)}
.spc2026-header .lang-chev{width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg) translateY(-2px);margin-left:2px}
.spc2026-header .language-menu{position:absolute;right:0;top:54px;width:220px;padding:8px;background:#fff;border:1px solid #d6e5ed;border-radius:10px;box-shadow:0 16px 35px rgba(0,49,80,.18);opacity:0;visibility:hidden;transform:translateY(5px);transition:.18s;z-index:10002}.spc2026-header .language.open .language-menu{opacity:1;visibility:visible;transform:none}
.spc2026-header .language-menu a{display:grid;grid-template-columns:30px 1fr 16px;gap:10px;align-items:center;padding:10px;border-radius:7px;text-decoration:none!important;color:#294f67!important}.spc2026-header .language-menu a:hover,.spc2026-header .language-menu a.active{background:#edf7fc}.spc2026-header .language-menu b{font-size:13px}.spc2026-header .language-menu small{display:block;color:#8194a0;margin-top:2px}.spc2026-header .language-menu i{font-style:normal;color:var(--spc);font-weight:bold}
.spc2026-header .search-panel{position:absolute;top:82px;right:34px;width:min(650px,calc(100vw - 40px));padding:11px;background:#fff;border:1px solid #d5e5ed;border-radius:0 0 12px 12px;box-shadow:0 18px 38px rgba(0,49,80,.18);opacity:0;visibility:hidden;transform:translateY(-7px);transition:.2s;z-index:10002}.spc2026-header .search-panel.open{opacity:1;visibility:visible;transform:none}
.spc2026-header .search-form{height:49px;border:1px solid #c9dce8;border-radius:8px;display:flex;align-items:center;overflow:hidden;background:#fff}.spc2026-header .search-form>.search-glyph{margin:0 15px}.spc2026-header .search-panel input{height:100%;flex:1;border:0!important;outline:0;font-size:14px;color:#34556a;min-width:0;padding:0;background:#fff}.spc2026-header .search-panel button{height:100%;border:0;background:linear-gradient(135deg,var(--spc-dark),var(--spc));color:#fff;padding:0 25px;font-weight:700;cursor:pointer}
.spc2026-header .mobile-toggle{display:none}

/* ===== Legacy isolation / khung noi dung chung ===== */
.pagecontain{max-width:none!important;width:100%!important}
#master_content{width:100%;min-height:1px}
#master_content>.master_content_center{margin-top:0!important}
.spc-home-slider-viewport,#slideFull{margin-top:0!important}

/* ===== Gioi thieu ===== */
.spc-intro-page{width:calc(100% - 48px)!important;max-width:var(--spc-max)!important;margin:0 auto 34px!important;float:none!important;box-sizing:border-box}
.spc-intro-page .mt_title_ct_c{width:100%!important;margin:0!important;padding:26px 0 14px!important;float:none!important;box-sizing:border-box}
.spc-intro-page .space_ct{display:none!important}
.spc-intro-page .td_ct_name{width:100%!important;float:none!important;margin:0!important;padding:0!important}
.spc-intro-page .td_ct_name ul{display:flex;flex-wrap:wrap;gap:9px;align-items:center;margin:0!important;padding:0!important}
.spc-intro-page .td_ct_name li{float:none!important;margin:0!important;padding:0!important;color:#9aabb5;font-size:13px}
.spc-intro-page .td_ct_name a{color:#39718f!important;text-decoration:none!important}.spc-intro-page .td_ct_name a:hover{color:var(--spc)!important}
.spc-intro-page .spc-intro-content,.spc-intro-page .mt_content_ct_c{display:block!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important;float:none!important;box-sizing:border-box}
.spc-intro-page .spc-intro-main,.spc-intro-page .ct_left{float:none!important;clear:both!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
.spc-intro-page .tt_gt_List{width:100%!important;max-width:none!important;margin:0!important;padding:0!important;box-sizing:border-box}
.spc-intro-page .chiase_ud{float:none!important;width:100%!important;min-height:32px;margin:0 0 12px!important;padding:0!important;text-align:right}
.spc-intro-page .tt_gt_list_detail{display:block!important;width:100%!important;margin:0 0 24px!important;padding:0!important;box-sizing:border-box}
.spc-intro-page .tt_gt_list_detail>div{width:100%;box-sizing:border-box}
.spc-intro-page .tt_gt_list_detail_icon{display:none!important}
.spc-intro-page .tt_gt_list_detail_td{position:relative;width:100%!important;float:none!important;margin:0 0 16px!important;padding:0 0 11px!important;color:var(--spc-dark)!important;font-size:18px!important;font-weight:700!important;line-height:1.35!important;text-transform:uppercase;border-bottom:1px solid var(--spc-line)!important}
.spc-intro-page .tt_gt_list_detail_td:after{content:"";position:absolute;left:0;bottom:-1px;width:62px;height:3px;border-radius:3px;background:linear-gradient(90deg,var(--spc),#55add7)}
.spc-intro-page .tt_gt_list_detail_nd{width:100%!important;float:none!important;margin:0!important;padding:0!important;color:var(--spc-text)!important;font-size:15px!important;line-height:1.75!important;text-align:left!important;overflow-wrap:anywhere}
.spc-intro-page .tt_gt_list_detail_nd p{margin:0 0 13px!important;line-height:1.75!important}
.spc-intro-page .tt_gt_list_detail_nd img{display:block;max-width:100%!important;height:auto!important;margin:16px auto!important}
.spc-intro-page .tt_gt_list_detail_nd table{width:100%!important;max-width:100%!important}
.spc-intro-page .tt_gt_list_detail_nd h1,.spc-intro-page .tt_gt_list_detail_nd h2,.spc-intro-page .tt_gt_list_detail_nd h3,.spc-intro-page .tt_gt_list_detail_nd strong{line-height:1.45}

/* ===== Khong gian Van hoa HCM ===== */

.spc-kgvh-page .tt_gt_List{background:#fff}
.spc-kgvh-page #kgvh_ct{display:block!important;width:100%!important;max-width:none!important;margin:0 0 20px!important;padding:0!important;float:none!important;overflow:hidden!important;border-radius:12px;box-shadow:0 8px 24px rgba(0,66,104,.10)}
.spc-kgvh-page .kgvh_ct_img{display:block!important;width:100%!important;max-width:100%!important;height:auto!important;margin:0 auto!important;padding:0!important;border-radius:12px!important;box-shadow:none!important}
.spc-kgvh-page .spc-kgvh-frame{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:0 auto!important;padding:0!important;border:0!important;overflow:hidden!important}

/* Footer nhe hon va dong bo */
.bottom{border-top:0!important}.bottom a{transition:color .15s}.bottom a:hover{color:#ffef65!important}

@media(max-width:1450px){.spc2026-header .header-shell{padding-left:130px;padding-right:22px}.spc2026-header .brand{left:25px}.spc2026-header .nav-item>a{padding-left:10px;padding-right:10px;font-size:12px}.spc2026-header .nav-home>a{width:42px;padding:0}.spc2026-header .main-nav{gap:0}.spc2026-header .header-tools{margin-left:7px;padding-left:8px}.spc2026-header .search-panel{right:22px}}
@media(max-width:1080px){.spc2026-header,.spc2026-header .header-shell{height:72px}.spc2026-header .header-shell{padding-left:100px;padding-right:18px}.spc2026-header .brand{left:16px;top:6px;width:72px;height:76px}.spc2026-header .brand img{width:63px;height:67px}.spc2026-header .mobile-toggle{display:flex;margin-left:auto;width:44px;height:44px;border:0;background:transparent;flex-direction:column;justify-content:center;align-items:center;gap:5px;cursor:pointer}.spc2026-header .mobile-toggle span{display:block;width:25px;height:2px;background:var(--spc-dark)}.spc2026-header .main-nav{display:none;position:absolute;left:0;right:0;top:72px;height:auto;max-height:calc(100vh - 72px);overflow:auto;background:#fff;padding:12px 20px;box-shadow:0 20px 35px rgba(0,49,80,.14);flex-direction:column;align-items:stretch}.spc2026-header .main-nav.open{display:flex}.spc2026-header .nav-item{display:block}.spc2026-header .nav-item>a{height:auto;margin:0;padding:14px 10px;justify-content:space-between}.spc2026-header .nav-home>a{width:100%;justify-content:flex-start}.spc2026-header .nav-home>a:after{content:"Trang chủ";margin-left:12px}.spc2026-header .dropdown{position:static;display:none;min-width:0;width:100%!important;margin:0 0 7px;padding:4px 8px 8px;border:0;border-radius:8px;box-shadow:none;opacity:1;visibility:visible;transform:none;pointer-events:auto;background:#f7fbfd}.spc2026-header .dropdown:before{display:none}.spc2026-header .nav-item.has-menu:hover>.dropdown,.spc2026-header .nav-item.has-menu:focus-within>.dropdown{display:none}.spc2026-header .nav-item.menu-open>.dropdown{display:block}.spc2026-header .product-parent>.dropdown{grid-template-columns:1fr}.spc2026-header .header-tools{margin-left:5px}.spc2026-header .search-panel{top:72px;right:20px}}
@media(max-width:767px){.spc-intro-page{width:calc(100% - 28px)!important;margin-bottom:24px!important}.spc-intro-page .mt_title_ct_c{padding-top:20px!important}.spc-intro-page .tt_gt_list_detail_td{font-size:16px!important}.spc-intro-page .tt_gt_list_detail_nd{font-size:14px!important;line-height:1.7!important}}
@media(max-width:560px){.spc2026-header .header-shell{padding:0 12px 0 88px}.spc2026-header .brand{left:10px}.spc2026-header .language-trigger{min-width:75px}.spc2026-header .lang-code{font-size:12px}.spc2026-header .search-trigger{width:42px}.spc2026-header .search-panel{left:10px;right:10px;width:auto}.spc2026-header .search-panel button{padding:0 14px;font-size:11px}}

/* =============================================================
   SPC UI 2026 - CONTENT REFRESH / 26-09-2026
   Muc tieu: mot lop CSS bao tri duy nhat cho noi dung legacy.
   KHONG sua class cu trong Default.css; moi override moi dat tai day.
   ============================================================= */

/* Container noi dung: can giua that su, tranh width/float legacy */
.spc-modern-page,.spc-intro-page{width:calc(100% - 64px)!important;max-width:1240px!important;margin-left:auto!important;margin-right:auto!important;float:none!important;clear:both!important}
.spc-intro-page .tt_gt_List{max-width:1120px!important;margin-left:auto!important;margin-right:auto!important}
.spc-intro-page .tt_gt_list_detail_nd{max-width:1120px!important;margin-left:auto!important;margin-right:auto!important}
.spc-kgvh-page .tt_gt_List{max-width:1280px!important}
.spc-kgvh-page #kgvh_ct,.spc-kgvh-page .spc-kgvh-frame{margin-left:auto!important;margin-right:auto!important}

/* Breadcrumb thong nhat */
.spc-modern-page .mt_title_ct_c{width:100%!important;margin:0!important;padding:26px 6px 16px!important;float:none!important;box-sizing:border-box}
.spc-modern-page .space_ct{display:none!important}.spc-modern-page .td_ct_name{float:none!important;width:100%!important;margin:0!important}
.spc-modern-page .td_ct_name ul{display:flex;gap:10px;flex-wrap:wrap;margin:0!important;padding:0!important}.spc-modern-page .td_ct_name li{float:none!important;margin:0!important;color:#9badb8}.spc-modern-page .td_ct_name a{color:#39718f!important;text-decoration:none!important}

/* ===== SAN PHAM: tab + search + card moi ===== */
.spc-products-page .bg-img{float:none!important;width:100%!important;margin:10px 0 18px!important;padding:0!important}
.spc-products-page .bg-img ul{display:flex!important;justify-content:center;gap:10px;flex-wrap:wrap;margin:0!important;padding:0!important}
.spc-products-page .bg-img li{float:none!important;margin:0!important}.spc-products-page .bg-img a{display:flex!important;align-items:center;min-height:42px;padding:0 18px!important;border:1px solid #cce3ef;border-radius:22px;background:#f7fbfd;color:#075f94!important;font-size:13px;font-weight:700;text-decoration:none!important;transition:.18s}.spc-products-page .bg-img a:hover{background:#0878b8;color:#fff!important;border-color:#0878b8;box-shadow:0 7px 18px rgba(0,105,168,.18);transform:translateY(-1px)}
.spc-product-tools{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 6px 22px;padding:16px 18px;border:1px solid #e1edf3;border-radius:14px;background:#fff;box-shadow:0 6px 22px rgba(0,57,90,.06)}
.spc-product-search{width:min(520px,100%);height:44px;display:flex;align-items:center;border:1px solid #c9e0ec;border-radius:10px;background:#fafdff;overflow:hidden}.spc-product-search span{font-size:25px;color:#177aad;padding:0 12px}.spc-product-search input{width:100%;height:100%;border:0!important;outline:0!important;background:transparent;padding:0 14px 0 0;font-size:14px}.spc-product-hint{color:#718793;font-size:13px}
.spc-products-page .mt_content_ct_c,.spc-product-special .mt_content_ct_c{width:100%!important;margin:0!important;float:none!important}
.spc-products-page .LV_Frame,.spc-product-special .LV_Frame{width:100%!important;margin:0 0 30px!important;padding:0!important;float:none!important}
.spc-products-page .C_Name{height:auto!important;min-height:48px;margin:0 6px 14px!important;padding:0 4px 10px!important;border-bottom:1px solid #dce9ef!important;background:none!important;display:flex;align-items:center;justify-content:space-between}
.spc-products-page .C_Name>a:first-child{font-size:17px!important;font-weight:700!important;color:#075f94!important;text-decoration:none!important}.spc-products-page .C_Name .Xemtatca{font-size:12px!important;color:#718793!important}
.spc-products-page .sp_List,.spc-product-special .sp_List{width:100%!important;overflow:visible!important}.spc-products-page .sp_List_cl,.spc-product-special .sp_List_cl{float:none!important;display:inline-block!important;vertical-align:top;width:calc(20% - 14px)!important;min-height:270px!important;margin:7px!important;border:1px solid #e0ebf1!important;border-radius:14px!important;background:#fff!important;box-shadow:0 5px 18px rgba(0,54,85,.06);overflow:hidden;transition:.18s}.spc-products-page .sp_List_cl:hover,.spc-product-special .sp_List_cl:hover{transform:translateY(-3px);box-shadow:0 10px 25px rgba(0,75,117,.12);border-color:#bcddeb!important}.spc-products-page .sp_List_cl_img,.spc-product-special .sp_List_cl_img{height:205px!important;padding:14px!important;box-sizing:border-box}.spc-products-page .sp_List_cl_img img,.spc-product-special .sp_List_cl_img img{width:100%!important;height:100%!important;object-fit:contain}.spc-products-page .sp_List_cl_td,.spc-product-special .sp_List_cl_td{padding:10px 12px 16px!important;text-align:center!important}.spc-products-page .sp_List_cl_td a,.spc-product-special .sp_List_cl_td a{font-weight:700!important;color:#075f94!important;text-decoration:none!important}
/* San pham moi/khuyen mai: bo heading tung nhom, hien truc tiep cac san pham dung nhu trang loc */
.spc-product-special .C_Name{display:none!important}.spc-product-special .LV_Frame{display:contents!important}

/* ===== TIN TUC + BAC SI CAY TRONG: bo sidebar danh muc cu ===== */
.spc-news-page .mt_content_ct_c,.spc-doctor-page .mt_content_ct_c{display:block!important;width:100%!important;margin:0!important}.spc-news-page .ct_left,.spc-doctor-page .ct_left{float:none!important;width:100%!important;margin:0!important}
.spc-news-page .LV_Frame,.spc-doctor-page .LV_Frame{width:100%!important;margin:0 0 32px!important;padding:0!important;float:none!important}.spc-news-page .C_Name,.spc-doctor-page .C_Name{height:auto!important;min-height:46px;margin:0 0 15px!important;padding:0 4px 10px!important;background:none!important;border-bottom:1px solid #dbe8ee!important;display:flex;justify-content:space-between;align-items:center}.spc-news-page .C_Name>a:first-child,.spc-doctor-page .C_Name>a:first-child{font-size:17px!important;font-weight:700!important;color:#075f94!important;text-decoration:none!important}.spc-news-page .tt_List,.spc-doctor-page .tt_List{width:100%!important}.spc-news-page .tt_List_cl,.spc-doctor-page .tt_List_cl{float:none!important;display:inline-block!important;vertical-align:top;width:calc(33.333% - 18px)!important;margin:9px!important}.spc-news-page .tt_List_cl_ct,.spc-doctor-page .tt_List_cl_ct{height:100%;min-height:350px;padding:0 0 16px!important;border:1px solid #e0ebf1;border-radius:14px;background:#fff;overflow:hidden;box-shadow:0 5px 18px rgba(0,54,85,.06)}.spc-news-page .tt_List_cl_img,.spc-doctor-page .tt_List_cl_img{width:100%!important;height:190px!important;margin:0!important;overflow:hidden}.spc-news-page .tt_List_cl_img img,.spc-doctor-page .tt_List_cl_img img{width:100%!important;height:100%!important;object-fit:cover}.spc-news-page .tt_List_cl_name,.spc-doctor-page .tt_List_cl_name{padding:14px 16px 7px!important;line-height:1.45!important}.spc-news-page .tt_List_cl_short,.spc-doctor-page .tt_List_cl_short{padding:0 16px!important;line-height:1.6!important;color:#526b79}.spc-news-page .tt_List_cl_ctiet,.spc-doctor-page .tt_List_cl_ctiet{padding:10px 16px 0!important}

@media(max-width:980px){.spc-products-page .sp_List_cl,.spc-product-special .sp_List_cl{width:calc(33.333% - 14px)!important}.spc-news-page .tt_List_cl,.spc-doctor-page .tt_List_cl{width:calc(50% - 18px)!important}.spc-product-tools{align-items:stretch;flex-direction:column}.spc-product-hint{display:none}}
@media(max-width:620px){.spc-modern-page,.spc-intro-page{width:calc(100% - 28px)!important}.spc-products-page .sp_List_cl,.spc-product-special .sp_List_cl{width:calc(50% - 10px)!important;margin:5px!important}.spc-news-page .tt_List_cl,.spc-doctor-page .tt_List_cl{display:block!important;width:100%!important;margin:10px 0!important}.spc-products-page .sp_List_cl_img,.spc-product-special .sp_List_cl_img{height:165px!important}}


/* =============================================================
   SPC UI 2026 R2 - ALIGNMENT + CATEGORY TABS + LAZY REVEAL
   26/09/2026. Dat CUOI FILE de uu tien hon toan bo CSS legacy.
   ============================================================= */
/* FIX GOC: .master_content_center legacy co margin-top:6.8em va display:inline-block.
   Day la nguyen nhan noi dung xa menu va trong nhu bi lech trai. */
#master_content{width:100%!important;overflow:visible!important}
#master_content>.master_content_center,
#master_content .master_content_center{box-sizing:border-box;float:none!important;clear:both!important;display:block!important;width:calc(100% - 48px)!important;max-width:1240px!important;margin:0 auto 36px!important;padding:0!important}
.spc-modern-page,.spc-intro-page{box-sizing:border-box!important;display:block!important;width:calc(100% - 48px)!important;max-width:1240px!important;margin:0 auto 36px!important;padding:0!important;float:none!important}
.spc-modern-page .mt_title_ct_c,.spc-intro-page .mt_title_ct_c{padding-top:20px!important}
.spc-modern-page .mt_content_ct_c,.spc-intro-page .mt_content_ct_c{width:100%!important;max-width:100%!important;margin:0 auto!important;padding:0!important;float:none!important;box-sizing:border-box!important}

/* Gioi thieu/detail: content column centered */
.spc-intro-page .tt_gt_List,.spc-intro-page .tt_gt_list_detail,.spc-intro-page .tt_gt_list_detail_nd{display:block!important;float:none!important;width:100%!important;max-width:1120px!important;margin-left:auto!important;margin-right:auto!important;box-sizing:border-box!important}
.spc-intro-page .tt_gt_list_detail_nd{line-height:1.72!important}

/* KGVH: banner + iframe cung mot truc giua, iframe khong bi inline gap */
.spc-kgvh-page{max-width:1280px!important}
.spc-kgvh-page .tt_gt_List{display:block!important;width:100%!important;max-width:1280px!important;margin:0 auto!important}
.spc-kgvh-page #kgvh_ct{display:block!important;width:100%!important;margin:0 auto 18px!important}
.spc-kgvh-page .kgvh_ct_img{display:block!important;width:100%!important;height:auto!important;margin:0 auto!important}
.spc-kgvh-page .spc-kgvh-frame{display:block!important;width:100%!important;max-width:1280px!important;margin:0 auto!important;border:0!important}

/* Khoang cach sau sticky header: khong dung margin 6.8em cua giao dien cu */
.spc-products-page,.spc-product-special,.spc-news-page,.spc-doctor-page,.spc-media-page{margin-top:0!important}

/* Tabs category dung chung */
.spc-category-tabs{display:flex;align-items:center;gap:8px;overflow-x:auto;padding:2px 2px 12px;margin:0 0 18px;scrollbar-width:thin}
.spc-category-tab{flex:0 0 auto;border:1px solid #d4e5ee;background:#fff;color:#315b72;border-radius:999px;padding:10px 16px;font:600 13px/1.2 Arial,Helvetica,sans-serif;cursor:pointer;transition:.18s;box-shadow:0 2px 8px rgba(0,60,95,.04)}
.spc-category-tab:hover{border-color:#8fc5df;color:#006aa6;background:#f4fbfe}
.spc-category-tab.active{border-color:#0878b8;background:#0878b8;color:#fff;box-shadow:0 6px 16px rgba(0,105,168,.18)}

/* Product tools - nhe, gon, khong con khung tho */
.spc-products-page .bg-img{margin:2px 0 14px!important}
.spc-products-page .bg-img a{min-height:38px!important;padding:0 15px!important;border-radius:10px!important;background:#fff!important;box-shadow:none!important}
.spc-product-tools{min-height:54px;margin:0 0 20px!important;padding:6px!important;border:0!important;border-radius:14px!important;background:#f4f9fc!important;box-shadow:none!important}
.spc-product-search{width:min(520px,100%)!important;height:42px!important;border:1px solid #d7e6ee!important;border-radius:11px!important;background:#fff!important;box-shadow:0 2px 8px rgba(0,55,85,.04)}
.spc-product-search span{font-size:20px!important;padding:0 10px 0 13px!important}.spc-product-search input{font-size:13px!important;color:#274c61!important}
.spc-product-hint{padding-right:12px;color:#8296a2!important;font-size:12px!important}
.spc-products-page .C_Name{display:none!important}
.spc-products-page .LV_Frame{display:none!important;margin:0!important}.spc-products-page .LV_Frame.spc-active-group{display:block!important}
.spc-products-page .sp_List{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px!important;width:100%!important}
.spc-products-page .sp_List_cl,.spc-product-special .sp_List_cl{box-sizing:border-box!important;display:flex!important;flex-direction:column!important;width:100%!important;min-width:0!important;min-height:310px!important;height:auto!important;margin:0!important;padding:0!important;float:none!important;vertical-align:initial!important;overflow:hidden!important;border:1px solid #e0ebf1!important;border-radius:14px!important;background:#fff!important}
.spc-products-page .sp_List_cl[style*="display: none"],.spc-product-special .sp_List_cl[style*="display: none"]{display:none!important}
.spc-products-page .sp_List_cl_img,.spc-product-special .sp_List_cl_img{box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:center!important;float:none!important;width:100%!important;height:225px!important;margin:0!important;padding:18px 18px 8px!important;overflow:hidden!important}
.spc-products-page .sp_List_cl_img a,.spc-product-special .sp_List_cl_img a,.spc-products-page .sp_List_cl_img figure,.spc-product-special .sp_List_cl_img figure{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;height:100%!important;margin:0!important;padding:0!important}
.spc-products-page .sp_List_cl_img img,.spc-product-special .sp_List_cl_img img{display:block!important;max-width:100%!important;max-height:100%!important;width:auto!important;height:auto!important;object-fit:contain!important;margin:auto!important}
.spc-products-page .sp_List_cl_td,.spc-product-special .sp_List_cl_td{box-sizing:border-box!important;display:flex!important;align-items:flex-start!important;justify-content:center!important;float:none!important;width:100%!important;min-height:64px!important;margin:0!important;padding:12px 14px 16px!important;text-align:center!important;border:0!important;line-height:1.4!important}
.spc-products-page .sp_List_cl_td a,.spc-product-special .sp_List_cl_td a{display:block!important;width:100%!important;overflow-wrap:anywhere!important;font-size:13px!important;line-height:1.4!important;text-transform:none!important}
.spc-lazy-sentinel{height:2px;width:100%;grid-column:1/-1}

/* News / Doctor: cung container, category tab, cards deu */
/* 08/10/2026 FIX: shared toolbar pages must not hide server-bound DB groups. Legacy JS used .spc-active-group; shared toolbar no longer depends on that class. */
.spc-news-page .LV_Frame,.spc-doctor-page .LV_Frame{display:block!important}.spc-news-page .LV_Frame.spc-active-group,.spc-doctor-page .LV_Frame.spc-active-group{display:block!important}

.spc-news-page .tt_List,.spc-doctor-page .tt_List{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px!important}
.spc-news-page .tt_List_cl,.spc-doctor-page .tt_List_cl{display:block!important;width:100%!important;height:auto!important;margin:0!important;padding:0!important;float:none!important}
.spc-news-page .tt_List_cl_ct,.spc-doctor-page .tt_List_cl_ct{display:flex!important;flex-direction:column!important;min-height:365px!important;height:100%!important}
.spc-news-page .tt_List_cl_img,.spc-doctor-page .tt_List_cl_img{float:none!important;height:200px!important;padding:0!important}
.spc-news-page .tt_List_cl_name,.spc-doctor-page .tt_List_cl_name{margin:0!important}.spc-news-page .tt_List_cl_short,.spc-doctor-page .tt_List_cl_short{flex:1}

/* Thu vien/media: bo thanh category xanh cu, dung tab + grid */
.spc-media-page .C_Name{display:none!important}.spc-media-page .LV_Frame{display:none!important;width:100%!important;margin:0!important;padding:0!important;float:none!important}.spc-media-page .LV_Frame.spc-active-group{display:block!important}
.spc-media-page .tt_List_video{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px!important;width:100%!important}
.spc-media-page .tt_List_video_cl{box-sizing:border-box!important;width:100%!important;height:auto!important;margin:0!important;padding:10px!important;float:none!important;border:1px solid #e0ebf1!important;border-radius:14px!important;background:#fff!important;box-shadow:0 5px 18px rgba(0,54,85,.06)}
.spc-media-page .tt_List_video_cl_ct{width:100%!important}.spc-media-page iframe{display:block!important;width:100%!important;aspect-ratio:16/9;height:auto!important;border-radius:9px!important}

@media(max-width:980px){.spc-products-page .sp_List{grid-template-columns:repeat(3,minmax(0,1fr))}.spc-news-page .tt_List,.spc-doctor-page .tt_List{grid-template-columns:repeat(2,minmax(0,1fr))}.spc-media-page .tt_List_video{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){#master_content>.master_content_center,#master_content .master_content_center,.spc-modern-page,.spc-intro-page{width:calc(100% - 24px)!important}.spc-products-page .sp_List{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px!important}.spc-news-page .tt_List,.spc-doctor-page .tt_List,.spc-media-page .tt_List_video{grid-template-columns:1fr}.spc-products-page .sp_List_cl_img,.spc-product-special .sp_List_cl_img{height:180px!important}.spc-product-hint{display:none!important}}

/* =============================================================
   SPC UI 2026 R11 - CANONICAL LAYOUT
   Baseline: R4 UTF-8 / data-binding unchanged.
   Maintenance rule: all final 1280/layout overrides live in this block only.
   ============================================================= */
:root{--spc-max:1280px}

/* 1. Header: inner shell shares the same 1280 axis as page content. */
.spc2026-header .header-shell{
  width:min(1280px,calc(100% - 32px));max-width:1280px;margin:0 auto;
  padding:0 0 0 112px;
}
.spc2026-header .brand{left:0}
.spc2026-header .search-panel{right:0}

/* 2. Master/content axis: desktop 1280, responsive gutters only when viewport is smaller. */
#master_content{width:100%!important;max-width:none!important;margin:0!important;padding:0!important;overflow:visible!important}
#master_content>.master_content_center,
#master_content .master_content_center,
.spc-modern-page,.spc-intro-page{
  box-sizing:border-box!important;display:block!important;float:none!important;clear:both!important;
  width:min(1280px,calc(100% - 32px))!important;max-width:1280px!important;
  margin-left:auto!important;margin-right:auto!important;padding-left:0!important;padding-right:0!important;
}
.spc-modern-page .mt_title_ct_c,.spc-intro-page .mt_title_ct_c,
.spc-modern-page .mt_content_ct_c,.spc-intro-page .mt_content_ct_c{
  box-sizing:border-box!important;width:100%!important;max-width:100%!important;margin-left:auto!important;margin-right:auto!important;
}

/* 3. Introduction/detail: use more of the 1280 canvas, but retain readable text measure. */
.spc-intro-page:not(.spc-kgvh-page) .spc-intro-content{
  padding:18px 28px 28px!important;border:1px solid #dfeaf0!important;border-top:5px solid #0699c7!important;border-radius:14px!important;
  background:#fff!important;box-shadow:0 8px 24px rgba(0,66,104,.07)!important;
}
.spc-intro-page:not(.spc-kgvh-page) .tt_gt_List,
.spc-intro-page:not(.spc-kgvh-page) .tt_gt_list_detail,
.spc-intro-page:not(.spc-kgvh-page) .tt_gt_list_detail_nd{max-width:1180px!important}

/* 4. KGVH: banner + embedded content are exactly the same centered 1280 viewport. */
.spc-kgvh-page,.spc-kgvh-page .spc-intro-content,.spc-kgvh-page .spc-intro-main,
.spc-kgvh-page .tt_gt_List,.spc-kgvh-page #kgvh_ct{
  box-sizing:border-box!important;width:100%!important;max-width:1280px!important;
  margin-left:auto!important;margin-right:auto!important;padding-left:0!important;padding-right:0!important;
}
.spc-kgvh-page .spc-intro-content{padding:0!important;border:0!important;box-shadow:none!important;background:transparent!important}
.spc-kgvh-page #kgvh_ct{margin-bottom:12px!important;overflow:hidden!important;border:1px solid #dce8ee!important;border-radius:12px!important;box-shadow:0 7px 20px rgba(0,66,104,.08)!important}
.spc-kgvh-page .kgvh_ct_img{display:block!important;width:100%!important;max-width:100%!important;height:auto!important;margin:0!important;border-radius:11px!important}
.spc-kgvh-page .spc-kgvh-frame{display:block!important;position:static!important;width:100%!important;min-width:0!important;max-width:1280px!important;margin:0!important;padding:0!important;border:0!important;background:#fff!important}

/* 5. Product list: no outer frame; only category tabs, search and cards. */
.spc-products-page,.spc-products-page .mt_content_ct_c{border:0!important;box-shadow:none!important;background:transparent!important}
.spc-products-page .bg-img{display:none!important} /* New/Promotion/Urban top shortcuts intentionally hidden. */
.spc-products-page .sp_List>table,.spc-products-page .sp_List>table>tbody,.spc-products-page .sp_List>table>tbody>tr,
.spc-product-special .sp_List>table,.spc-product-special .sp_List>table>tbody,.spc-product-special .sp_List>table>tbody>tr{display:contents!important}
.spc-products-page .sp_List>span,.spc-products-page .sp_List>div[id*="dtList"],.spc-product-special .sp_List>span[id*="dtList"],.spc-product-special .sp_List>div[id*="dtList"]{display:contents!important}
.spc-products-page .sp_List .sp_List_cl,.spc-product-special .sp_List .sp_List_cl{width:auto!important;min-width:0!important;max-width:none!important}
.spc-products-page .sp_List_cl_img{position:relative!important}
.spc-new-badge{position:absolute!important;z-index:3!important;top:12px!important;right:12px!important;display:flex!important;align-items:center!important;justify-content:center!important;min-width:44px!important;height:26px!important;padding:0 10px!important;border-radius:999px!important;background:#e53935!important;color:#fff!important;font-size:11px!important;font-weight:700!important;letter-spacing:.5px!important;box-shadow:0 5px 14px rgba(229,57,53,.25)!important;animation:spcNewPulse 1.35s ease-in-out infinite!important}
@keyframes spcNewPulse{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-3px) scale(1.06)}}
@media(prefers-reduced-motion:reduce){.spc-new-badge{animation:none!important}}

/* 6. Responsive gutters. Never crop the KGVH sides. */
@media(max-width:1312px){
  .spc2026-header .header-shell,
  #master_content>.master_content_center,#master_content .master_content_center,
  .spc-modern-page,.spc-intro-page{width:calc(100% - 24px)!important}
}
@media(max-width:767px){
  .spc2026-header .header-shell{width:100%!important;padding:0 12px 0 88px}
  .spc2026-header .brand{left:10px}
  #master_content>.master_content_center,#master_content .master_content_center,
  .spc-modern-page,.spc-intro-page{width:calc(100% - 20px)!important}
  .spc-intro-page:not(.spc-kgvh-page) .spc-intro-content{padding:14px 16px 20px!important}
  .spc-kgvh-page .spc-kgvh-frame{}
}

/* =============================================================
   SPC UI 2026 R13 - authoritative final overrides
   Keep this as the ONLY final correction block.
   ============================================================= */

/* Search: stable geometry, no emoji/font-dependent magnifier. */
.spc2026-header .search-trigger{
  display:flex!important;align-items:center!important;justify-content:center!important;
  flex:0 0 46px!important;width:46px!important;height:46px!important;margin:0!important;padding:0!important;
}
.spc2026-header .search-glyph{
  display:block!important;position:relative!important;width:22px!important;height:22px!important;
  margin:0!important;padding:0!important;font-size:0!important;line-height:0!important;color:#00679f!important;
  top:auto!important;left:auto!important;transform:none!important;flex:0 0 22px!important;
}
.spc2026-header .search-glyph:before{
  content:""!important;position:absolute!important;left:1px!important;top:1px!important;
  width:14px!important;height:14px!important;border:2px solid currentColor!important;border-radius:50%!important;
  box-sizing:border-box!important;background:transparent!important;
}
.spc2026-header .search-glyph:after{
  content:""!important;position:absolute!important;left:14px!important;top:15px!important;
  width:8px!important;height:2px!important;margin:0!important;background:currentColor!important;border:0!important;
  border-radius:2px!important;transform:rotate(45deg)!important;transform-origin:left center!important;
}
.spc2026-header .header-tools{align-items:center!important;padding-right:0!important}
.spc2026-header .search-panel{
  right:0!important;width:min(640px,calc(100vw - 32px))!important;padding:10px!important;
  box-sizing:border-box!important;
}
.spc2026-header .search-form{height:48px!important;display:flex!important;align-items:center!important}
.spc2026-header .search-form>.search-glyph{margin:0 14px 0 4px!important}
.spc2026-header .search-panel input{min-width:0!important;padding:0 8px 0 0!important;line-height:48px!important}
.spc2026-header .search-panel button{flex:0 0 110px!important;padding:0 16px!important}

/* KGVH: fixed fallback reduced by another 150px; postMessage auto-height still overrides it when available. */
.spc-kgvh-page .spc-kgvh-frame{
  display:block!important;width:100%!important;max-width:1280px!important;height:1020px!important;
  min-height:0!important;margin:0 auto!important;padding:0!important;border:0!important;background:#fff!important;
}

/* Share: deliberately compact. Facebook + copy-link are the universal actions. */
.chiase_ud.spc-sharebar{
  display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:7px!important;
  width:100%!important;min-height:34px!important;margin:0 0 14px!important;padding:0!important;
  float:none!important;text-align:right!important;
}
.spc-share-label{font:400 12px/1 Arial,Helvetica,sans-serif!important;color:#738896!important;margin-right:2px!important}
.spc-share-btn{
  box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
  gap:7px!important;height:34px!important;padding:0 13px!important;border:1px solid #d3e2ea!important;border-radius:17px!important;
  background:#fff!important;color:#075f94!important;font:600 12px/1 Arial,Helvetica,sans-serif!important;
  text-decoration:none!important;cursor:pointer!important;box-shadow:none!important;transition:.15s ease!important;
}
.spc-share-btn:before{display:inline-flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important}
.spc-share-facebook{background:#1877f2!important;border-color:#1877f2!important;color:#fff!important}
.spc-share-facebook:before{content:"f"!important;width:18px!important;height:18px!important;border-radius:50%!important;background:#fff!important;color:#1877f2!important;font:bold 14px/18px Arial!important}
.spc-share-copy:before{content:""!important;width:15px!important;height:15px!important;border:1.7px solid currentColor!important;border-radius:4px!important;box-shadow:4px -4px 0 -2px #fff,4px -4px 0 -0.3px currentColor!important}
.spc-share-btn:hover{transform:translateY(-1px)!important;box-shadow:0 4px 12px rgba(0,73,115,.12)!important}

@media(max-width:767px){
  .spc2026-header .search-panel{left:10px!important;right:10px!important;width:auto!important}
  .spc2026-header .search-panel button{flex-basis:96px!important;padding:0 10px!important;font-size:11px!important}
  .spc-kgvh-page .spc-kgvh-frame{height:1020px!important}
  .chiase_ud.spc-sharebar{justify-content:flex-start!important;flex-wrap:wrap!important}
}

/* =============================================================
   SPC UI 2026 R14 - MENU PROTOTYPE V12 RESTORE / SINGLE FINAL OVERRIDE
   Scope: header navigation, language dropdown, search panel only.
   Keep this as the final authoritative menu block.
   ============================================================= */
.spc2026-header .header-shell{
  width:min(1280px,calc(100% - 32px))!important;max-width:1280px!important;
  margin:0 auto!important;padding:0 0 0 112px!important;
}
.spc2026-header .brand{left:0!important}

/* Parent menu: restore V12 hover treatment + visible rotating chevron. */
.spc2026-header .nav-item>a{position:relative!important}
.spc2026-header .nav-item>a:before{content:"";position:absolute;left:12px;right:12px;bottom:0;height:3px;background:#0877b9;border-radius:999px;transform:scaleX(0);transform-origin:center;transition:transform .2s ease}
.spc2026-header .nav-item:hover>a:before,.spc2026-header .nav-item.menu-open>a:before{transform:scaleX(1)}
.spc2026-header .chev{display:inline-block!important;flex:0 0 auto;width:6px!important;height:6px!important;margin-left:8px!important;border:0!important;border-right:1.5px solid currentColor!important;border-bottom:1.5px solid currentColor!important;transform:rotate(45deg) translateY(-2px)!important;transition:transform .18s ease!important}
.spc2026-header .nav-item:hover .chev,.spc2026-header .nav-item:focus-within .chev,.spc2026-header .nav-item.menu-open .chev{transform:rotate(225deg) translate(-1px,-1px)!important}

/* Compact language dropdown. */
.spc2026-header .language-menu{top:50px!important;width:206px!important;padding:6px!important;border-radius:10px!important}
.spc2026-header .language-menu a{grid-template-columns:28px 1fr 14px!important;gap:8px!important;min-height:48px!important;padding:6px 9px!important;border-radius:7px!important}
.spc2026-header .language-menu b{font-size:13px!important;line-height:1.15!important}
.spc2026-header .language-menu small{margin-top:1px!important;font-size:11px!important;line-height:1.15!important}
.spc2026-header .language-menu .flag{transform:scale(.92)}

/* Search: same 1280 axis as header/content/footer; never stick to viewport edge. */
.spc2026-header .search-trigger{width:45px!important;height:45px!important;display:grid!important;place-items:center!important}
.spc2026-header .search-trigger svg{display:block;width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.spc2026-header .search-panel{
  left:auto!important;
  right:max(16px,calc((100vw - 1280px)/2))!important;
  top:82px!important;
  width:min(620px,calc(100vw - 32px))!important;
  padding:10px!important;
  border:1px solid #d5e5ed!important;border-radius:0 0 12px 12px!important;
  background:#fff!important;box-shadow:0 18px 38px rgba(0,49,80,.18)!important;
}
.spc2026-header .search-form{height:48px!important;border:1px solid #c9dce8!important;border-radius:8px!important;display:flex!important;align-items:center!important;overflow:hidden!important;background:#fff!important}
.spc2026-header .search-form>svg{display:block!important;flex:0 0 21px!important;width:21px!important;height:21px!important;margin:0 13px 0 16px!important;fill:none!important;stroke:#477087!important;stroke-width:1.8!important;stroke-linecap:round!important}
.spc2026-header .search-panel input{height:100%!important;flex:1 1 auto!important;min-width:0!important;border:0!important;outline:0!important;padding:0 10px 0 0!important;background:#fff!important;font-size:14px!important;line-height:normal!important;color:#34556a!important}
.spc2026-header .search-panel button{height:100%!important;flex:0 0 110px!important;border:0!important;padding:0 16px!important;background:linear-gradient(135deg,#004f82,#0069a8)!important;color:#fff!important;font-weight:700!important;cursor:pointer!important}

@media(max-width:1080px){
  .spc2026-header .header-shell{padding-left:100px!important;padding-right:18px!important}
  .spc2026-header .search-panel{top:72px!important;right:16px!important}
}
@media(max-width:560px){
  .spc2026-header .header-shell{padding:0 12px 0 88px!important}
  .spc2026-header .search-panel{left:10px!important;right:10px!important;width:auto!important}
  .spc2026-header .search-panel button{flex-basis:96px!important;padding:0 10px!important;font-size:11px!important}
}

/* =============================================================
   SPC UI 2026 R15 - FINAL HEADER GEOMETRY FIX
   1) Dropdown pointer restored without breaking hover bridge.
   2) Search panel is now a child of .header-shell, so its right edge
      is mathematically identical to the 1280px header/content/footer axis.
   ============================================================= */
@media(min-width:1081px){
  .spc2026-header .dropdown:before{
    content:""!important;position:absolute!important;left:0!important;right:0!important;
    top:-22px!important;height:24px!important;background:transparent!important;
    border:0!important;transform:none!important;z-index:-1!important;
  }
  .spc2026-header .dropdown:after{
    content:""!important;position:absolute!important;top:-10px!important;left:28px!important;
    width:17px!important;height:17px!important;background:#fff!important;
    border-left:1px solid #d7e5ed!important;border-top:1px solid #d7e5ed!important;
    transform:rotate(45deg)!important;z-index:2!important;pointer-events:none!important;
  }
  .spc2026-header .library-parent>.dropdown:after{left:auto!important;right:30px!important}

  .spc2026-header .header-shell>.search-panel{
    left:auto!important;right:0!important;top:81px!important;
    width:min(620px,calc(100vw - 32px))!important;
  }
}
@media(max-width:1080px){
  .spc2026-header .header-shell>.search-panel{top:71px!important;right:0!important}
}
@media(max-width:560px){
  .spc2026-header .header-shell>.search-panel{left:0!important;right:0!important;width:auto!important}
}

/* =============================================================
   SPC UI 2026 R18 - PRODUCT CATEGORY MEGA MENU
   Data rule: category names/links/order remain database-bound.
   This block only changes presentation and icons.
   ============================================================= */
.spc2026-header .product-parent>.dropdown{
  width:570px!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:8px!important;
  padding:12px!important;
  border-radius:12px!important;
  background:linear-gradient(180deg,#fff 0%,#fbfdfe 100%)!important;
}
.spc2026-header .product-parent>.dropdown .category-link{
  min-height:62px!important;
  padding:8px 34px 8px 9px!important;
  border:1px solid #e3edf2!important;
  border-radius:9px!important;
  display:grid!important;
  grid-template-columns:38px minmax(0,1fr)!important;
  column-gap:10px!important;
  align-items:center!important;
  background:#fff!important;
  box-shadow:0 1px 0 rgba(0,69,108,.02)!important;
  overflow:hidden!important;
}
.spc2026-header .product-parent>.dropdown .category-link:before{display:none!important}
.spc2026-header .product-parent>.dropdown .category-link:hover{
  padding-left:9px!important;
  background:linear-gradient(135deg,#edf8fd,#f9fdff)!important;
  border-color:#c6e3f1!important;
  box-shadow:0 5px 14px rgba(0,87,135,.09)!important;
  transform:translateY(-1px)!important;
}
.spc2026-header .product-parent .category-icon{
  width:38px;height:38px;border-radius:9px;display:grid;place-items:center;
  background:#eef8fd;color:#0874b3;border:1px solid #d7ebf5;
  transition:.16s;
}
.spc2026-header .product-parent .category-icon svg{
  width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.65;
  stroke-linecap:round;stroke-linejoin:round;
}
.spc2026-header .product-parent .category-copy{display:block;min-width:0}
.spc2026-header .product-parent .category-name{
  display:block;color:#214f69;font-size:13px;font-weight:700;line-height:1.25;
  white-space:normal;
}
.spc2026-header .product-parent .category-hint{
  display:block;margin-top:3px;color:#8196a3;font-size:10.5px;font-weight:400;line-height:1.15;
}
.spc2026-header .product-parent .category-arrow{
  position:absolute;right:12px;top:50%;transform:translate(-4px,-50%);
  color:#0b75b1;font-size:17px;line-height:1;opacity:0;transition:.16s;
}
.spc2026-header .product-parent .category-link:hover .category-icon{
  background:#0876b6;color:#fff;border-color:#0876b6;box-shadow:0 4px 10px rgba(0,105,168,.18);
}
.spc2026-header .product-parent .category-link:hover .category-name{color:#0067a5}
.spc2026-header .product-parent .category-link:hover .category-arrow{opacity:1;transform:translate(0,-50%)}
@media(max-width:900px){
  .spc2026-header .product-parent>.dropdown{width:min(570px,calc(100vw - 24px))!important}
}
/* R18 isolation: rich category chrome is visible only inside SẢN PHẨM. */
.spc2026-header .dropdown .category-icon,
.spc2026-header .dropdown .category-hint,
.spc2026-header .dropdown .category-arrow{display:none}
.spc2026-header .product-parent .category-icon{display:grid}
.spc2026-header .product-parent .category-hint{display:block}
.spc2026-header .product-parent .category-arrow{display:block}


/* =============================================================
   SPC UI 2026 R19 - DROPDOWN POLISH + PRODUCT MENU IDENTITY
   - Child hover is rounded/soft; pointer belongs to parent dropdown only.
   - Product menu gets a UI heading; database category names/links unchanged.
   ============================================================= */
/* Ordinary dropdown: compact separated rows, no hard rectangular hover. */
.spc2026-header .dropdown>a{
  margin:2px 0!important;
  border-bottom:0!important;
  border-radius:7px!important;
  min-height:32px!important;
  padding:5px 13px 5px 18px!important;
}
.spc2026-header .dropdown>a+ a{border-top:1px solid #edf3f6!important}
.spc2026-header .dropdown>a:hover{
  padding-left:22px!important;
  border-top-color:transparent!important;
  border-radius:7px!important;
  box-shadow:none!important;
  background:linear-gradient(90deg,#eaf6fc 0%,#f7fcfe 100%)!important;
}
/* Header exists in all dynamic dropdowns but is only a Product UI element. */
.spc2026-header .product-menu-heading{display:none!important}
.spc2026-header .product-parent>.dropdown .product-menu-heading{
  display:block!important;
  grid-column:1/-1!important;
  margin:-2px 0 3px!important;
  padding:3px 5px 10px!important;
  border-bottom:1px solid #dceaf1!important;
}
.spc2026-header .product-parent>.dropdown .product-menu-heading strong{
  display:block!important;
  color:#075f94!important;
  font-size:12px!important;
  line-height:1.25!important;
  letter-spacing:.55px!important;
  font-weight:700!important;
}
.spc2026-header .product-parent>.dropdown .product-menu-heading span{
  display:block!important;
  margin-top:3px!important;
  color:#7b909d!important;
  font-size:10.5px!important;
  line-height:1.3!important;
  font-weight:400!important;
}
/* Product items are category tiles, not ordinary dropdown rows. */
.spc2026-header .product-parent>.dropdown .category-link{
  min-height:54px!important;
  margin:0!important;
  padding:7px 32px 7px 8px!important;
  border:1px solid #e2edf2!important;
  border-radius:9px!important;
}
.spc2026-header .product-parent>.dropdown .category-link+ .category-link{border-top:1px solid #e2edf2!important}
.spc2026-header .product-parent .category-icon{width:34px!important;height:34px!important;border-radius:8px!important}
.spc2026-header .product-parent .category-icon svg{width:20px!important;height:20px!important}
.spc2026-header .product-parent .category-name{font-size:12.5px!important;line-height:1.25!important}
.spc2026-header .product-parent .category-hint{display:none!important}
.spc2026-header .product-parent>.dropdown .category-link:hover{padding-left:8px!important;border-color:#c8e3f0!important;border-radius:9px!important}
/* Keep exactly one pointer at the top of the dropdown; child items never create pointers. */
.spc2026-header .dropdown>a:after,.spc2026-header .dropdown>a:hover:after{content:none!important;display:none!important}
@media(max-width:1080px){
  .spc2026-header .product-parent>.dropdown .product-menu-heading{padding:7px 8px 9px!important}
}

/* =============================================================
   SPC UI 2026 R20 - UNIFIED CATEGORY NAVIGATION STATE
   One pointer per dropdown. "Tất cả" + current child use one visual language.
   ============================================================= */
.spc2026-header .nav-item.is-current>a{
  color:#00659e!important;
}
.spc2026-header .dropdown>a.is-active{
  background:linear-gradient(90deg,#eaf6fc 0%,#f8fcfe 100%)!important;
  color:#0067a5!important;border-radius:7px!important;font-weight:600!important;
  padding-left:22px!important;
}
.spc2026-header .dropdown>a.is-active:before{height:17px!important}
/* Explicitly prevent any child row from drawing a triangle/pointer. */
.spc2026-header .dropdown>a:after,
.spc2026-header .dropdown>a.is-active:after,
.spc2026-header .dropdown>a:hover:after{content:none!important;display:none!important;border:0!important}

/* Product mega-menu: Tất cả is a real first category tile, not a separate button. */
.spc2026-header .product-parent>.dropdown .menu-all-link{grid-column:1/-1!important;min-height:48px!important}
.spc2026-header .product-parent>.dropdown .menu-all-link .category-icon{width:34px!important;height:34px!important}
.spc2026-header .product-parent>.dropdown .menu-all-link.is-active,
.spc2026-header .product-parent>.dropdown .category-link.is-active{
  background:linear-gradient(135deg,#e9f6fc,#f8fcfe)!important;
  border-color:#b9ddeb!important;box-shadow:inset 3px 0 0 #0877b9!important;
  padding-left:8px!important;
}
.spc2026-header .product-parent>.dropdown .category-link.is-active .category-icon{
  background:#0876b6!important;color:#fff!important;border-color:#0876b6!important;
}
.spc2026-header .product-parent>.dropdown .category-link.is-active .category-arrow{opacity:1!important;transform:translate(0,-50%)!important}
.spc2026-header .product-parent .all-icon svg{fill:none!important;stroke:currentColor!important}


/* =============================================================
   SPC UI R24 - rebuild from R20 requirements R20→R23
   ============================================================= */
/* dropdown pointer: one upward pointer only; first row sits clear below it */
.spc2026-header .dropdown{padding-top:10px!important}
.spc2026-header .dropdown:after{content:"";position:absolute;top:-8px;left:28px;width:15px;height:15px;background:#fff;border-left:1px solid #d7e5ed;border-top:1px solid #d7e5ed;transform:rotate(45deg);z-index:0}
.spc2026-header .dropdown>*{position:relative;z-index:1}
.spc2026-header .dropdown>a:first-of-type{margin-top:2px!important}
.spc2026-header .library-parent>.dropdown:after{left:auto;right:28px}
/* compact ordinary children */
.spc2026-header .dropdown>a{min-height:30px!important;padding-top:4px!important;padding-bottom:4px!important;border-radius:8px!important}
/* product mega menu: intentional 2-column card design */
.spc2026-header .product-parent>.dropdown{width:570px!important;gap:8px!important;padding:12px!important;background:linear-gradient(180deg,#f8fcfe 0,#f2f9fc 100%)!important;border-color:#cfe3ed!important}
.spc2026-header .product-parent>.dropdown .product-menu-heading{margin:-2px 0 2px!important;padding:2px 5px 9px!important}
.spc2026-header .product-parent>.dropdown .category-link{min-height:54px!important;background:#fff!important;border:1px solid #d7e8f0!important;border-radius:10px!important;box-shadow:0 2px 7px rgba(0,75,115,.035)!important}
.spc2026-header .product-parent>.dropdown .category-link:hover,.spc2026-header .product-parent>.dropdown .category-link.is-active{background:linear-gradient(135deg,#edf8fd,#fff)!important;border-color:#a9d5e9!important;box-shadow:0 5px 13px rgba(0,91,142,.09)!important}
/* page category navigation: compact responsive tab-control card */
.spc-products-page .spc-category-tabs{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:7px!important;width:100%!important;margin:0 0 14px!important;padding:8px!important;border:1px solid #d8e8f0!important;border-radius:12px!important;background:linear-gradient(180deg,#f7fbfd,#eef7fb)!important;overflow-x:auto!important;box-shadow:0 4px 14px rgba(0,73,112,.05)!important}
.spc-products-page .spc-category-tab{padding:8px 13px!important;border-radius:8px!important;white-space:nowrap!important;box-shadow:none!important}
.spc-products-page .spc-category-tab.active{box-shadow:inset 3px 0 0 #0069a8!important;background:#eaf6fc!important;color:#00659e!important;border-color:#b9ddeb!important}
@media(max-width:1080px){.spc2026-header .dropdown:after{display:none}.spc2026-header .product-parent>.dropdown{width:100%!important;grid-template-columns:1fr!important}}


/* SPC UI 2026 R28: final dropdown pointer cleanup + compact icon category tabs */
@media(min-width:1081px){
  .spc2026-header .dropdown:after{content:none!important;display:none!important;border:0!important;background:transparent!important;}
  .spc2026-header .dropdown{padding-top:15px!important;}
  .spc2026-header .dropdown>a:first-of-type{margin-top:5px!important;}
  .spc2026-header .product-parent>.dropdown{padding-top:15px!important;}
}
.spc-products-page .spc-category-tabs{width:auto!important;max-width:100%!important;padding:5px!important;gap:6px!important;border-radius:10px!important;}
.spc-products-page .spc-category-tab{display:inline-flex!important;align-items:center!important;gap:7px!important;padding:7px 11px!important;border-radius:8px!important;}
.spc-products-page .spc-tab-icon{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:7px;background:#eef8fd;color:#0877b9;border:1px solid #d4eaf4;flex:0 0 24px;}
.spc-products-page .spc-tab-icon svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.spc-products-page .spc-category-tab.active .spc-tab-icon{background:#0877b9;color:#fff;border-color:#0877b9;}

/* =============================================================
   SPC UI 2026 R29 - compact category tabs + NEW badge + pointer fix
   ============================================================= */
/* Product category row follows the lighter News tab language: no enclosing card. */
.spc-products-page .spc-category-tabs{
  display:flex!important;flex-wrap:nowrap!important;align-items:center!important;
  width:100%!important;max-width:100%!important;gap:8px!important;
  margin:0 0 18px!important;padding:2px 2px 8px!important;
  border:0!important;border-radius:0!important;background:transparent!important;
  box-shadow:none!important;overflow-x:auto!important;overflow-y:hidden!important;
  scrollbar-width:thin;
}
.spc-products-page .spc-category-tab{
  flex:0 0 auto!important;display:inline-flex!important;align-items:center!important;gap:7px!important;
  min-height:38px!important;padding:5px 12px!important;
  border:1px solid #cfe2ec!important;border-radius:18px!important;
  background:#fff!important;color:#315b72!important;box-shadow:0 2px 7px rgba(0,60,95,.035)!important;
  font:600 13px/1.2 Arial,Helvetica,sans-serif!important;white-space:nowrap!important;
}
.spc-products-page .spc-category-tab:hover{
  background:#f5fbfe!important;border-color:#a9d2e5!important;color:#006aa6!important;
  box-shadow:0 3px 9px rgba(0,80,120,.06)!important;
}
.spc-products-page .spc-category-tab.active{
  background:#0878b8!important;color:#fff!important;border-color:#0878b8!important;
  box-shadow:0 4px 11px rgba(0,105,168,.14)!important;
}
.spc-products-page .spc-tab-icon{
  width:22px!important;height:22px!important;flex:0 0 22px!important;border-radius:6px!important;
  background:#eef8fd!important;border:1px solid #d5eaf4!important;color:#0877b9!important;
}
.spc-products-page .spc-tab-icon svg{width:13px!important;height:13px!important;stroke-width:1.7!important}
.spc-products-page .spc-category-tab.active .spc-tab-icon{
  background:rgba(255,255,255,.16)!important;color:#fff!important;border-color:rgba(255,255,255,.38)!important;
}
/* NEW: visually quieter, same typography as the site; no pulse/bold-heavy look. */
.spc-new-badge{
  top:11px!important;right:11px!important;min-width:42px!important;height:23px!important;padding:0 9px!important;
  border-radius:12px!important;background:#ef3f3a!important;color:#fff!important;
  font-family:Arial,Helvetica,sans-serif!important;font-size:10px!important;font-weight:600!important;
  line-height:23px!important;letter-spacing:.15px!important;text-transform:uppercase!important;
  box-shadow:0 3px 8px rgba(220,45,42,.18)!important;animation:none!important;
}
/* Kill the white diamond completely. Keep only an invisible hover bridge above dropdown. */
@media(min-width:1081px){
  .spc2026-header .nav-item>.dropdown::after,
  .spc2026-header .nav-item>.dropdown:after,
  .spc2026-header .product-parent>.dropdown::after,
  .spc2026-header .library-parent>.dropdown::after{
    content:none!important;display:none!important;width:0!important;height:0!important;
    background:transparent!important;border:0!important;box-shadow:none!important;transform:none!important;
  }
  .spc2026-header .nav-item>.dropdown::before,
  .spc2026-header .nav-item>.dropdown:before{
    content:""!important;display:block!important;position:absolute!important;
    left:0!important;right:0!important;top:-18px!important;height:18px!important;
    background:transparent!important;border:0!important;box-shadow:none!important;transform:none!important;
    pointer-events:auto!important;z-index:-1!important;
  }
  .spc2026-header .nav-item>.dropdown{padding-top:10px!important}
  .spc2026-header .nav-item>.dropdown>a:first-of-type{margin-top:0!important}
}


/* =============================================================
   SPC UI 2026 R30 - search stability + compact dropdown cards
   ============================================================= */
/* One small UPWARD pointer on the dropdown itself. No child pointer. */
@media(min-width:1081px){
  .spc2026-header .nav-item>.dropdown::after{
    content:""!important;display:block!important;position:absolute!important;
    top:-6px!important;left:28px!important;width:11px!important;height:11px!important;
    background:#fff!important;border-left:1px solid #d7e5ed!important;border-top:1px solid #d7e5ed!important;
    transform:rotate(45deg)!important;z-index:0!important;pointer-events:none!important;box-shadow:none!important;
  }
  .spc2026-header .library-parent>.dropdown::after{left:auto!important;right:30px!important}
  .spc2026-header .nav-item>.dropdown{padding-top:7px!important}
  .spc2026-header .nav-item>.dropdown>a:first-of-type{margin-top:0!important}
}
/* Ordinary child menu: slimmer border/radius and tighter rows. */
.spc2026-header .dropdown>a{
  min-height:29px!important;margin:1px 0!important;padding:4px 12px 4px 17px!important;
  border-radius:5px!important;font-size:12.5px!important;
}
.spc2026-header .dropdown>a+a{border-top:1px solid #edf3f6!important}
.spc2026-header .dropdown>a:hover,.spc2026-header .dropdown>a.is-active{padding-left:20px!important;border-radius:5px!important}
/* Product mega menu: text-first compact cards. Icons/arrows removed to avoid visual duplication. */
.spc2026-header .product-parent>.dropdown{gap:6px!important;padding:10px!important}
.spc2026-header .product-parent>.dropdown .product-menu-heading{padding:2px 4px 7px!important;margin:-1px 0 2px!important}
.spc2026-header .product-parent>.dropdown .category-link{
  min-height:43px!important;padding:6px 11px!important;border:1px solid #dce9ef!important;
  border-radius:6px!important;display:flex!important;align-items:center!important;background:#fff!important;box-shadow:none!important;
}
.spc2026-header .product-parent>.dropdown .category-link:hover,
.spc2026-header .product-parent>.dropdown .category-link.is-active{
  padding-left:11px!important;border-radius:6px!important;background:#f3fafe!important;border-color:#b9dbea!important;box-shadow:none!important;
}
.spc2026-header .product-parent .category-icon,
.spc2026-header .product-parent .category-arrow{display:none!important}
.spc2026-header .product-parent .category-copy{display:block!important;width:100%!important}
.spc2026-header .product-parent .category-name{font-size:12.5px!important;font-weight:600!important;color:#28556e!important}

/* Search results: stable responsive grid instead of Flow DataList items stacking/dropping lines. */
.spc-search-page .mt_content_ct_c{border:0!important;background:transparent!important;box-shadow:none!important}

.spc-search-page .spc-search-products>span,.spc-search-page .spc-search-products>div{min-width:0!important}
.spc-search-page .spc-search-products .sp_List_cl{
  box-sizing:border-box!important;display:flex!important;flex-direction:column!important;width:100%!important;min-width:0!important;
  margin:0!important;padding:0!important;float:none!important;border:1px solid #e0ebf1!important;border-radius:12px!important;overflow:hidden!important;background:#fff!important;
}
.spc-search-page .spc-search-products .sp_List_cl>div{display:flex!important;flex-direction:column!important;height:100%!important}
.spc-search-page .spc-search-products figure{display:flex!important;align-items:center!important;justify-content:center!important;height:220px!important;margin:0!important;padding:16px!important;box-sizing:border-box!important}
.spc-search-page .spc-search-products figure img{display:block!important;max-width:100%!important;max-height:100%!important;width:auto!important;height:auto!important;object-fit:contain!important;margin:auto!important}
.spc-search-page .spc-search-products .sp_List_cl_td{min-height:58px!important;padding:10px 12px 14px!important;text-align:center!important;box-sizing:border-box!important}
.spc-search-page .spc-search-products .sp_List_cl_td a{font-size:13px!important;line-height:1.35!important;overflow-wrap:anywhere!important}
@media(max-width:980px){.spc-search-page .spc-search-products{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:620px){.spc-search-page .spc-search-products{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}.spc-search-page .spc-search-products figure{height:170px!important}}

/* =============================================================
   SPC UI 2026 R31 - requested menu/search refinements
   ============================================================= */
/* Product dropdown keeps icons; each category icon is supplied by GetCategoryIcon(). */
.spc2026-header .product-parent .category-icon{display:grid!important;width:31px!important;height:31px!important;flex:0 0 31px!important;border-radius:7px!important;background:#eef8fd!important;border:1px solid #d4eaf4!important;color:#0877b9!important;place-items:center!important;margin-right:10px!important}
.spc2026-header .product-parent .category-icon svg{display:block!important;width:18px!important;height:18px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.7!important;stroke-linecap:round!important;stroke-linejoin:round!important}
.spc2026-header .product-parent>.dropdown .category-link{min-height:45px!important;padding:6px 9px!important}
.spc2026-header .product-parent>.dropdown .category-link:hover,.spc2026-header .product-parent>.dropdown .category-link.is-active{padding-left:9px!important}
/* Other header dropdowns: +1px vertical breathing room, still compact. */
.spc2026-header .nav-item:not(.product-parent)>.dropdown>a{min-height:31px!important;padding-top:5px!important;padding-bottom:5px!important}
/* In-page category tabs: no icons, slim pills like News/Doctor sections. */
.spc-products-page .spc-tab-icon{display:none!important}
.spc-products-page .spc-category-tab{min-height:35px!important;padding:5px 13px!important;gap:0!important;border-radius:17px!important}
/* Search page polish */
.spc-search-page .boxTK{max-width:820px!important;margin:18px auto 8px!important;padding:14px 16px!important;background:#f6fafc!important;border:1px solid #dceaf1!important;border-radius:10px!important;box-sizing:border-box!important}
.spc-search-page .tt_tkiem{display:flex!important;align-items:center!important;gap:9px!important;flex-wrap:wrap!important;margin:0!important;padding:0!important;list-style:none!important}
.spc-search-page .tt_tkiem li{margin:0!important;padding:0!important;float:none!important}
.spc-search-page .tt_tkiem input[type=text],.spc-search-page .tt_tkiem select{height:36px!important;border:1px solid #c9dce6!important;border-radius:6px!important;padding:0 10px!important;background:#fff!important;box-sizing:border-box!important}
.spc-search-page .tt_tkiem input[type=submit]{height:36px!important;border:0!important;border-radius:6px!important;background:#0878b8!important;color:#fff!important;font-weight:600!important;cursor:pointer!important}
.spc-search-page .thong_bao{text-align:center!important;margin:10px 0 16px!important}
/* DataList emits wrapper spans: make every product a real grid item. */
.spc-search-page .spc-search-products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:16px!important;width:100%!important}
.spc-search-page .spc-search-products>.search-product-card{width:auto!important;min-width:0!important}
.spc-search-page .search-product-card{box-sizing:border-box!important;display:flex!important;flex-direction:column!important;min-width:0!important;margin:0!important;border:1px solid #dce9ef!important;border-radius:10px!important;background:#fff!important;overflow:hidden!important}
.spc-search-page .search-product-card>div:first-child{height:220px!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:14px!important;box-sizing:border-box!important}
.spc-search-page .search-product-card figure{height:100%!important;width:100%!important;margin:0!important;padding:0!important}
.spc-search-page .search-product-card .sp_List_cl_td{min-height:52px!important;padding:9px 12px 13px!important;text-align:center!important}
/* All-result textual lists get clean separated blocks. */
.spc-search-page .mt_content_ct_c>div>span:not(.spc-search-products){box-sizing:border-box}
@media(max-width:980px){.spc-search-page .spc-search-products{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:620px){.spc-search-page .spc-search-products{grid-template-columns:repeat(2,minmax(0,1fr))!important}.spc-search-page .boxTK{margin-top:10px!important;padding:10px!important}.spc-search-page .tt_tkiem li{width:100%!important}.spc-search-page .tt_tkiem input,.spc-search-page .tt_tkiem select{width:100%!important}}


/* =============================================================
   SPC UI 2026 R32 - search alignment + consistent product gaps
   ============================================================= */
/* Search form always starts on its own row below breadcrumb and stays centered. */
.spc-search-page > .mt_title_ct_c:nth-of-type(2){
  display:block!important;clear:both!important;width:100%!important;height:auto!important;
  margin:0!important;padding:0!important;float:none!important;
}
.spc-search-page .boxTK{
  display:block!important;clear:both!important;width:min(820px,calc(100% - 32px))!important;max-width:820px!important;
  margin:18px auto 12px!important;padding:14px 18px!important;float:none!important;
}
.spc-search-page .tt_tkiem{justify-content:center!important;width:100%!important}
.spc-search-page .tt_tkiem .tu_khoa,.spc-search-page .tt_tkiem .loc_theo{white-space:nowrap!important}
.spc-search-page .tt_tkiem input[type=text]{width:240px!important}
.spc-search-page .tt_tkiem select{width:244px!important}
.spc-search-page .thong_bao{clear:both!important;width:100%!important;margin:8px auto 18px!important}

/* Product listing: every DB category grid has exactly the same vertical gutter as cards inside a category. */
.spc-products-page .LV_Frame.spc-active-group{margin:0 0 16px!important;padding:0!important}
.spc-products-page .LV_Frame.spc-active-group:last-of-type{margin-bottom:0!important}
.spc-products-page .sp_List{row-gap:16px!important;column-gap:16px!important}

/* Search product cards: equal row/column gaps; neutralise legacy floats/margins emitted by DataList. */
.spc-search-page .spc-search-products{row-gap:16px!important;column-gap:16px!important;margin:0 0 20px!important;padding:0!important}
.spc-search-page .spc-search-products>*{margin:0!important;float:none!important;vertical-align:top!important;box-sizing:border-box!important}
.spc-search-page .search-product-card{height:100%!important;margin:0!important}

/* Text/news/doctor/media results: separate result families and cards so Media can never stick to adjacent results. */
.spc-search-page #master_content .mt_content_ct_c{clear:both!important}
.spc-search-page .mt_content_ct_c > div > table,
.spc-search-page .mt_content_ct_c > div > span[id],
.spc-search-page .mt_content_ct_c > div > div[id]{margin-top:16px!important;margin-bottom:16px!important;clear:both!important}
.spc-search-page .tt_List_cl,
.spc-search-page .tt_List_video_cl{box-sizing:border-box!important;margin:0 16px 16px 0!important;vertical-align:top!important}
.spc-search-page .tt_List_video_cl_ct{box-sizing:border-box!important;margin:0!important}

@media(max-width:760px){
  .spc-search-page .boxTK{width:calc(100% - 20px)!important;margin-top:12px!important}
  .spc-search-page .tt_tkiem{justify-content:flex-start!important}
  .spc-search-page .tt_tkiem li:not(.tu_khoa):not(.loc_theo){flex:1 1 220px!important}
  .spc-search-page .tt_tkiem input[type=text],.spc-search-page .tt_tkiem select{width:100%!important}
}


/* ============================================================
   SPC UI 2026 R33 - search result isolation, product interactions
   ============================================================ */
/* Every search family owns its own grid. This overrides old floats/inline widths
   that caused Media and FAQ cards to overlap the following result family. */
.spc-search-page .spc-search-text-results,
.spc-search-page .spc-search-media-results,
.spc-search-page .spc-search-faq-results{
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:18px!important;width:100%!important;clear:both!important;
  margin:18px 0 24px!important;padding:0!important;box-sizing:border-box!important;
}
.spc-search-page .spc-search-text-results>*,
.spc-search-page .spc-search-media-results>*,
.spc-search-page .spc-search-faq-results>*{
  float:none!important;width:auto!important;min-width:0!important;height:auto!important;
  margin:0!important;padding:0!important;box-sizing:border-box!important;vertical-align:top!important;
}
.spc-search-page .spc-search-text-results .tt_List_cl,
.spc-search-page .spc-search-media-results .tt_List_video_cl,
.spc-search-page .spc-search-faq-results .tt_List_cl{
  float:none!important;width:100%!important;min-width:0!important;margin:0!important;box-sizing:border-box!important;
}
.spc-search-page .spc-search-media-results .tt_List_video_cl_ct,
.spc-search-page .spc-search-faq-results .tt_List_cl_ct,
.spc-search-page .spc-search-text-results .tt_List_cl_ct{
  width:100%!important;height:100%!important;margin:0!important;box-sizing:border-box!important;overflow:hidden!important;
}
.spc-search-page .spc-search-media-results .tt_List_video_cl_img,
.spc-search-page .spc-search-media-results .tt_List_video_cl_img figure{
  width:100%!important;margin:0!important;box-sizing:border-box!important;overflow:hidden!important;
}
.spc-search-page .spc-search-media-results img{max-width:100%!important;height:auto!important;display:block!important}
@media(max-width:980px){.spc-search-page .spc-search-text-results,.spc-search-page .spc-search-media-results,.spc-search-page .spc-search-faq-results{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:620px){.spc-search-page .spc-search-text-results,.spc-search-page .spc-search-media-results,.spc-search-page .spc-search-faq-results{grid-template-columns:1fr!important;gap:14px!important}}

/* NEW badge: soft attention halo + tiny lift, no harsh jumping. */
.spc-new-badge{overflow:visible!important;animation:spcNewAttention 1.8s cubic-bezier(.4,0,.2,1) infinite!important;will-change:transform,box-shadow!important}
.spc-new-badge:after{content:"";position:absolute;inset:-1px;border-radius:999px;border:2px solid rgba(239,55,55,.48);pointer-events:none;animation:spcNewHalo 1.8s ease-out infinite}
@keyframes spcNewAttention{0%,100%{transform:translateY(0) scale(1)}12%{transform:translateY(-2px) scale(1.05)}24%{transform:translateY(0) scale(1)}36%{transform:translateY(-1px) scale(1.025)}50%,90%{transform:translateY(0) scale(1)}}
@keyframes spcNewHalo{0%{opacity:.7;transform:scale(1)}70%,100%{opacity:0;transform:scale(1.38)}}
@media(prefers-reduced-motion:reduce){.spc-new-badge,.spc-new-badge:after{animation:none!important}}

/* Product title hover: brand-blue -> warm accent, subtle underline slide. */
.spc-products-page .sp_List_cl_td a,.spc-product-special .sp_List_cl_td a,.spc-search-products .sp_List_cl_td a{
  position:relative!important;display:inline-block!important;transition:color .2s ease,transform .2s ease!important;text-decoration:none!important
}
.spc-products-page .sp_List_cl_td a:after,.spc-product-special .sp_List_cl_td a:after,.spc-search-products .sp_List_cl_td a:after{
  content:"";position:absolute;left:50%;right:50%;bottom:-4px;height:2px;border-radius:2px;background:currentColor;opacity:.75;transition:left .2s ease,right .2s ease
}
.spc-products-page .sp_List_cl:hover .sp_List_cl_td a,.spc-product-special .sp_List_cl:hover .sp_List_cl_td a,.spc-search-products .search-product-card:hover .sp_List_cl_td a{
  color:#e47a12!important;transform:translateY(-1px)
}
.spc-products-page .sp_List_cl:hover .sp_List_cl_td a:after,.spc-product-special .sp_List_cl:hover .sp_List_cl_td a:after,.spc-search-products .search-product-card:hover .sp_List_cl_td a:after{left:8%;right:8%}

/* Old standalone Zalo OA widget is reserve-only; ChatAI contact button remains. */
body>.zalo-chat-widget{display:none!important}

/* ============================================================
   SPC UI 2026 R34 - compact search cards + grouped search scope
   ============================================================ */
.spc-search-page .spc-search-products{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:18px!important}
.spc-search-page .search-product-card>div:first-child{height:180px!important;padding:12px!important}
.spc-search-page .search-product-card figure{display:flex!important;align-items:center!important;justify-content:center!important}
.spc-search-page .search-product-card figure img{width:auto!important;height:auto!important;max-width:100%!important;max-height:156px!important;object-fit:contain!important;display:block!important;margin:auto!important}
.spc-search-page .search-product-card .sp_List_cl_td{min-height:44px!important;padding:8px 10px 10px!important}
.spc-search-page .spc-search-doctor-image{height:150px!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important;background:#f7fafb!important;border-radius:8px 8px 0 0!important;margin-bottom:9px!important}
.spc-search-page .spc-search-doctor-image img{display:block!important;max-width:100%!important;max-height:100%!important;width:auto!important;height:auto!important;object-fit:contain!important;margin:auto!important}
.spc-search-page .spc-search-text-results .tt_List_cl_ct,.spc-search-page .spc-search-library-results .tt_List_cl_ct{padding:12px!important;border:1px solid #dce9ef!important;border-radius:9px!important;background:#fff!important}
@media(max-width:980px){.spc-search-page .spc-search-products{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:620px){.spc-search-page .spc-search-products{grid-template-columns:repeat(2,minmax(0,1fr))!important}.spc-search-page .search-product-card>div:first-child{height:150px!important}.spc-search-page .search-product-card figure img{max-height:126px!important}}

/* R35: YouTube media detail + uncropped doctor thumbnails */
.spc-media-detail-player{position:relative!important;width:100%!important;aspect-ratio:16/9!important;height:auto!important;background:#111!important;overflow:hidden!important}
.spc-media-detail-player iframe{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;border:0!important}
.spc-search-page .spc-search-doctor-image{padding:8px!important;box-sizing:border-box!important}

/* ============================================================
   SPC UI 2026 R36 - safe thumbnails + responsive media detail
   ============================================================ */
.spc-search-page .spc-search-doctor-image{height:180px!important;padding:10px!important;background:#f6f9fa!important;overflow:hidden!important}
.spc-search-page .spc-search-doctor-image a{width:100%!important;height:100%!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important}
.spc-search-page .spc-search-doctor-image img{width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center center!important;display:block!important}
.spc-search-page .spc-search-faq-image{height:112px!important;border-radius:8px!important;background:linear-gradient(145deg,#f3f9fc,#eaf5fa)!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;color:#0878b8!important;margin-bottom:10px!important}
.spc-search-page .spc-search-faq-image span{width:42px!important;height:42px!important;border:1px solid #b9dcea!important;border-radius:50%!important;display:flex!important;align-items:center!important;justify-content:center!important;font-size:24px!important;font-weight:700!important;background:#fff!important}
.spc-search-page .spc-search-faq-image small{margin-top:6px!important;font-size:10px!important;font-weight:700!important;letter-spacing:.8px!important}
.spc-search-page .spc-search-media-results .tt_List_video_cl_img figure{height:158px!important;background:#f5f8f9!important;display:flex!important;align-items:center!important;justify-content:center!important}
.spc-search-page .spc-search-media-results .tt_List_video_cl_img img{width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important}
.spc-media-detail-player{width:100%!important;max-width:100%!important;aspect-ratio:16/9!important;height:auto!important;min-height:0!important;margin:0 auto!important;background:#000!important}
.spc-media-detail-player iframe{width:100%!important;height:100%!important;min-height:0!important;object-fit:contain!important}
.tt_List_video_left{box-sizing:border-box!important;min-width:0!important}
.tt_List_video_left #VN_MediaDetail_Dtl_Video,.tt_List_video_left [id$="Dtl_Video"]{display:block!important;width:100%!important;max-width:100%!important}
.tt_List_video_right_ct_img figure{aspect-ratio:16/9!important;height:auto!important;margin:0!important;background:#f5f8f9!important;overflow:hidden!important;display:flex!important;align-items:center!important;justify-content:center!important}
.tt_List_video_right_ct_img img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important;display:block!important}
.tt_List_video_cl_img figure{overflow:hidden!important;background:#f5f8f9!important}
.tt_List_video_cl_img img{object-fit:contain!important;object-position:center!important}
@media(max-width:800px){.spc-search-page .spc-search-doctor-image{height:160px!important}.spc-search-page .spc-search-media-results .tt_List_video_cl_img figure{height:auto!important;aspect-ratio:16/9!important}}

/* ============================================================
   SPC UI 2026 R39 - Media detail: compact 16:9 player + equal sidebar
   Scoped to MediaDetail legacy classes only. No global layout override.
   ============================================================ */
@media (min-width: 801px){
  .tt_List_video_left{
    width:60%!important;
    margin:1em 0!important;
    padding-right:12px!important;
    clear:both!important;
    float:left!important;
    box-sizing:border-box!important;
  }
  .tt_List_video_right{
    width:40%!important;
    height:auto!important;
    max-height:none!important;
    margin:1em 0!important;
    padding-left:0!important;
    float:left!important;
    box-sizing:border-box!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
  }
  .tt_List_video_left .spc-media-detail-player{
    width:100%!important;
    height:auto!important;
    aspect-ratio:16 / 9!important;
    max-height:none!important;
    overflow:hidden!important;
    background:#000!important;
  }
  .tt_List_video_left .spc-media-detail-player iframe{
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
    border:0!important;
    display:block!important;
  }
  /* At the normal desktop content width this matches the 16:9 player height.
     JS below synchronizes it exactly after render/resize. */
  .tt_List_video_right{height:432px!important;}
  .tt_List_video_right_ct{
    width:100%!important;
    min-height:96px!important;
    height:auto!important;
    padding:8px 10px!important;
    margin:0!important;
    display:flex!important;
    align-items:center!important;
    gap:12px!important;
    border-bottom:1px solid #e3edf2!important;
    box-sizing:border-box!important;
  }
  .tt_List_video_right_ct_img{
    flex:0 0 128px!important;
    width:128px!important;
    padding:0!important;
    margin:0!important;
    float:none!important;
  }
  .tt_List_video_right_ct_img figure{
    width:128px!important;
    height:72px!important;
    aspect-ratio:16 / 9!important;
    margin:0!important;
    overflow:hidden!important;
    background:#f4f7f8!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
  }
  .tt_List_video_right_ct_img img{
    width:100%!important;
    height:100%!important;
    object-fit:contain!important;
    object-position:center!important;
    border:0!important;
    margin:0!important;
  }
  .tt_List_video_right_ct_name{
    flex:1 1 auto!important;
    width:auto!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    line-height:1.42!important;
    float:none!important;
  }
  .tt_List_video_right_ct_name a{
    display:block!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
  }
}
@media (max-width:800px){
  .tt_List_video_left,.tt_List_video_right{
    width:100%!important;max-width:100%!important;float:none!important;
    margin:.75em 0!important;padding:0!important;height:auto!important;max-height:none!important;
  }
  .tt_List_video_right{overflow:visible!important;}
  .tt_List_video_right_ct{min-height:88px!important;}
}

/* ============================================================
   SPC UI 2026 R43 - SHARED DETAIL LAYOUT
   Single source of truth for detail pages (Media now; reusable for
   News / Products / Plant Doctor / Technical Documents later).
   Do not add page-specific hotfixes below this block.
   ============================================================ */

/* Shared detail container: aligned with the 1280px site header/footer. */
.master_content_center:has(.spc-detail-page){
  width:calc(100% - 48px)!important;
  max-width:1280px!important;
  margin-left:auto!important;
  margin-right:auto!important;
  box-sizing:border-box!important;
}
.master_content_center:has(.spc-detail-page) .mt_content_ct_c{
  width:100%!important;
  max-width:none!important;
  box-sizing:border-box!important;
}
.spc-detail-page,.spc-detail-page *{box-sizing:border-box}

/* Shared responsive related-content grid. */
.spc-detail-related-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:22px!important;
  width:100%!important;
  margin:18px 0 30px!important;
  clear:both!important;
}
/* ASP.NET DataList Flow may insert a wrapper. Flatten only that wrapper. */
.spc-detail-related-grid>span,
.spc-detail-related-grid>div[id*="dtlList"],
.spc-detail-related-grid>span[id*="dtlList"]{display:contents!important}

.spc-detail-card{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  height:auto!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  float:none!important;
  vertical-align:top!important;
  background:transparent!important;
  border:0!important;
  text-align:left!important;
}
.spc-detail-card-inner{
  display:flex!important;
  flex-direction:column!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  overflow:hidden!important;
  background:#fff!important;
  border:1px solid #d8eaf2!important;
  border-radius:12px!important;
  box-shadow:0 4px 14px rgba(0,71,108,.055)!important;
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease!important;
}
.spc-detail-card-inner:hover{
  transform:translateY(-3px)!important;
  border-color:#abdced!important;
  box-shadow:0 9px 22px rgba(0,71,108,.11)!important;
}
.spc-detail-card-media{
  width:100%!important;
  height:auto!important;
  margin:0!important;
  padding:10px 10px 0!important;
}
.spc-detail-card-media figure{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  aspect-ratio:16/9!important;
  height:auto!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  border-radius:8px!important;
  background:#f4f8fa!important;
}
.spc-detail-card-media img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  float:none!important;
  object-fit:contain!important;
  object-position:center!important;
  transform:none!important;
}
.spc-detail-card-title{
  flex:1 0 auto!important;
  width:100%!important;
  min-height:58px!important;
  height:auto!important;
  margin:0!important;
  padding:9px 12px 12px!important;
  line-height:1.42!important;
  overflow:visible!important;
  overflow-wrap:anywhere!important;
}
.spc-detail-card-title a{
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  color:#0065aa!important;
  transition:color .2s ease!important;
}
.spc-detail-card-title a:hover{color:#e87916!important;text-decoration:none!important}

/* Media detail: player + scrollable playlist. */
.spc-media-detail-stage{
  width:100%!important;
  max-width:1280px!important;
  margin:0 auto!important;
  display:grid!important;
  grid-template-columns:minmax(0,720px) minmax(340px,1fr)!important;
  column-gap:20px!important;
  align-items:start!important;
}
.spc-media-detail-stage>.tt_List_video_left,
.spc-media-detail-stage>.tt_List_video_right{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  float:none!important;
  margin:12px 0!important;
  padding:0!important;
}
.spc-media-detail-player{
  position:relative!important;
  width:100%!important;
  max-width:720px!important;
  aspect-ratio:16/9!important;
  height:auto!important;
  min-height:0!important;
  margin:0!important;
  padding:7px!important;
  overflow:hidden!important;
  border:1px solid #cfe5ef!important;
  border-radius:10px!important;
  background:#f5f9fb!important;
  box-shadow:0 5px 18px rgba(0,72,110,.07)!important;
}
.spc-media-detail-player iframe{
  position:absolute!important;
  inset:7px!important;
  width:calc(100% - 14px)!important;
  height:calc(100% - 14px)!important;
  min-height:0!important;
  display:block!important;
  border:0!important;
  background:#000!important;
}
.spc-media-detail-stage>.tt_List_video_right{
  overflow-y:auto!important;
  overflow-x:hidden!important;
  border:1px solid #dceaf0!important;
  border-radius:8px!important;
  background:#fff!important;
  scrollbar-gutter:stable!important;
}
.spc-media-detail-stage .tt_List_video_right_ct{
  display:flex!important;
  align-items:center!important;
  gap:11px!important;
  width:100%!important;
  min-height:82px!important;
  margin:0!important;
  padding:7px 10px!important;
  border-bottom:1px solid #e4edf1!important;
}
.spc-media-detail-stage .tt_List_video_right_ct_img{flex:0 0 112px!important;width:112px!important}
.spc-media-detail-stage .tt_List_video_right_ct_img figure{
  width:112px!important;height:63px!important;margin:0!important;padding:0!important;
  overflow:hidden!important;border-radius:6px!important;background:#f3f8fa!important
}
.spc-media-detail-stage .tt_List_video_right_ct_img img{
  display:block!important;width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important
}
.spc-media-detail-stage .tt_List_video_right_ct_name{
  display:flex!important;align-items:center!important;min-width:0!important;margin:0!important;padding:0!important;line-height:1.38!important
}
.spc-media-detail-stage .tt_List_video_right_ct_name a{
  display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:3!important;overflow:hidden!important;overflow-wrap:anywhere!important
}
.spc-media-detail-stage .vd_name{display:block!important;margin-top:7px!important;line-height:1.4!important}
.spc-media-detail-stage>.list_khac,
.spc-media-detail-stage>.spc-detail-related-grid{grid-column:1/-1!important;width:100%!important}
.spc-media-detail-stage>.list_khac{margin-top:26px!important}

@media (max-width:1100px) and (min-width:801px){
  .spc-media-detail-stage{grid-template-columns:minmax(0,62%) minmax(300px,38%)!important}
  .spc-detail-related-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:18px!important}
}
@media (max-width:800px){
  .master_content_center:has(.spc-detail-page){width:calc(100% - 24px)!important}
  .spc-media-detail-stage{display:block!important;width:100%!important;max-width:100%!important}
  .spc-media-detail-stage>.tt_List_video_left,
  .spc-media-detail-stage>.tt_List_video_right{height:auto!important;max-height:none!important;overflow:visible!important;margin:.75em 0!important}
  .spc-media-detail-player{width:100%!important;max-width:100%!important;aspect-ratio:16/9!important}
  .spc-detail-related-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}
}
@media (max-width:520px){
  .master_content_center:has(.spc-detail-page){width:calc(100% - 20px)!important}
  .spc-detail-related-grid{grid-template-columns:1fr!important;gap:12px!important}
  .spc-detail-card-title{min-height:0!important}
}

/* R44 - Modern related-content cards (shared detail pages)
   One reusable style: YouTube-inspired, responsive, no image cropping. */
.spc-detail-related-grid{
  gap:24px!important;
  align-items:stretch!important;
}
.spc-detail-card-inner{
  position:relative!important;
  border:0!important;
  border-radius:14px!important;
  background:#fff!important;
  box-shadow:0 2px 10px rgba(0,65,105,.07)!important;
  overflow:hidden!important;
  transition:transform .22s ease,box-shadow .22s ease!important;
}
.spc-detail-card-inner:hover{
  transform:translateY(-5px)!important;
  border-color:transparent!important;
  box-shadow:0 12px 28px rgba(0,65,105,.16)!important;
}
.spc-detail-card-media{
  padding:0!important;
  background:#f4f7f9!important;
}
.spc-detail-card-media figure{
  position:relative!important;
  width:100%!important;
  aspect-ratio:16/9!important;
  margin:0!important;
  border-radius:14px 14px 0 0!important;
  background:#f4f7f9!important;
  overflow:hidden!important;
}
.spc-detail-card-media img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  background:#f4f7f9!important;
  transition:transform .28s ease,filter .28s ease!important;
}
.spc-detail-card-media figure:after{
  content:"▶";
  position:absolute;
  left:50%;top:50%;
  width:46px;height:46px;
  display:flex;align-items:center;justify-content:center;
  transform:translate(-50%,-50%) scale(.86);
  padding-left:3px;
  border-radius:50%;
  color:#fff;
  background:rgba(0,101,170,.90);
  box-shadow:0 7px 20px rgba(0,55,95,.24);
  font-size:18px;line-height:1;
  opacity:0;
  transition:opacity .22s ease,transform .22s ease,background .22s ease!important;
  pointer-events:none;
}
.spc-detail-card-inner:hover .spc-detail-card-media img{
  transform:scale(1.025)!important;
  filter:brightness(.96)!important;
}
.spc-detail-card-inner:hover .spc-detail-card-media figure:after{
  opacity:1;
  transform:translate(-50%,-50%) scale(1);
  background:#e62117;
}
.spc-detail-card-title{
  min-height:64px!important;
  padding:11px 13px 13px!important;
  background:#fff!important;
  line-height:1.42!important;
}
.spc-detail-card-title a{
  color:#075f9e!important;
  font-weight:500!important;
  text-decoration:none!important;
  transition:color .2s ease!important;
}
.spc-detail-card-inner:hover .spc-detail-card-title a{
  color:#e66b12!important;
}
/* Optional NEW badge: add class spc-is-new to the card only when CMS has a real NEW flag. */
.spc-detail-card-inner.spc-is-new:before{
  content:"MỚI";
  position:absolute;z-index:3;top:10px;right:10px;
  padding:5px 10px;
  border-radius:999px;
  color:#fff;background:#f04438;
  font-size:11px;font-weight:700;letter-spacing:.35px;
  box-shadow:0 0 0 0 rgba(240,68,56,.45);
  animation:spcNewPulse 1.8s ease-out infinite;
}
@keyframes spcNewPulse{
  0%{box-shadow:0 0 0 0 rgba(240,68,56,.42)}
  70%{box-shadow:0 0 0 10px rgba(240,68,56,0)}
  100%{box-shadow:0 0 0 0 rgba(240,68,56,0)}
}
@media (prefers-reduced-motion:reduce){
  .spc-detail-card-inner,.spc-detail-card-media img,.spc-detail-card-media figure:after{transition:none!important}
  .spc-detail-card-inner.spc-is-new:before{animation:none!important}
}
@media (max-width:1100px) and (min-width:801px){
  .spc-detail-related-grid{gap:18px!important}
}
@media (max-width:800px){
  .spc-detail-related-grid{gap:16px!important}
  .spc-detail-card-inner:hover{transform:none!important}
}


/* =============================================================
   SPC UI 2026 R45 - HOME HEADER + 16:9 SLIDER FIT-TO-SCREEN
   Authoritative final override. Header remains in normal/sticky flow;
   home slider never hides under it and the complete artwork remains visible.
   ============================================================= */
.spc2026-header{position:sticky!important;top:0!important;height:82px!important;z-index:9999!important}
#content,#master_content{position:relative!important;z-index:auto!important}
#master_content>.spc-home-slider-viewport,
#master_content .spc-home-slider-viewport{
  clear:both!important;
  float:none!important;
  max-width:100%!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
.spc-home-slider-viewport img[data-u="image"]{
  object-fit:contain!important;
  object-position:center center!important;
}
@media(max-width:767px){
  .spc2026-header{height:72px!important}
  .spc-home-slider-viewport{
    width:min(100vw,calc((100vh - 72px) * 16 / 9))!important;
  }
}

/* =============================================================
   SPC UI 2026 R46 - AUTHORITATIVE UI OVERRIDES
   Search media alignment + full-width 16:9 hero + progressive media.
   Keep new layout work in this single stylesheet.
   ============================================================= */
/* HOME HERO: true full browser width, fixed 16:9 ratio. This intentionally
   allows vertical scrolling on 16:9 desktops: full-width + full 16:9 + an
   82px header cannot mathematically fit inside the same 16:9 viewport without
   cropping or distortion. Artwork is never stretched or cropped. */
.spc-home-slider-viewport{
  position:relative!important;width:100vw!important;max-width:none!important;
  aspect-ratio:16/9!important;height:auto!important;margin:0!important;padding:0!important;
  left:50%!important;transform:translateX(-50%)!important;overflow:hidden!important;background:#fff!important;
}
.spc-home-slider-viewport .Style_jssor_Slide{position:relative!important;top:0!important;left:0!important;margin:0!important;width:1600px;height:900px}
.spc-home-slider-viewport img[data-u="image"]{object-fit:contain!important;object-position:center!important}
@supports not (aspect-ratio:16/9){.spc-home-slider-viewport{height:56.25vw!important}}

/* SEARCH / MEDIA: balanced card gutters, centered thumbnail, safe title padding. */
.spc-search-page .spc-search-media-results{align-items:stretch!important;gap:18px!important}
.spc-search-page .spc-search-media-results .tt_List_video_cl{
  border:1px solid #cfe6f1!important;border-radius:12px!important;background:#fff!important;
  overflow:hidden!important;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease!important;
}
.spc-search-page .spc-search-media-results .tt_List_video_cl_ct{display:flex!important;flex-direction:column!important;height:100%!important}
.spc-search-page .spc-search-media-results .tt_List_video_cl_img{padding:12px 12px 0!important;background:#fff!important}
.spc-search-page .spc-search-media-results .tt_List_video_cl_img figure{
  width:100%!important;height:auto!important;aspect-ratio:16/9!important;margin:0 auto!important;
  display:flex!important;align-items:center!important;justify-content:center!important;background:#f5f8f9!important;border-radius:8px!important;
}
.spc-search-page .spc-search-media-results .tt_List_video_cl_img img{display:block!important;width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important;margin:auto!important}
.spc-search-page .spc-search-media-results .tt_List_video_cl_name{padding:11px 13px 14px!important;margin:0!important;line-height:1.42!important;min-height:58px!important;text-align:left!important}
.spc-search-page .spc-search-media-results .tt_List_video_cl_name a{display:block!important;text-decoration:none!important;overflow-wrap:anywhere!important}
/* V9: media hover controlled by the single search-card hover module. */
.spc-search-page .spc-search-media-results .tt_List_video_cl:hover img{transform:none!important}
@media(max-width:620px){.spc-search-page .spc-search-media-results .tt_List_video_cl_name{min-height:0!important;padding:10px 12px 13px!important}}

/* MEDIA LIBRARY: thumbnails instead of eager YouTube iframes. */
.spc-media-page .tt_List_video{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:20px!important;width:100%!important}
.spc-media-page .tt_List_video>span,.spc-media-page .tt_List_video>table,.spc-media-page .tt_List_video>tbody{display:contents!important}
.spc-media-page .tt_List_video_cl{display:block!important;padding:0!important;border:0!important;border-radius:13px!important;overflow:hidden!important;background:#fff!important;box-shadow:0 3px 14px rgba(0,65,105,.08)!important;transition:transform .2s ease,box-shadow .2s ease!important}
.spc-media-page .spc-media-card,.spc-media-page .spc-media-card-link{display:block!important;width:100%!important;height:100%!important;text-decoration:none!important}
.spc-media-page .spc-media-card-thumb{position:relative!important;width:100%!important;aspect-ratio:16/9!important;margin:0!important;overflow:hidden!important;background:#f3f7f9!important}
.spc-media-page .spc-media-card-thumb:after{content:"▶";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;padding-left:3px;color:#fff;background:rgba(0,101,170,.88);opacity:.92}
.spc-media-page .spc-media-card-thumb img{display:block!important;width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important}

.spc-media-page .tt_List_video_cl:hover{transform:translateY(-4px)!important;box-shadow:0 12px 26px rgba(0,65,105,.15)!important}
.spc-media-page .tt_List_video_cl:hover .spc-media-card-thumb:after{background:#e62117!important}
.spc-media-lazy-sentinel{height:2px!important;width:100%!important;clear:both!important}
@media(max-width:1100px){.spc-media-page .tt_List_video{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:760px){.spc-media-page .tt_List_video{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}}
@media(max-width:480px){.spc-media-page .tt_List_video{grid-template-columns:1fr!important}}

/* =============================================================
   R47 - MEDIA DETAIL POLISH
   Scope: media detail only. Keep thumbnails/player flush and give
   share actions more breathing room below the title.
   ============================================================= */
.spc-media-detail-stage .tt_List_video_left>.spc-sharebar{
  margin-top:16px!important;
  margin-bottom:18px!important;
}

/* Main video: frame and media share the same bounds; no pale inset. */
.spc-media-detail-stage .spc-media-detail-player{
  padding:0!important;
  border-radius:9px!important;
  background:#000!important;
}
.spc-media-detail-stage .spc-media-detail-player iframe{
  inset:0!important;
  width:100%!important;
  height:100%!important;
  border-radius:8px!important;
  background:#000!important;
}

/* Playlist thumbnails: exact 16:9 fill, subtle rounded corners. */
.spc-media-detail-stage .tt_List_video_right_ct_img figure{
  background:transparent!important;
  border-radius:7px!important;
}
.spc-media-detail-stage .tt_List_video_right_ct_img img{
  object-fit:cover!important;
  border-radius:7px!important;
}

/* Related-video cards: thumbnail sits flush with its card instead of
   floating inside a larger pale thumbnail background. */
.spc-media-detail-stage .spc-detail-card-media{
  padding:0!important;
  overflow:hidden!important;
}
.spc-media-detail-stage .spc-detail-card-media figure{
  border-radius:10px 10px 0 0!important;
  background:transparent!important;
}
.spc-media-detail-stage .spc-detail-card-media img{
  object-fit:cover!important;
  border-radius:10px 10px 0 0!important;
}

@media(max-width:800px){
  .spc-media-detail-stage .tt_List_video_left>.spc-sharebar{
    margin-top:14px!important;
    margin-bottom:16px!important;
  }
}


/* =============================================================
   SPC UI 2026 R48 - LIBRARY/CATEGORY CONSOLIDATION
   One visual system for Media, News and Products + true deferred media.
   ============================================================= */
.spc-modern-page .spc-category-tabs{
  display:flex!important;align-items:center!important;gap:9px!important;min-height:48px!important;
  margin:0 0 22px!important;padding:5px 2px!important;overflow-x:auto!important;overflow-y:hidden!important;
  scrollbar-width:thin!important;background:transparent!important;border:0!important;box-shadow:none!important;
}
.spc-modern-page .spc-category-tab{
  flex:0 0 auto!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
  min-height:40px!important;padding:8px 16px!important;border:1px solid #c9e0eb!important;border-radius:999px!important;
  background:#fff!important;color:#075f94!important;font-weight:600!important;line-height:1.2!important;
  box-shadow:0 3px 10px rgba(0,70,110,.045)!important;transition:.2s ease!important;
}
.spc-modern-page .spc-category-tab:hover{transform:translateY(-1px)!important;border-color:#86c4df!important;box-shadow:0 7px 16px rgba(0,82,130,.10)!important}
.spc-modern-page .spc-category-tab.active{background:#0787c1!important;color:#fff!important;border-color:#0787c1!important;box-shadow:0 7px 17px rgba(0,116,176,.18)!important}

/* Hide legacy category headings: tabs are now the single category navigation. */
.spc-products-page .LV_Frame>.C_Name,.spc-media-page .LV_Frame>.C_Name,.spc-news-page .LV_Frame>.C_Name{display:none!important}
.spc-products-page .LV_Frame,.spc-media-page .LV_Frame,.spc-news-page .LV_Frame{margin:0!important;padding:0!important}

/* Shared card finish. */
.spc-media-page .tt_List_video_cl,.spc-products-page .sp_List_cl,.spc-news-page .tt_List_cl_ct{
  border:1px solid #e1ebf0!important;border-radius:14px!important;background:#fff!important;
  box-shadow:0 5px 18px rgba(0,65,105,.075)!important;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease!important;
}
.spc-media-page .tt_List_video_cl:hover,.spc-products-page .sp_List_cl:hover{
  transform:translateY(-4px)!important;border-color:#b7ddea!important;box-shadow:0 13px 28px rgba(0,70,112,.14)!important;
}
.spc-media-page .spc-media-card-thumb{border-radius:13px 13px 0 0!important;background:#eef4f7!important}
.spc-media-page .spc-media-card-thumb img{object-fit:contain!important}


/* Product cards had a visibly shorter body than other library cards. Normalize rhythm. */
.spc-products-page .sp_List_cl{min-height:350px!important}
.spc-products-page .sp_List_cl_img{height:255px!important;padding:18px 18px 10px!important}
.spc-products-page .sp_List_cl_td{min-height:78px!important;padding:13px 14px 17px!important;align-items:flex-start!important}

/* Progressive-loading sentinels are visually neutral. */
.spc-media-lazy-sentinel,.spc-news-lazy-sentinel,.spc-lazy-sentinel-all{height:3px!important;width:100%!important;clear:both!important;grid-column:1/-1!important}
.spc-deferred-img{transition:opacity .18s ease!important}

@media(max-width:760px){
 .spc-modern-page .spc-category-tabs{gap:7px!important;margin-bottom:16px!important;padding-bottom:7px!important}
 .spc-modern-page .spc-category-tab{min-height:38px!important;padding:7px 13px!important;font-size:13px!important}
 .spc-products-page .sp_List_cl{min-height:300px!important}
 .spc-products-page .sp_List_cl_img{height:210px!important}
 
}
@media(max-width:480px){
 .spc-modern-page .spc-category-tabs{margin-left:-2px!important;margin-right:-2px!important}
 .spc-products-page .sp_List_cl{min-height:280px!important}
 .spc-products-page .sp_List_cl_img{height:190px!important}
}

/* =============================================================
   SPC UI 2026 R49 - SURFACE / CATEGORY / MEDIA CONSOLIDATION
   White clean surfaces, subtle inner border + soft shadow, full category
   navigation on detail-category pages, and consistent media cards.
   ============================================================= */
/* Category bar: same visual language everywhere, including server-rendered ID pages. */
.spc-modern-page .spc-category-tabs,
.spc-category-id-page .spc-category-tabs{display:flex!important;align-items:center!important;gap:10px!important;min-height:52px!important;margin:0 0 24px!important;padding:6px 2px!important;overflow-x:auto!important;scrollbar-width:thin!important;background:transparent!important}
.spc-category-tabs .spc-category-tab{flex:0 0 auto!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:40px!important;padding:8px 16px!important;border:1px solid #c9e1ee!important;border-radius:999px!important;background:#fff!important;color:#00659f!important;font-weight:600!important;text-decoration:none!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 2px 7px rgba(0,76,118,.035)!important;transition:.18s ease!important}
.spc-category-tabs .spc-category-tab:hover{border-color:#8dc9e5!important;box-shadow:0 5px 14px rgba(0,91,145,.09)!important;transform:translateY(-1px)!important}
.spc-category-tabs .spc-category-tab.active{background:#078bc4!important;border-color:#078bc4!important;color:#fff!important;box-shadow:0 6px 16px rgba(0,116,171,.18)!important}

/* Library/media/news surfaces: remove pale blocks; use a crisp card edge + inner highlight. */
.spc-media-page .tt_List_video_cl,
.spc-news-page .tt_List_cl,
.spc-doctor-page:not(.spc-doctor-menu-page) .tt_List_cl,
.spc-search-page .spc-search-media-results .tt_List_video_cl,
.spc-media-detail-stage .spc-detail-card-inner,
.spc-media-detail-stage .tt_List_video_right_cl{background:#fff!important;border:1px solid #d9e8ef!important;border-radius:12px!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.85),0 6px 18px rgba(0,63,97,.075)!important;overflow:hidden!important}
.spc-media-page .tt_List_video_cl:hover,

.spc-doctor-page:not(.spc-doctor-menu-page) .tt_List_cl:hover,
.spc-media-detail-stage .spc-detail-card-inner:hover{border-color:#a8d5e8!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.9),0 12px 28px rgba(0,80,122,.13)!important;transform:translateY(-3px)!important}

/* Media/list thumbnails: no grey panel behind artwork. */
.spc-media-page .spc-media-card-thumb,
.spc-search-page .spc-search-media-results .tt_List_video_cl_img,
.spc-search-page .spc-search-media-results .tt_List_video_cl_img figure,
.spc-media-detail-stage .spc-detail-card-media,
.spc-media-detail-stage .spc-detail-card-media figure{background:#fff!important}
.spc-search-page .spc-search-media-results .tt_List_video_cl_img{padding:0!important}
.spc-search-page .spc-search-media-results .tt_List_video_cl_img figure{border-radius:11px 11px 0 0!important;overflow:hidden!important}
.spc-search-page .spc-search-media-results .tt_List_video_cl_img img{object-fit:cover!important}

/* Detail page: make right-hand playlist entries feel like individual compact cards. */
.spc-media-detail-stage .tt_List_video_right{padding:8px!important;background:#fff!important;border:1px solid #d8e8ef!important;border-radius:12px!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.9),0 7px 20px rgba(0,67,102,.075)!important}
.spc-media-detail-stage .tt_List_video_right_cl{display:block!important;margin:0 0 8px!important;border-radius:9px!important;box-shadow:0 3px 10px rgba(0,62,96,.055)!important}
.spc-media-detail-stage .tt_List_video_right_cl:last-child{margin-bottom:0!important}
.spc-media-detail-stage .tt_List_video_right_ct{display:flex!important;align-items:center!important;gap:12px!important;padding:7px!important;background:#fff!important}
.spc-media-detail-stage .tt_List_video_right_ct_img{flex:0 0 110px!important;width:110px!important}
.spc-media-detail-stage .tt_List_video_right_ct_img figure{aspect-ratio:16/9!important;overflow:hidden!important;margin:0!important}
.spc-media-detail-stage .tt_List_video_right_ct_name{padding:0 8px 0 0!important;line-height:1.35!important}
.spc-media-detail-stage .spc-detail-related-grid{gap:22px!important}
.spc-media-detail-stage .spc-detail-card-title{padding:12px 14px 15px!important;min-height:60px!important;background:#fff!important}

/* Product/category ID pages inherit the same page width and tab spacing. */
.spc-category-id-page>.mt_content_ct_c{margin-top:0!important}
.spc-category-id-page .C_Name{display:none!important}

@media(max-width:800px){
 .spc-category-tabs .spc-category-tab{min-height:38px!important;padding:7px 14px!important}
 .spc-media-detail-stage .tt_List_video_right{padding:6px!important}
 .spc-media-detail-stage .tt_List_video_right_ct_img{flex-basis:96px!important;width:96px!important}
 .spc-media-detail-stage .spc-detail-related-grid{gap:15px!important}
}
/* Search/library page canvas stays clean white; cards provide the depth. */
.spc-search-page,.spc-search-page .mt_content_ct_c,
.spc-media-page,.spc-media-page .mt_content_ct_c,
.spc-news-page,.spc-news-page .mt_content_ct_c,
.spc-doctor-page,.spc-doctor-page .mt_content_ct_c{background:#fff!important}

/* =============================================================
   SPC UI 2026 R50 - COMPACT TABS + PREMIUM LIBRARY CARDS
   ============================================================= */
/* Compact category navigation: keep every group visible but consume less vertical space. */
.spc-modern-page .spc-category-tabs,
.spc-category-id-page .spc-category-tabs{
  gap:8px!important;min-height:40px!important;margin:0 0 18px!important;padding:3px 2px!important;
}
.spc-category-tabs .spc-category-tab{
  min-height:34px!important;height:34px!important;padding:5px 14px!important;font-size:14px!important;line-height:1!important;
  border-radius:18px!important;
}
.spc-category-tabs .spc-category-tab.active{box-shadow:0 4px 12px rgba(0,116,171,.16)!important}

/* Library cards use the same elevated white surface as Media Detail. */
.spc-media-page .tt_List_video_cl,
.spc-news-page .tt_List_cl,
.spc-doctor-page:not(.spc-doctor-menu-page) .tt_List_cl{
  background:#fff!important;border:1px solid #d7e7ef!important;border-radius:12px!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.95),0 7px 20px rgba(0,63,97,.085)!important;
  overflow:hidden!important;transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease!important;
}
.spc-media-page .tt_List_video_cl:hover,

.spc-doctor-page:not(.spc-doctor-menu-page) .tt_List_cl:hover{
  border-color:#9fcfe3!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.98),0 13px 30px rgba(0,80,122,.145)!important;
  transform:translateY(-3px)!important;
}
.spc-media-page .spc-media-card-thumb{background:#fff!important;border-bottom:1px solid #edf3f6!important}
.spc-media-page .spc-media-card-thumb img{background:#fff!important;object-fit:contain!important}


@media(max-width:800px){
 .spc-modern-page .spc-category-tabs,.spc-category-id-page .spc-category-tabs{min-height:38px!important;margin-bottom:14px!important;gap:7px!important}
 .spc-category-tabs .spc-category-tab{min-height:32px!important;height:32px!important;padding:4px 12px!important;font-size:13px!important}
 
}


/* =============================================================
   R51 - MEDIA THUMBNAIL FULL-BLEED + YOUTUBE FALLBACK
   Thumbnail always fills the complete 16:9 media surface.
   No white letterboxing inside cards; play button overlays image.
   ============================================================= */
.spc-media-page .spc-media-card-thumb{
  width:100%!important;aspect-ratio:16/9!important;height:auto!important;
  margin:0!important;padding:0!important;background:#eef3f6!important;
  overflow:hidden!important;border-radius:11px 11px 0 0!important;
}
.spc-media-page .spc-media-card-thumb img{
  display:block!important;width:100%!important;height:100%!important;
  min-width:100%!important;min-height:100%!important;margin:0!important;padding:0!important;
  object-fit:cover!important;object-position:center!important;background:#eef3f6!important;
}
/* Search media uses the same full-bleed crop instead of white/grey letterboxing. */
.spc-search-page .spc-search-media-results .tt_List_video_cl_img figure{background:#eef3f6!important;overflow:hidden!important}
.spc-search-page .spc-search-media-results .tt_List_video_cl_img img{object-fit:cover!important;object-position:center!important}

/* ============================================================
   SPC UI R52 - Media progressive loading + direct play
   ============================================================ */
.spc-media-page .spc-progressive-hidden{display:none!important}
.spc-media-page .spc-progressive-group-hidden{display:none!important}
.spc-media-page .spc-media-card-thumb{position:relative!important;width:100%!important;aspect-ratio:16/9!important;overflow:hidden!important;background:#eef4f7!important;border-radius:11px 11px 0 0!important}
.spc-media-page .spc-media-card-thumb:after{display:none!important;content:none!important}
.spc-media-page .spc-media-thumb-detail{display:block!important;width:100%!important;height:100%!important}
.spc-media-page .spc-media-card-thumb img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important;margin:0!important}
.spc-media-page .spc-media-play{position:absolute!important;z-index:4!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;width:46px!important;height:46px!important;border:0!important;border-radius:50%!important;background:rgba(0,132,196,.9)!important;box-shadow:0 5px 15px rgba(0,70,110,.25)!important;cursor:pointer!important;padding:0!important;transition:transform .18s ease,background .18s ease!important}
.spc-media-page .spc-media-play:before{content:""!important;position:absolute!important;left:18px!important;top:14px!important;border-left:14px solid #fff!important;border-top:9px solid transparent!important;border-bottom:9px solid transparent!important}
.spc-media-page .spc-media-play:hover{background:#e62117!important;transform:translate(-50%,-50%) scale(1.08)!important}
.spc-media-page .spc-media-title-link{display:block!important;text-decoration:none!important;color:inherit!important}
.spc-media-page .spc-inline-youtube{display:block!important;width:100%!important;height:100%!important;position:absolute!important;inset:0!important;border:0!important;background:#000!important}
@media(max-width:600px){.spc-media-page .spc-media-play{width:42px!important;height:42px!important}.spc-media-page .spc-media-play:before{left:17px!important;top:13px!important;border-left-width:12px!important;border-top-width:8px!important;border-bottom-width:8px!important}}

/* ========================================================================== 
   SPC UI R53 - MEDIA PROGRESSIVE VISIBILITY SAFETY
   --------------------------------------------------------------------------
   Legacy Media CSS hides every .LV_Frame and expects .spc-active-group before
   it becomes visible. JavaScript R53 owns that class. These final rules make
   the contract explicit and prevent older declarations from hiding valid data.
   DO NOT remove .spc-active-group unless the Media JS is redesigned together.
   ========================================================================== */
.spc-media-page .LV_Frame.spc-active-group {
    display: block !important; /* Nhóm được JS chọn: cho phép render card bên trong. */
}
.spc-media-page .LV_Frame.spc-progressive-group-hidden {
    display: none !important;  /* Chỉ dùng khi user chọn một nhóm cụ thể. */
}
.spc-media-page .tt_List_video_cl.spc-progressive-hidden {
    display: none !important;  /* Card chưa tới batch cuộn: không chiếm layout. */
}

/* ========================================================================== 
   SPC UI R54 - MODERN MEDIA DETAIL / RECOMMENDATION
   --------------------------------------------------------------------------
   Mục tiêu:
   - Thay heading gradient legacy bằng heading trắng, gọn, hiện đại.
   - Card recommendation và playlist dùng cùng một visual system.
   - Thumbnail luôn phủ kín 16:9; không để nền trắng thừa.
   - Progressive item bị ẩn không chiếm layout; JS R54 sẽ mở theo batch.
   ========================================================================== */
.spc-media-detail-stage .spc-related-heading{
  clear:both!important;display:flex!important;align-items:center!important;gap:13px!important;
  width:100%!important;margin:30px 0 18px!important;padding:0 0 13px!important;
  background:#fff!important;border:0!important;border-bottom:1px solid #dbe9f0!important;
  position:relative!important;box-sizing:border-box!important;
}
.spc-media-detail-stage .spc-related-heading:after{
  content:""!important;position:absolute!important;left:0!important;bottom:-1px!important;
  width:74px!important;height:3px!important;border-radius:3px!important;background:#078bc4!important;
}
.spc-media-detail-stage .spc-related-heading-icon{
  flex:0 0 38px!important;width:38px!important;height:38px!important;border-radius:11px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  background:linear-gradient(145deg,#078bc4,#056da7)!important;
  box-shadow:0 7px 18px rgba(0,112,170,.20)!important;
}
.spc-media-detail-stage .spc-related-heading-icon span{
  width:0!important;height:0!important;border-top:7px solid transparent!important;
  border-bottom:7px solid transparent!important;border-left:11px solid #fff!important;margin-left:3px!important;
}
.spc-media-detail-stage .spc-related-heading-copy{min-width:0!important}
.spc-media-detail-stage .spc-related-heading h2{
  margin:0!important;padding:0!important;color:#075f94!important;font-size:18px!important;
  line-height:1.18!important;font-weight:750!important;letter-spacing:.2px!important;
}
.spc-media-detail-stage .spc-related-heading p{
  margin:3px 0 0!important;padding:0!important;color:#6b7f8b!important;font-size:12.5px!important;line-height:1.3!important;
}

/* Recommendation cards: cùng surface với playlist, thumbnail full-bleed 16:9. */
.spc-media-detail-stage .spc-detail-card-inner{
  height:100%!important;background:#fff!important;border:1px solid #d9e8ef!important;border-radius:13px!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.95),0 7px 20px rgba(0,63,97,.08)!important;
  overflow:hidden!important;transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease!important;
}
.spc-media-detail-stage .spc-detail-card-inner:hover{
  transform:translateY(-4px)!important;border-color:#9fcfe3!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.98),0 14px 30px rgba(0,80,122,.14)!important;
}
.spc-media-detail-stage .spc-detail-card-media,
.spc-media-detail-stage .spc-detail-card-media a,
.spc-media-detail-stage .spc-detail-card-media figure{
  display:block!important;width:100%!important;aspect-ratio:16/9!important;height:auto!important;
  margin:0!important;padding:0!important;overflow:hidden!important;background:#eef4f7!important;
}
.spc-media-detail-stage .spc-detail-card-media img{
  display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important;
  transition:transform .28s ease!important;
}
.spc-media-detail-stage .spc-detail-card-inner:hover .spc-detail-card-media img{transform:scale(1.025)!important}
.spc-media-detail-stage .spc-detail-card-title{padding:12px 14px 15px!important;min-height:58px!important;background:#fff!important}
.spc-media-detail-stage .spc-detail-card-title a{color:#0068a1!important;line-height:1.42!important;text-decoration:none!important}
.spc-media-detail-stage .spc-detail-card-title a:hover{color:#078bc4!important}

/* Playlist phải: thumbnail cũng full 16:9 và card tách lớp rõ hơn. */
.spc-media-detail-stage .tt_List_video_right{scrollbar-width:thin!important;scrollbar-color:#9bc9dd transparent!important}
.spc-media-detail-stage .tt_List_video_right_cl{
  background:#fff!important;border:1px solid #dce9ef!important;border-radius:10px!important;
  box-shadow:0 3px 11px rgba(0,65,100,.055)!important;overflow:hidden!important;transition:.18s ease!important;
}
.spc-media-detail-stage .tt_List_video_right_cl:hover{border-color:#acd5e6!important;box-shadow:0 7px 17px rgba(0,77,116,.10)!important}
.spc-media-detail-stage .tt_List_video_right_ct_img figure{background:#eef4f7!important;border-radius:7px!important}
.spc-media-detail-stage .tt_List_video_right_ct_img img{width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important}

/* JS R54 dùng class này cho cả playlist và recommendation. */
.spc-media-detail-stage .spc-detail-progressive-hidden{display:none!important}

@media(max-width:800px){
  .spc-media-detail-stage .spc-related-heading{margin-top:22px!important;margin-bottom:14px!important;gap:10px!important;padding-bottom:11px!important}
  .spc-media-detail-stage .spc-related-heading-icon{width:34px!important;height:34px!important;flex-basis:34px!important;border-radius:10px!important}
  .spc-media-detail-stage .spc-related-heading h2{font-size:16px!important}
  .spc-media-detail-stage .spc-related-heading p{font-size:12px!important}
  /* Mobile không ép playlist cao bằng player; các batch vẫn mở khi cuộn trang. */
  .spc-media-detail-stage .tt_List_video_right{max-height:none!important;height:auto!important}
}

/* ==========================================================================
   R55 - Media Detail search + lightweight progressive thumbnails
   - Search sits above the right playlist and stays compact.
   - Hidden progressive cards remain display:none !important to beat legacy CSS.
   - Deferred images use a 1px placeholder until JS activates data-src.
   ========================================================================== */
.spc-media-side-panel{min-width:0!important;display:flex!important;flex-direction:column!important;gap:8px!important}
.spc-media-side-panel>.tt_List_video_right{width:100%!important;margin:0!important}
.spc-media-search{height:42px!important;display:flex!important;align-items:center!important;gap:8px!important;padding:0 10px!important;background:#fff!important;border:1px solid #d7e7ef!important;border-radius:12px!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.95),0 4px 14px rgba(0,74,112,.06)!important;transition:border-color .2s ease,box-shadow .2s ease!important}
.spc-media-search:focus-within{border-color:#62b6dd!important;box-shadow:0 0 0 3px rgba(0,143,202,.09),0 5px 16px rgba(0,74,112,.08)!important}
.spc-media-search-icon{flex:0 0 auto!important;font-size:22px!important;line-height:1!important;color:#087db7!important;transform:rotate(-18deg)}
.spc-media-search input{min-width:0!important;flex:1 1 auto!important;height:38px!important;border:0!important;outline:0!important;background:transparent!important;color:#174f70!important;font:inherit!important;padding:0!important}
.spc-media-search input::placeholder{color:#8197a3!important}
.spc-media-search button{display:none!important;width:28px!important;height:28px!important;border:0!important;border-radius:50%!important;background:#edf6fa!important;color:#38718d!important;font-size:20px!important;line-height:26px!important;cursor:pointer!important;padding:0!important}
.spc-media-search button.is-visible{display:block!important}
.spc-media-search button:hover{background:#dff1f8!important;color:#006da3!important}
.spc-media-search-empty{padding:12px 14px!important;border:1px dashed #c9dfe9!important;border-radius:10px!important;background:#f8fbfc!important;color:#607d8b!important;text-align:center!important;font-size:13px!important}
.spc-search-no-match{display:none!important}
.spc-detail-progressive-hidden{display:none!important}
.spc-deferred-thumb{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important;background:#eef4f7!important}
@media(max-width:800px){.spc-media-side-panel{margin-top:14px!important}.spc-media-search{height:40px!important}.spc-media-search input{height:36px!important}}
/* R55 compatibility: side panel replaces the old direct .tt_List_video_right grid child. */
.spc-media-detail-stage>.spc-media-side-panel{min-width:0!important;width:100%!important;height:auto!important}
@media(min-width:801px){.spc-media-detail-stage>.spc-media-side-panel{grid-column:2!important;grid-row:1!important}.spc-media-detail-stage>.tt_List_video_left{grid-column:1!important;grid-row:1!important}}
@media(max-width:800px){.spc-media-detail-stage>.spc-media-side-panel{width:100%!important;max-width:100%!important}}

/* ========================================================================== 
   R56 - MEDIA DETAIL ALIGNMENT
   Mục tiêu: mép trên cột playlist không cao hơn video chính; desktop giữ hai cột
   cân đối, mobile trả về flow tự nhiên. Chỉ override layout Media Detail.
   ========================================================================== */
@media (min-width:801px){
  .spc-media-detail-stage>.spc-media-side-panel{
    margin-top:12px!important; /* bù khoảng lệch thực tế giữa search và player legacy */
  }
}
@media (max-width:800px){
  .spc-media-detail-stage>.spc-media-side-panel{margin-top:14px!important}
}


/* ==========================================================================
   R57 - MEDIA CARD CONSISTENCY + GLOBAL PAGE TRANSITION
   - Card recommendation có chiều cao đồng đều theo hàng.
   - Thumbnail 16:9 cố định; title clamp 2 dòng để hàng không lệch.
   - Loading overlay dùng cho điều hướng nội bộ, tạo phản hồi tức thì khi server WebForms đang dựng trang.
   ========================================================================== */
.spc-media-detail-stage .spc-detail-related-grid{align-items:stretch!important}
.spc-media-detail-stage .spc-detail-card{height:100%!important;min-height:0!important}
.spc-media-detail-stage .spc-detail-card-inner{display:flex!important;flex-direction:column!important;height:100%!important;min-height:286px!important}
.spc-media-detail-stage .spc-detail-card-media{flex:0 0 auto!important}
.spc-media-detail-stage .spc-detail-card-title{flex:1 1 auto!important;min-height:68px!important;max-height:68px!important;overflow:hidden!important}
.spc-media-detail-stage .spc-detail-card-title a{display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;overflow:hidden!important}

.spc-page-loader{position:fixed!important;inset:0!important;z-index:2147483000!important;display:flex!important;align-items:center!important;justify-content:center!important;background:rgba(255,255,255,.58)!important;backdrop-filter:blur(2px)!important;opacity:0!important;visibility:hidden!important;pointer-events:none!important;transition:opacity .16s ease,visibility .16s ease!important}
.spc-page-loader.is-active{opacity:1!important;visibility:visible!important;pointer-events:auto!important}
.spc-page-loader-box{display:flex!important;align-items:center!important;gap:11px!important;padding:12px 17px!important;border:1px solid #d4e8f1!important;border-radius:14px!important;background:rgba(255,255,255,.96)!important;box-shadow:0 12px 34px rgba(0,70,105,.16)!important;color:#075f94!important;font-size:13px!important}
.spc-page-loader-spinner{width:22px!important;height:22px!important;border:3px solid #d8edf6!important;border-top-color:#078bc4!important;border-radius:50%!important;animation:spcLoaderSpin .72s linear infinite!important}
@keyframes spcLoaderSpin{to{transform:rotate(360deg)}}
body.spc-page-leaving .master_content_center,body.spc-page-leaving .master_content{opacity:.88!important;transition:opacity .16s ease!important}
@media(prefers-reduced-motion:reduce){.spc-page-loader,.spc-page-loader-spinner,body.spc-page-leaving .master_content_center,body.spc-page-leaving .master_content{transition:none!important;animation:none!important}}
@media(max-width:800px){.spc-media-detail-stage .spc-detail-card-inner{min-height:0!important}.spc-media-detail-stage .spc-detail-card-title{min-height:58px!important;max-height:58px!important}}


/* ==========================================================================
   R58 - MEDIA DETAIL EXACT ALIGNMENT (repaired in R59)
   Desktop: playlist panel follows the main player alignment; mobile uses normal flow.
   ========================================================================== */
@media (min-width:801px){
  .spc-media-detail-stage{align-items:start!important}
  .spc-media-detail-stage>.tt_List_video_left,
  .spc-media-detail-stage>.spc-media-side-panel{margin-top:12px!important}
  .spc-media-detail-stage>.spc-media-side-panel{display:flex!important;flex-direction:column!important;overflow:hidden!important}
  .spc-media-detail-stage>.spc-media-side-panel>.spc-media-search{flex:0 0 42px!important}
  .spc-media-detail-stage>.spc-media-side-panel>.spc-media-search-empty{flex:0 0 auto!important}
  .spc-media-detail-stage>.spc-media-side-panel>.tt_List_video_right{flex:1 1 0!important;min-height:0!important;height:auto!important;max-height:none!important;overflow-y:auto!important}
}

/* ==========================================================================
   R59 - LIBRARY SEARCH + MEDIA GROUP SPACING + HOVER PLAY
   1) Search uses one modern pill control; legacy theme cannot collapse it to raw input/button.
   2) Separate legacy Media groups visually when "Tất cả" is active.
   3) Play icon stays hidden until card hover/focus so thumbnails remain unobstructed.
   ========================================================================== */
.spc-library-search{
  box-sizing:border-box!important;width:min(680px,100%)!important;height:46px!important;
  margin:12px 0 20px!important;padding:4px 5px 4px 15px!important;
  display:flex!important;align-items:center!important;gap:9px!important;
  background:#fff!important;border:1px solid #c9e0eb!important;border-radius:14px!important;
  box-shadow:0 5px 16px rgba(0,73,108,.07)!important;overflow:hidden!important;
}
.spc-library-search:focus-within{border-color:#58b6dd!important;box-shadow:0 0 0 3px rgba(0,143,202,.09),0 7px 20px rgba(0,73,108,.10)!important}
.spc-library-search-icon{flex:0 0 auto!important;width:20px!important;font-size:20px!important;color:#087db7!important;line-height:1!important;text-align:center!important;transform:rotate(-18deg)!important}
.spc-library-search input[type="search"]{
  box-sizing:border-box!important;display:block!important;flex:1 1 auto!important;min-width:0!important;width:auto!important;height:36px!important;
  margin:0!important;padding:0 4px!important;border:0!important;border-radius:0!important;outline:0!important;
  background:transparent!important;box-shadow:none!important;color:#174f70!important;font:14px/36px Arial,sans-serif!important;
}
.spc-library-search input[type="search"]::placeholder{color:#8197a3!important;opacity:1!important}
.spc-library-search button[type="submit"]{
  box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important;
  width:auto!important;height:36px!important;margin:0!important;padding:0 17px!important;border:0!important;border-radius:10px!important;
  background:#078bc4!important;color:#fff!important;font:600 13px/36px Arial,sans-serif!important;cursor:pointer!important;
  box-shadow:none!important;transition:background .18s ease,transform .18s ease!important;
}
.spc-library-search button[type="submit"]:hover{background:#006fa5!important;transform:translateY(-1px)!important}

/* Mỗi nhóm Media legacy có khoảng thở riêng khi hiển thị Tất cả; không còn hai nhóm dính mép nhau. */
.spc-media-page .LV_Frame.spc-active-group{margin:0 0 24px!important}
.spc-media-page .LV_Frame.spc-active-group:last-child{margin-bottom:0!important}

/* Thumbnail sạch: chỉ hiện nút Play khi hover/focus card. */
.spc-media-page .spc-media-play,
.spc-media-page .spc-media-card-thumb:after{
  opacity:0!important;visibility:hidden!important;pointer-events:none!important;
  transition:opacity .18s ease,visibility .18s ease,transform .18s ease,background .18s ease!important;
}
.spc-media-page .spc-media-card:hover .spc-media-play,
.spc-media-page .spc-media-card:focus-within .spc-media-play,
.spc-media-page .spc-media-card:hover .spc-media-card-thumb:after,
.spc-media-page .spc-media-card:focus-within .spc-media-card-thumb:after{
  opacity:.96!important;visibility:visible!important;pointer-events:auto!important;
}
/* CSS cũ tạo cả :after và button Play. Khi card đã có button thật, bỏ pseudo-icon để chỉ còn 1 nút. */
.spc-media-page .spc-media-card-thumb:has(.spc-media-play):after{display:none!important}

@media(max-width:600px){
  .spc-library-search{height:44px!important;margin:10px 0 16px!important;padding:4px 5px 4px 12px!important;border-radius:12px!important}
  .spc-library-search input[type="search"]{font-size:13px!important}
  .spc-library-search button[type="submit"]{height:34px!important;padding:0 12px!important;font-size:12px!important}
}
@media(hover:none){
  /* Thiết bị cảm ứng: giữ thumbnail hoàn toàn sạch; chạm ảnh/tên mở Media Detail. */
  .spc-media-page .spc-media-play{display:none!important}
}

/* ========================================================================== 
   R60 - COMPACT LIVE MEDIA SEARCH + SCOPED DIRECT PLAY
   - Ô tìm kiếm Media nhỏ gọn, lọc client-side; không submit/reload.
   - Nút Play chỉ hiện khi hover/focus trên desktop; click nút phát inline.
   - Scope riêng, không tác động player chính Media Detail.
   ========================================================================== */
.spc-media-page .spc-library-search--live{width:min(390px,100%)!important;height:40px!important;margin:8px 0 18px!important;padding:3px 8px 3px 12px!important;border-radius:12px!important}
.spc-media-page .spc-library-search--live input[type="search"]{height:32px!important;font-size:13px!important;line-height:32px!important}
.spc-library-search-clear{display:none!important;flex:0 0 28px!important;width:28px!important;height:28px!important;margin:0!important;padding:0!important;border:0!important;border-radius:50%!important;background:#eef6fa!important;color:#39728e!important;font-size:18px!important;line-height:28px!important;cursor:pointer!important}
.spc-library-search-clear.is-visible{display:block!important}

/* R60: khôi phục direct-play trên danh sách Media; R59 chỉ ẩn khi chưa hover. */
@media(hover:hover){
 .spc-media-page .spc-media-card:hover .spc-media-play,.spc-media-page .spc-media-card:focus-within .spc-media-play{display:block!important;opacity:.96!important;visibility:visible!important;pointer-events:auto!important}
}

/* Media Detail: nút play cho playlist phải + Video dành cho bạn. */
.spc-media-detail-stage .spc-detail-inline-media{position:relative!important;overflow:hidden!important}
.spc-media-detail-stage .spc-detail-inline-play{position:absolute!important;z-index:5!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%) scale(.92)!important;width:44px!important;height:44px!important;padding:0!important;border:0!important;border-radius:50%!important;background:rgba(0,132,196,.92)!important;box-shadow:0 5px 16px rgba(0,55,90,.22)!important;opacity:0!important;visibility:hidden!important;pointer-events:none!important;cursor:pointer!important;transition:.18s ease!important}
.spc-media-detail-stage .spc-detail-inline-play:before{content:""!important;position:absolute!important;left:18px!important;top:13px!important;border-left:13px solid #fff!important;border-top:9px solid transparent!important;border-bottom:9px solid transparent!important}
.spc-media-detail-stage .spc-detail-inline-media:hover .spc-detail-inline-play,.spc-media-detail-stage .spc-detail-inline-media:focus-within .spc-detail-inline-play{opacity:1!important;visibility:visible!important;pointer-events:auto!important;transform:translate(-50%,-50%) scale(1)!important}
.spc-media-detail-stage .spc-detail-inline-play:hover{background:#e62117!important;transform:translate(-50%,-50%) scale(1.07)!important}
.spc-media-detail-stage .spc-detail-inline-youtube{position:absolute!important;inset:0!important;z-index:6!important;width:100%!important;height:100%!important;border:0!important;background:#000!important}
@media(max-width:600px){.spc-media-page .spc-library-search--live{width:100%!important;margin:6px 0 14px!important}}
@media(hover:none){.spc-media-detail-stage .spc-detail-inline-play{opacity:.9!important;visibility:visible!important;pointer-events:auto!important;width:40px!important;height:40px!important}.spc-media-detail-stage .spc-detail-inline-play:before{left:16px!important;top:12px!important;border-left-width:12px!important;border-top-width:8px!important;border-bottom-width:8px!important}}

/* ========================================================================== 
   R61 - MEDIA TITLE DENSITY + CLEANER VIDEO RHYTHM
   --------------------------------------------------------------------------
   Mục tiêu bảo trì:
   1) Tiêu đề card ở Thư viện và "Video dành cho bạn" chỉ chiếm tối đa 2 dòng.
      Nội dung đầy đủ vẫn xem ở Media Detail, nên card không cần cao theo tiêu đề dài.
   2) Giảm khoảng trống giữa heading / các hàng card để trang gọn như thư viện video hiện đại.
   3) Không đặt chiều cao cứng lớn cho card: chiều cao = thumbnail 16:9 + vùng title 2 dòng.
   4) Tiêu đề video CHÍNH ở Media Detail vẫn hiển thị đầy đủ (không clamp) như YouTube.
   ========================================================================== */

/* A. DANH SÁCH THƯ VIỆN: title tối đa 2 dòng + dấu ... tự động khi dài. */
.spc-media-page .spc-media-card{
  display:flex!important;flex-direction:column!important;height:100%!important;
}
.spc-media-page .spc-media-title-link{
  flex:0 0 auto!important;min-width:0!important;
}

/* Grid gọn hơn nhưng vẫn đủ khoảng thở giữa các card. */
.spc-media-page .tt_List_video{row-gap:16px!important;column-gap:20px!important;margin-bottom:16px!important}
.spc-media-page .LV_Frame{margin-bottom:14px!important}

/* B. MEDIA DETAIL - heading recommendation gần nội dung hơn, bớt khoảng trắng. */
.spc-media-detail-stage .spc-related-heading{
  margin-top:20px!important;margin-bottom:13px!important;padding-bottom:10px!important;gap:11px!important;
}
.spc-media-detail-stage .spc-related-heading-icon{
  width:35px!important;height:35px!important;flex-basis:35px!important;border-radius:10px!important;
}
.spc-media-detail-stage .spc-related-heading h2{font-size:17px!important;line-height:1.15!important}
.spc-media-detail-stage .spc-related-heading p{margin-top:2px!important;font-size:12px!important}

/* C. VIDEO DÀNH CHO BẠN: card thấp, title đúng 2 dòng, không còn vùng trắng cao. */
.spc-media-detail-stage .spc-detail-related-grid{
  gap:16px 20px!important;margin-top:12px!important;margin-bottom:24px!important;align-items:stretch!important;
}
.spc-media-detail-stage .spc-detail-card-inner{
  min-height:0!important;height:100%!important;
}
.spc-media-detail-stage .spc-detail-card-title{
  flex:0 0 54px!important;min-height:54px!important;max-height:54px!important;
  padding:9px 13px 10px!important;overflow:hidden!important;
}
.spc-media-detail-stage .spc-detail-card-title a{
  display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;
  overflow:hidden!important;text-overflow:ellipsis!important;line-height:1.35!important;
}

/* D. Tiêu đề video đang xem: đây là nơi đọc tên đầy đủ, không rút gọn. */
.spc-media-detail-stage .tt_List_video_left .vd_name{
  display:block!important;width:100%!important;margin:10px 0 4px!important;padding:0 2px!important;
  color:#075f94!important;font-size:17px!important;font-weight:650!important;line-height:1.4!important;
  white-space:normal!important;overflow:visible!important;text-overflow:clip!important;
}
.spc-media-detail-stage .spc-sharebar{margin-top:8px!important}

@media(max-width:800px){
  .spc-media-page .tt_List_video{row-gap:12px!important;column-gap:12px!important}
  
  .spc-media-detail-stage .spc-related-heading{margin-top:16px!important;margin-bottom:10px!important}
  .spc-media-detail-stage .spc-detail-related-grid{gap:12px!important;margin-top:10px!important}
  .spc-media-detail-stage .spc-detail-card-title{flex-basis:50px!important;min-height:50px!important;max-height:50px!important;padding:8px 11px!important}
  .spc-media-detail-stage .tt_List_video_left .vd_name{font-size:16px!important;margin-top:8px!important}
}

/* ========================================================================== 
   R62 - COMPACT LIBRARY TOOLBAR + 2-LINE CARD TITLES
   --------------------------------------------------------------------------
   - Desktop: tabs Thư viện và ô lọc Media nằm cùng một hàng để tiết kiệm chiều cao.
   - Mobile/tablet: tự xuống hàng, ô tìm kiếm full-width để thao tác dễ.
   - Tên Media và tên Sản phẩm giới hạn 2 dòng; tên đầy đủ vẫn có ở trang chi tiết.
   - Thu hẹp nhịp dọc giữa breadcrumb / toolbar / grid và giữa các hàng card.
   ========================================================================== */

/* 1) Thư viện Media: gom tabs + search thành một toolbar trên desktop.
   :has() chỉ thay layout khi trang có đúng ô live-search Media, không ảnh hưởng module khác. */
@media (min-width:901px){
  .spc-media-page:has(.spc-library-search--live) #spcMediaTabs{
    display:flex!important;align-items:center!important;flex-wrap:wrap!important;
    width:calc(100% - 330px)!important;min-height:38px!important;
    margin:0!important;padding:0!important;gap:7px!important;
  }
  .spc-media-page:has(.spc-library-search--live) .spc-library-search--live{
    float:right!important;width:310px!important;height:38px!important;
    margin:-38px 0 12px!important;padding:3px 8px 3px 11px!important;
  }
  .spc-media-page:has(.spc-library-search--live) .mt_content_ct_c{
    clear:both!important;padding-top:8px!important;
  }
}

/* 2) Nhịp dọc trang Media gọn hơn. */
.spc-media-page .mt_title_ct_c{margin-bottom:8px!important}
.spc-media-page #spcMediaTabs{margin-bottom:12px!important}
.spc-media-page .spc-library-search--live{margin-bottom:12px!important}
.spc-media-page .tt_List_video{row-gap:14px!important;column-gap:20px!important;margin-bottom:12px!important}
.spc-media-page .LV_Frame.spc-active-group{margin-bottom:16px!important}

/* 3) Media card: tên tối đa 2 dòng, không để vùng title cao quá. */


/* 4) Product card: áp dụng cùng quy tắc 2 dòng như video để grid đều và dễ quét. */
.spc-products-page .sp_List_cl_td,.spc-product-special .sp_List_cl_td{
  box-sizing:border-box!important;min-height:58px!important;max-height:58px!important;
  padding:9px 13px 11px!important;overflow:hidden!important;
}
.spc-products-page .sp_List_cl_td a,.spc-product-special .sp_List_cl_td a{
  display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;
  overflow:hidden!important;text-overflow:ellipsis!important;line-height:1.35!important;
}

/* 5) Các card nội dung dạng lưới đang dùng title legacy: clamp 2 dòng để đồng bộ presentation.
   Chỉ clamp title ở trang danh sách; không đụng title trang chi tiết. */
.spc-news-page .tt_List_cl_name a,.spc-doctor-page .tt_List_cl_name a,
.spc-modern-page .tt_List_cl_name>a{
  display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;
  overflow:hidden!important;text-overflow:ellipsis!important;
}

@media(max-width:900px){
  .spc-media-page #spcMediaTabs{width:100%!important;margin-bottom:8px!important}
  .spc-media-page .spc-library-search--live{float:none!important;width:100%!important;margin:6px 0 12px!important}
  .spc-media-page .mt_content_ct_c{clear:both!important;padding-top:2px!important}
}
@media(max-width:600px){
  .spc-media-page .tt_List_video{row-gap:11px!important;column-gap:11px!important}
  
}


/* ========================================================================== 
   R63 - MODERN CONTENT HUB: LIBRARY / NEWS / DOCTOR / PRODUCTS
   --------------------------------------------------------------------------
   1) Library card title gets +3px breathing room while staying 2 lines.
   2) Product cards no longer inherit the old 350px / 78px tall body.
   3) News + Doctor use one modern mixed-content grid for article and video data.
   4) Desktop category tabs + live search share one toolbar; mobile stacks safely.
   5) Search is client-side/debounced: no SQL/API change, no Web.config change.
   ========================================================================== */

/* R63-A: Library title: user requested 2-4px more height than R62. */


/* R63-B: Product cards: neutralize legacy tall-card rules and keep 2-line title. */
.spc-products-page .sp_List_cl,.spc-product-special .sp_List_cl{min-height:0!important;height:auto!important}
.spc-products-page .sp_List_cl_img,.spc-product-special .sp_List_cl_img{height:248px!important;padding:14px 16px 8px!important}
.spc-products-page .sp_List_cl_td,.spc-product-special .sp_List_cl_td{
 min-height:54px!important;max-height:54px!important;height:54px!important;padding:8px 12px 10px!important;
 display:flex!important;align-items:flex-start!important;justify-content:center!important;overflow:hidden!important
}
.spc-products-page .sp_List_cl_td a,.spc-product-special .sp_List_cl_td a{
 display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;
 overflow:hidden!important;text-overflow:ellipsis!important;line-height:1.35!important
}

/* R63-C: shared toolbar for News / Doctor. */
.spc-content-toolbar{display:flex!important;align-items:center!important;gap:12px!important;margin:0 0 14px!important;min-width:0!important}
.spc-content-toolbar .spc-category-tabs{flex:1 1 auto!important;min-width:0!important;margin:0!important}
.spc-content-search{flex:0 0 310px!important;display:flex!important;align-items:center!important;height:38px!important;padding:0 12px!important;border:1px solid #c9e1ee!important;border-radius:12px!important;background:#fff!important;box-shadow:0 4px 14px rgba(0,73,111,.06)!important}
.spc-content-search:focus-within{border-color:#69b9dc!important;box-shadow:0 0 0 3px rgba(0,139,196,.08),0 5px 16px rgba(0,73,111,.07)!important}
.spc-content-search .spc-search-icon{flex:0 0 auto;color:#078bc4;font-size:18px;line-height:1;margin-right:8px}
.spc-content-search input{width:100%!important;height:34px!important;border:0!important;outline:0!important;background:transparent!important;color:#164d69!important;font:inherit!important;font-size:13px!important}
.spc-content-search input::placeholder{color:#7b9aac!important}

/* R63-D: modern mixed article/video cards. */
.spc-news-page .ct_left,.spc-doctor-page .ct_left{width:100%!important;float:none!important}
.spc-news-page .ct_right,.spc-doctor-page .ct_right{display:none!important}
.spc-news-page .tt_List,.spc-doctor-page .tt_List{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:16px 18px!important}
.spc-news-page .tt_List_cl_ct,.spc-doctor-page .tt_List_cl_ct{
 min-height:0!important;height:100%!important;border:1px solid #d9e8ef!important;border-radius:13px!important;background:#fff!important;
 box-shadow:0 6px 18px rgba(0,63,97,.075)!important;overflow:hidden!important;transition:.2s ease!important
}
.spc-news-page .tt_List_cl_img,.spc-doctor-page .tt_List_cl_img{position:relative!important;height:auto!important;aspect-ratio:16/9!important;overflow:hidden!important;background:#f4f8fa!important;border-bottom:1px solid #edf3f6!important}
.spc-news-page .tt_List_cl_img>a,.spc-doctor-page .tt_List_cl_img>a{display:block!important;width:100%!important;height:100%!important}
.spc-news-page .tt_List_cl_img img,.spc-doctor-page .tt_List_cl_img img{width:100%!important;height:100%!important;object-fit:cover!important;display:block!important}
.spc-news-page .tt_List_cl_name,.spc-doctor-page .tt_List_cl_name{padding:10px 12px 4px!important;min-height:57px!important;max-height:57px!important;box-sizing:border-box!important}
.spc-news-page .tt_List_cl_name a,.spc-doctor-page .tt_List_cl_name a{font-size:13px!important;font-weight:650!important;line-height:1.35!important;color:#0066a1!important;text-decoration:none!important}
.spc-news-page .ngaytn,.spc-doctor-page .ngaytn{display:block!important;margin-top:3px!important;color:#8399a6!important;font-size:11px!important;line-height:1.2!important}
.spc-news-page .tt_List_cl_short,.spc-doctor-page .tt_List_cl_short{padding:3px 12px 11px!important;min-height:43px!important;max-height:43px!important;overflow:hidden!important;color:#536d7b!important;font-size:12px!important;line-height:1.4!important}
.spc-news-page .tt_List_cl_short span,.spc-doctor-page .tt_List_cl_short span{display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;overflow:hidden!important}
.spc-news-page .tt_List_cl_ctiet,.spc-doctor-page .tt_List_cl_ctiet{display:none!important}
.spc-content-video-badge{position:absolute!important;left:10px!important;bottom:9px!important;z-index:4!important;display:inline-flex!important;align-items:center!important;gap:5px!important;padding:4px 8px!important;border-radius:999px!important;background:rgba(0,88,132,.88)!important;color:#fff!important;font-size:11px!important;font-weight:700!important;box-shadow:0 3px 10px rgba(0,0,0,.14)!important;pointer-events:none!important}
.spc-content-video-badge:before{content:"▶";font-size:9px!important}
.spc-content-empty{display:none;padding:28px 16px;text-align:center;color:#668392;border:1px dashed #c8dce6;border-radius:12px;background:#fbfdfe}


/* Less dead space between breadcrumb, toolbar and first row. */
.spc-news-page .mt_title_ct_c,.spc-doctor-page .mt_title_ct_c{margin-bottom:7px!important}
.spc-news-page .mt_content_ct_c,.spc-doctor-page .mt_content_ct_c{padding-top:2px!important}
.spc-news-page .LV_Frame,.spc-doctor-page .LV_Frame{margin-bottom:16px!important}

@media(max-width:1100px){.spc-news-page .tt_List,.spc-doctor-page .tt_List{grid-template-columns:repeat(3,minmax(0,1fr))!important}.spc-content-search{flex-basis:270px!important}}
@media(max-width:900px){.spc-content-toolbar{flex-wrap:wrap!important;gap:8px!important}.spc-content-toolbar .spc-category-tabs{flex:1 1 100%!important}.spc-content-search{flex:1 1 100%!important}.spc-news-page .tt_List,.spc-doctor-page .tt_List{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:600px){.spc-news-page .tt_List,.spc-doctor-page .tt_List{grid-template-columns:1fr!important;gap:12px!important}.spc-products-page .sp_List_cl_img,.spc-product-special .sp_List_cl_img{height:190px!important}}

/* ========================================================================== 
   R64 - FINAL DENSITY + WEBFORMS GRID FIX
   --------------------------------------------------------------------------
   Fixes after real-browser review:
   1) Media titles get slightly more vertical breathing room (not cramped/cut).
   2) News + Doctor WebForms DataList RepeatLayout=Flow inserts an outer <span>.
      display:contents makes the actual .tt_List_cl items participate in CSS Grid.
      This is the key fix for the accidental single-column layout.
   3) News/Doctor cards use a spacious 4-column desktop rhythm, 16:9 media,
      two-line title and two-line summary; tablet/mobile collapse responsively.
   4) Toolbar remains compact: category tabs left, search right on desktop.
   ========================================================================== */

/* R64-A — Library: keep two lines but give top/bottom padding comparable to sides. */

.spc-media-page .tt_List_video{row-gap:18px!important;column-gap:20px!important}

/* R64-B — IMPORTANT WebForms fix.
   DataList Flow renders: .tt_List > span[id] > span.tt_List_cl.
   Without display:contents the grid sees only ONE child => one vertical column. */
.spc-news-page .tt_List>span,
.spc-doctor-page .tt_List>span{display:contents!important}

/* Force a true modern grid and neutralise all legacy float/inline rules. */
.spc-news-page .tt_List,.spc-doctor-page .tt_List{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:20px 18px!important;
  width:100%!important;max-width:none!important;
  margin:0!important;padding:0!important;
  align-items:stretch!important;
}
.spc-news-page .tt_List_cl,.spc-doctor-page .tt_List_cl{
  box-sizing:border-box!important;display:block!important;
  width:100%!important;max-width:none!important;height:100%!important;
  float:none!important;clear:none!important;margin:0!important;padding:0!important;
  border:0!important;text-align:left!important;min-width:0!important;
}
.spc-news-page .tt_List_cl_ct,.spc-doctor-page .tt_List_cl_ct{
  display:flex!important;flex-direction:column!important;
  width:100%!important;height:100%!important;min-height:0!important;
  padding:0!important;
}
.spc-news-page .tt_List_cl_img,.spc-doctor-page .tt_List_cl_img{
  box-sizing:border-box!important;position:relative!important;float:none!important;
  width:100%!important;height:auto!important;aspect-ratio:16/9!important;
  margin:0!important;padding:0!important;overflow:hidden!important;background:#f5f9fb!important;
}
.spc-news-page .tt_List_cl_img img,.spc-doctor-page .tt_List_cl_img img{
  display:block!important;width:100%!important;height:100%!important;max-width:none!important;
  object-fit:cover!important;border-radius:0!important;
}
.spc-news-page .tt_List_cl_name,.spc-doctor-page .tt_List_cl_name{
  box-sizing:border-box!important;min-height:62px!important;max-height:62px!important;
  margin:0!important;padding:11px 13px 5px!important;overflow:hidden!important;
}
.spc-news-page .tt_List_cl_name a,.spc-doctor-page .tt_List_cl_name a{
  display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;
  overflow:hidden!important;text-overflow:ellipsis!important;
  font-size:13px!important;font-weight:650!important;line-height:1.38!important;
}
.spc-news-page .ngaytn,.spc-doctor-page .ngaytn{margin-top:4px!important;font-size:11px!important;line-height:1.15!important}
.spc-news-page .tt_List_cl_short,.spc-doctor-page .tt_List_cl_short{
  box-sizing:border-box!important;flex:0 0 52px!important;min-height:52px!important;max-height:52px!important;
  margin:0!important;padding:4px 13px 12px!important;overflow:hidden!important;
  text-align:left!important;font-size:12px!important;line-height:1.42!important;
}
.spc-news-page .tt_List_cl_short span,.spc-doctor-page .tt_List_cl_short span{
  display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;
  overflow:hidden!important;text-overflow:ellipsis!important;
}

/* R64-C — comfortable page rhythm: not crowded, but no old oversized dead space. */
.spc-news-page .mt_title_ct_c,.spc-doctor-page .mt_title_ct_c{margin-bottom:10px!important}
.spc-news-page .spc-content-toolbar,.spc-doctor-page .spc-content-toolbar{margin-bottom:18px!important}
.spc-news-page .mt_content_ct_c,.spc-doctor-page .mt_content_ct_c{padding-top:0!important}
.spc-news-page .LV_Frame,.spc-doctor-page .LV_Frame{margin:0 0 20px!important;padding:0!important}
.spc-content-toolbar{min-height:42px!important}
.spc-content-toolbar .spc-category-tabs{min-height:42px!important;padding:2px 0!important;gap:8px!important}
.spc-content-toolbar .spc-category-tab{min-height:36px!important;padding:7px 14px!important}
.spc-content-search{height:40px!important;border-radius:12px!important}

/* R64-D — Product title/body slightly roomier, still only two lines. */
.spc-products-page .sp_List_cl_td,.spc-product-special .sp_List_cl_td{
  min-height:60px!important;max-height:60px!important;height:60px!important;
  padding:11px 13px 12px!important;align-items:flex-start!important;
}

@media(max-width:1100px){
 .spc-news-page .tt_List,.spc-doctor-page .tt_List{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:900px){
 .spc-news-page .tt_List,.spc-doctor-page .tt_List{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important}
 .spc-news-page .spc-content-toolbar,.spc-doctor-page .spc-content-toolbar{margin-bottom:14px!important}
}
@media(max-width:600px){
 .spc-news-page .tt_List,.spc-doctor-page .tt_List{grid-template-columns:1fr!important;gap:14px!important}
 
 .spc-products-page .sp_List_cl_td,.spc-product-special .sp_List_cl_td{min-height:56px!important;max-height:56px!important;height:56px!important;padding:10px 11px!important}
}

/* ========================================================================== 
   R65 - SPC EDITORIAL DISCOVERY UI (02/10/2026)
   --------------------------------------------------------------------------
   Purpose:
   - Give News + Doctor pages a modern Edge/CocCoc-inspired editorial rhythm.
   - Keep ALL existing SQL/WebForms bindings intact; presentation only.
   - First visible story becomes a large lead card; following cards form a
     compact discovery grid. Category switches keep the same behaviour.
   - Search remains lightweight client-side and supports Vietnamese with/without
     accents (implemented in TinTuc.ascx / BSCayTrong.ascx).
   ========================================================================== */

/* Toolbar: one calm horizontal strip, search aligned right on desktop. */
.spc-news-page .spc-content-toolbar,.spc-doctor-page .spc-content-toolbar{
  position:relative!important;display:flex!important;align-items:center!important;
  gap:16px!important;padding:8px 10px!important;margin:0 0 18px!important;
  border:1px solid #e1edf3!important;border-radius:16px!important;
  background:rgba(255,255,255,.96)!important;box-shadow:0 8px 26px rgba(18,78,108,.055)!important;
}
.spc-news-page .spc-category-tabs,.spc-doctor-page .spc-category-tabs{
  display:flex!important;align-items:center!important;gap:7px!important;overflow-x:auto!important;
  scrollbar-width:none!important;white-space:nowrap!important;padding:0!important;min-height:38px!important;
}
.spc-news-page .spc-category-tabs::-webkit-scrollbar,.spc-doctor-page .spc-category-tabs::-webkit-scrollbar{display:none!important}
.spc-news-page .spc-category-tab,.spc-doctor-page .spc-category-tab{
  min-height:34px!important;padding:7px 13px!important;border-radius:10px!important;
  border:1px solid transparent!important;background:transparent!important;color:#315e75!important;
  font-size:13px!important;font-weight:650!important;box-shadow:none!important;transition:.18s ease!important;
}
.spc-news-page .spc-category-tab:hover,.spc-doctor-page .spc-category-tab:hover{background:#f1f8fb!important;color:#0078ad!important}
.spc-news-page .spc-category-tab.active,.spc-doctor-page .spc-category-tab.active{
  background:#078fc8!important;color:#fff!important;border-color:#078fc8!important;box-shadow:0 5px 14px rgba(7,143,200,.18)!important;
}
.spc-news-page .spc-content-search,.spc-doctor-page .spc-content-search{
  flex:0 0 292px!important;height:38px!important;border-radius:11px!important;background:#f8fbfd!important;
  border:1px solid #d7e8f0!important;box-shadow:none!important;padding:0 11px!important;
}

/* Each SQL category becomes an editorial section; hide legacy section heading because tabs already identify it. */
.spc-news-page .C_Name,.spc-doctor-page .C_Name{display:none!important}
.spc-news-page .LV_Frame.spc-active-group,.spc-doctor-page .LV_Frame.spc-active-group{width:100%!important}
.spc-news-page .tt_List,.spc-doctor-page .tt_List{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-auto-flow:row!important;
  gap:18px!important;align-items:stretch!important;
}

/* Lead story: larger visual anchor similar to a modern discovery/news feed. */
.spc-news-page .LV_Frame.spc-active-group .tt_List_cl:first-child,
.spc-doctor-page .LV_Frame.spc-active-group .tt_List_cl:first-child{grid-column:span 2!important;grid-row:span 2!important}
.spc-news-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_img,
.spc-doctor-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_img{aspect-ratio:16/8.45!important}
.spc-news-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_name,
.spc-doctor-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_name{min-height:70px!important;max-height:70px!important;padding:13px 15px 5px!important}
.spc-news-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_name a,
.spc-doctor-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_name a{font-size:16px!important;line-height:1.35!important}
.spc-news-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_short,
.spc-doctor-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_short{min-height:54px!important;max-height:54px!important;padding:4px 15px 13px!important;font-size:12.5px!important}

/* Regular story cards: cleaner, lighter and more image-led. */
.spc-news-page .tt_List_cl_ct,.spc-doctor-page .tt_List_cl_ct{
  border-radius:14px!important;border:1px solid #dceaf0!important;box-shadow:0 5px 16px rgba(16,76,105,.055)!important;
}
.spc-news-page .tt_List_cl_name,.spc-doctor-page .tt_List_cl_name{min-height:64px!important;max-height:64px!important;padding:11px 13px 5px!important}
.spc-news-page .tt_List_cl_short,.spc-doctor-page .tt_List_cl_short{min-height:51px!important;max-height:51px!important;padding:3px 13px 12px!important}

/* Graceful broken/missing image presentation; avoids a harsh empty legacy box. */
.spc-news-page .tt_List_cl_img,.spc-doctor-page .tt_List_cl_img{
  background:linear-gradient(135deg,#edf6fa,#f8fbfd)!important;
}
.spc-news-page .tt_List_cl_img:empty:after,.spc-doctor-page .tt_List_cl_img:empty:after{
  content:"SPC";position:absolute;inset:0;display:grid;place-items:center;color:#8fb4c5;font-weight:800;font-size:20px;
}

/* Search empty state fits the new editorial surface. */
.spc-content-empty{grid-column:1/-1!important;margin:6px 0 20px!important;padding:34px 18px!important;border-radius:15px!important;background:#f8fbfd!important}

@media(max-width:1100px){
 .spc-news-page .tt_List,.spc-doctor-page .tt_List{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 .spc-news-page .LV_Frame.spc-active-group .tt_List_cl:first-child,.spc-doctor-page .LV_Frame.spc-active-group .tt_List_cl:first-child{grid-column:span 2!important}
 .spc-news-page .spc-content-search,.spc-doctor-page .spc-content-search{flex-basis:255px!important}
}
@media(max-width:900px){
 .spc-news-page .spc-content-toolbar,.spc-doctor-page .spc-content-toolbar{flex-wrap:wrap!important;padding:8px!important}
 .spc-news-page .spc-content-search,.spc-doctor-page .spc-content-search{flex:1 1 100%!important;order:2!important}
 .spc-news-page .tt_List,.spc-doctor-page .tt_List{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:600px){
 .spc-news-page .tt_List,.spc-doctor-page .tt_List{grid-template-columns:1fr!important;gap:13px!important}
 .spc-news-page .LV_Frame.spc-active-group .tt_List_cl:first-child,.spc-doctor-page .LV_Frame.spc-active-group .tt_List_cl:first-child{grid-column:span 1!important;grid-row:auto!important}
 .spc-news-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_img,.spc-doctor-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_img{aspect-ratio:16/9!important}
}


/* ==========================================================================
   R66 - SINGLE VISUAL AUTHORITY / RESPONSIVE CONTENT SYSTEM (02/10/2026)
   This is the final cascade authority for Media + News + Doctor cards.
   Keep typography consistent and avoid partial-line clipping across devices.
   ========================================================================== */
.spc-media-page,.spc-news-page,.spc-doctor-page{font-family:Arial,"Helvetica Neue",Helvetica,sans-serif!important}
/* Media: exactly two complete lines, with comfortable vertical breathing room. */

.spc-media-page .tt_List_video_cl_name a{display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;line-clamp:2!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:normal!important;line-height:19px!important;max-height:38px!important;font-size:13px!important}
/* Editorial cards: two full title lines + two full summary lines. */
.spc-news-page .tt_List_cl_name,.spc-doctor-page .tt_List_cl_name{box-sizing:border-box!important;height:70px!important;min-height:70px!important;max-height:70px!important;padding:11px 13px 7px!important;overflow:hidden!important}
.spc-news-page .tt_List_cl_name a,.spc-doctor-page .tt_List_cl_name a{display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;line-clamp:2!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:normal!important;line-height:18px!important;max-height:36px!important;font-size:13px!important}
.spc-news-page .ngaytn,.spc-doctor-page .ngaytn{display:block!important;margin-top:4px!important;font-size:10.5px!important;line-height:13px!important}
.spc-news-page .tt_List_cl_short,.spc-doctor-page .tt_List_cl_short{box-sizing:border-box!important;height:54px!important;min-height:54px!important;max-height:54px!important;padding:4px 13px 10px!important;overflow:hidden!important}
.spc-news-page .tt_List_cl_short span,.spc-doctor-page .tt_List_cl_short span{display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;line-clamp:2!important;overflow:hidden!important;line-height:18px!important;max-height:36px!important}
/* Lead card stays editorial but obeys complete-line typography. */
.spc-news-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_name,.spc-doctor-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_name{height:76px!important;min-height:76px!important;max-height:76px!important;padding:13px 15px 7px!important}
.spc-news-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_name a,.spc-doctor-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_name a{line-height:21px!important;max-height:42px!important;font-size:16px!important}
/* Images: no transparent placeholder dependency. A failed URL becomes an intentional fallback tile. */
.spc-news-page .tt_List_cl_img,.spc-doctor-page .tt_List_cl_img{position:relative!important;aspect-ratio:16/9!important;height:auto!important;overflow:hidden!important;background:linear-gradient(135deg,#edf6fa,#f9fcfd)!important}
.spc-news-page .tt_List_cl_img figure,.spc-doctor-page .tt_List_cl_img figure{width:100%!important;height:100%!important;margin:0!important;position:relative!important}
.spc-news-page .tt_List_cl_img img,.spc-doctor-page .tt_List_cl_img img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important}
.spc-news-page figure.spc-image-error:after,.spc-news-page .tt_List_cl_img>a:empty:after,.spc-doctor-page .tt_List_cl_img>a:empty:after{content:"SPC";position:absolute!important;inset:0!important;display:grid!important;place-items:center!important;color:#86adbf!important;font-size:18px!important;font-weight:700!important;background:linear-gradient(135deg,#edf6fa,#f9fcfd)!important}
/* Search toolbar: same design language on desktop, wraps cleanly on smaller screens. */
.spc-news-page .spc-content-toolbar,.spc-doctor-page .spc-content-toolbar{width:100%!important;box-sizing:border-box!important}
.spc-content-search-input{font-family:inherit!important;font-size:13px!important}
.spc-content-empty{display:none!important}.spc-content-empty.is-visible{display:block!important}
@media(max-width:900px){.spc-news-page .tt_List_cl_name,.spc-doctor-page .tt_List_cl_name{height:68px!important;min-height:68px!important;max-height:68px!important}}
@media(max-width:600px){.spc-news-page .tt_List_cl_name,.spc-doctor-page .tt_List_cl_name{height:68px!important;min-height:68px!important;max-height:68px!important}.spc-news-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_name,.spc-doctor-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_name{height:72px!important;min-height:72px!important;max-height:72px!important}}


/* ==========================================================================
   05/10/2026-01 - R68 SEARCH COMPATIBILITY
   Giữ nguyên visual R66; chỉ bổ sung trạng thái lọc/tìm kiếm.
   ========================================================================== */
.spc-news-page .spc-filter-hidden,.spc-doctor-page .spc-filter-hidden{display:none!important}
/* Khi đang tìm kiếm, tất cả kết quả có cùng kích thước để tránh mỗi nhóm tạo một card lớn. */
.spc-news-page.spc-searching .LV_Frame.spc-active-group .tt_List_cl:first-child,
.spc-doctor-page.spc-searching .LV_Frame.spc-active-group .tt_List_cl:first-child{grid-column:auto!important;grid-row:auto!important}
.spc-news-page.spc-searching .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_img,
.spc-doctor-page.spc-searching .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_img{aspect-ratio:16/9!important}
.spc-news-page.spc-searching .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_name,
.spc-doctor-page.spc-searching .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_name{height:70px!important;min-height:70px!important;max-height:70px!important;padding:11px 13px 7px!important}
.spc-news-page.spc-searching .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_name a,
.spc-doctor-page.spc-searching .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_name a{font-size:13px!important;line-height:18px!important;max-height:36px!important}

/* ========================================================================== 
   05/10/2026-02 - EDITORIAL CARDS + PROGRESSIVE LOADING
   Tin tức/Bác sĩ cây trồng: lead card giàu nội dung, card nhỏ 2 dòng,
   luân phiên vị trí lead trái/phải; loader dùng chung toàn website.
   ========================================================================== */
.spc-news-page .tt_List,.spc-doctor-page .tt_List{grid-auto-flow:dense!important}
/* Ngày nằm sát tiêu đề, không tạo khoảng trống thừa. */
.spc-news-page .tt_List_cl_name,.spc-doctor-page .tt_List_cl_name{height:auto!important;min-height:0!important;max-height:none!important;padding:11px 13px 2px!important;overflow:visible!important}
.spc-news-page .tt_List_cl_name a,.spc-doctor-page .tt_List_cl_name a{max-height:none!important}
.spc-news-page .ngaytn,.spc-doctor-page .ngaytn{margin:2px 0 0!important}
/* Card thường: đúng 2 dòng mô tả; JS cắt ở ranh giới từ rồi mới thêm dấu …. */
.spc-news-page .tt_List_cl_short,.spc-doctor-page .tt_List_cl_short{height:54px!important;min-height:54px!important;max-height:54px!important;padding:3px 13px 10px!important}
.spc-news-page .tt_List_cl_short span,.spc-doctor-page .tt_List_cl_short span{display:block!important;max-height:36px!important;overflow:hidden!important}
/* Lead card: dành nhiều chiều cao cho nội dung, tránh vùng trắng lớn khi tóm tắt ngắn. */
.spc-news-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_name,.spc-doctor-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_name{height:auto!important;min-height:0!important;max-height:none!important;padding:13px 15px 3px!important}
.spc-news-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_short,.spc-doctor-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_short{height:132px!important;min-height:132px!important;max-height:132px!important;padding:5px 15px 14px!important;font-size:13px!important;line-height:20px!important}
.spc-news-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_short span,.spc-doctor-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_short span{display:block!important;max-height:112px!important;overflow:hidden!important}
/* Desktop 4 cột: nhóm chẵn đặt tin lead về bên phải để nhịp trình bày trái/phải xen kẽ. */
@media(min-width:1101px){
 .spc-news-page .LV_Frame.spc-active-group:nth-of-type(even) .tt_List_cl:first-child,.spc-doctor-page .LV_Frame.spc-active-group:nth-of-type(even) .tt_List_cl:first-child{grid-column:3/span 2!important}
 .spc-news-page .LV_Frame.spc-active-group:nth-of-type(odd) .tt_List_cl:first-child,.spc-doctor-page .LV_Frame.spc-active-group:nth-of-type(odd) .tt_List_cl:first-child{grid-column:1/span 2!important}
}
/* Progressive reveal: card chưa tới lượt không tham gia layout/render. */
.spc-lazy-pending{display:none!important}
.spc-feed-loader{grid-column:1/-1!important;display:none;align-items:center;justify-content:center;gap:9px;padding:16px 10px;color:#607d8b;font-size:13px}
.spc-feed-loader.is-visible{display:flex!important}
.spc-loader-dot{width:18px;height:18px;border:2px solid #c8dce6;border-top-color:#0079b5;border-radius:50%;animation:spcSpin .75s linear infinite}
/* Loader toàn trang chỉ hiện khi thao tác điều hướng thực sự chậm. */
@keyframes spcSpin{to{transform:rotate(360deg)}}
@media(max-width:900px){.spc-news-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_short,.spc-doctor-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_short{height:94px!important;min-height:94px!important;max-height:94px!important}.spc-news-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_short span,.spc-doctor-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_short span{max-height:74px!important}}
@media(max-width:600px){.spc-news-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_short,.spc-doctor-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_short{height:auto!important;min-height:72px!important;max-height:112px!important}}


/* ========================================================================== 
   05/10/2026-03 - LEAD CONTENT + TRUE SCROLL REVEAL + CARD DEPTH
   - Ngày thẳng mép trái với tiêu đề/tóm tắt.
   - Card có "đế" và nâng nhẹ khi hover.
   - Sentinel kích hoạt mở batch tiếp theo khi người dùng cuộn gần cuối feed.
   ========================================================================== */
.spc-news-page .ngaytn,.spc-doctor-page .ngaytn{padding-left:0!important;margin-left:0!important}

/* ========================================================================== 
   05/10/2026-04 - COMPACT EDITORIAL CARDS + STACKED HOVER BASE
   Mục tiêu:
   - Card lead vẫn nổi bật nhưng thấp/gọn hơn, không ép chiều cao bằng 2 hàng grid.
   - Tóm tắt lead chỉ 3 dòng; card thường 2 dòng, ưu tiên hình + tiêu đề.
   - Hover tạo 2 lớp "đế card" bo tròn, cho cảm giác card đang nổi/chồng lớp.
   - Giữ responsive và vô hiệu hiệu ứng nâng trên thiết bị cảm ứng.
   ========================================================================== */


/* Lead card: rộng 2 cột nhưng chỉ chiếm 1 hàng; giảm chiều cao tổng thể. */
.spc-news-page .LV_Frame.spc-active-group .tt_List_cl:first-child,
.spc-doctor-page .LV_Frame.spc-active-group .tt_List_cl:first-child{
  grid-column:span 2!important;grid-row:auto!important;align-self:start!important
}
.spc-news-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_img,
.spc-doctor-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_img{aspect-ratio:2.18/1!important}
.spc-news-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_name,
.spc-doctor-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_name{padding:12px 15px 2px!important}
.spc-news-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_short,
.spc-doctor-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_short{
  height:70px!important;min-height:70px!important;max-height:70px!important;padding:4px 15px 11px!important;line-height:19px!important
}
.spc-news-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_short span,
.spc-doctor-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_short span{
  display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:3!important;line-clamp:3!important;max-height:57px!important;overflow:hidden!important
}

/* Card thường: gọn hơn; không để vùng text kéo card quá cao. */
.spc-news-page .tt_List_cl_short,.spc-doctor-page .tt_List_cl_short{height:48px!important;min-height:48px!important;max-height:48px!important;padding-bottom:8px!important}
.spc-news-page .tt_List_cl_short span,.spc-doctor-page .tt_List_cl_short span{display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;line-clamp:2!important;max-height:36px!important;overflow:hidden!important}


@media(max-width:900px){
 .spc-news-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_img,.spc-doctor-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_img{aspect-ratio:16/8.2!important}
 .spc-news-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_short,.spc-doctor-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_short{height:66px!important;min-height:66px!important;max-height:66px!important}
}
@media(max-width:600px){
 .spc-news-page .LV_Frame.spc-active-group .tt_List_cl:first-child,.spc-doctor-page .LV_Frame.spc-active-group .tt_List_cl:first-child{grid-column:span 1!important}
 .spc-news-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_img,.spc-doctor-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_img{aspect-ratio:16/9!important}
 .spc-news-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_short,.spc-doctor-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_short{height:66px!important;min-height:66px!important;max-height:66px!important}
}

/* ========================================================================== 
   05/10/2026-05 - NATURAL CARD HEIGHT + SUBTLE BOTTOM-LINE HOVER
   Mục tiêu:
   - Card nhỏ tự co theo nội dung, không bị kéo cao bằng card lead cùng hàng.
   - Khoảng chênh chiều cao nằm ở nền grid, không nằm thành khoảng trắng bên trong card.
   - Hover bỏ hoàn toàn hiệu ứng chồng 2 lớp; chỉ nâng nhẹ card và tạo một đường/đế mảnh
     sát đáy, dịch lên nhẹ để tạo cảm giác card nổi nhưng vẫn sạch, hiện đại.
   ========================================================================== */
.spc-news-page .tt_List,.spc-doctor-page .tt_List{align-items:start!important}
.spc-news-page .tt_List_cl,.spc-doctor-page .tt_List_cl{
  height:auto!important;align-self:start!important
}
.spc-news-page .tt_List_cl_ct,.spc-doctor-page .tt_List_cl_ct{
  height:auto!important;min-height:0!important;align-self:start!important;overflow:visible!important;
  box-shadow:0 4px 14px rgba(12,72,101,.055)!important;
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease!important
}
/* Nội dung card không còn flex-grow kéo giãn vùng tóm tắt. */
.spc-news-page .tt_List_cl_short,.spc-doctor-page .tt_List_cl_short{flex:0 0 auto!important}


/* ========================================================================== 
   05/10/2026-06 - LEAD 2-LINE SUMMARY + INLINE DATE / REGULAR 3-LINE SUMMARY
   Mục tiêu:
   - Card lớn: tóm tắt gọn 2 dòng; ngày nằm cùng hàng với tiêu đề để giảm chiều cao.
   - Card nhỏ: cho tóm tắt 3 dòng để tận dụng diện tích card và cân bố cục tốt hơn.
   - Mobile: ngày được phép xuống dòng nếu tiêu đề không đủ chỗ, tránh ép/chồng chữ.
   ========================================================================== */
/* Card thường: tăng tóm tắt từ 2 lên 3 dòng. */
.spc-news-page .tt_List_cl_short,.spc-doctor-page .tt_List_cl_short{
  height:66px!important;min-height:66px!important;max-height:66px!important;
  padding:3px 13px 9px!important;line-height:18px!important
}
.spc-news-page .tt_List_cl_short span,.spc-doctor-page .tt_List_cl_short span{
  display:-webkit-box!important;-webkit-box-orient:vertical!important;
  -webkit-line-clamp:3!important;line-clamp:3!important;
  max-height:54px!important;overflow:hidden!important
}
/* Card lead: title + ngày cùng một hàng; title được ưu tiên chiều rộng, ngày luôn nguyên cụm. */
.spc-news-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_name,
.spc-doctor-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_name{
  display:flex!important;align-items:baseline!important;gap:10px!important;
  padding:11px 15px 3px!important
}
.spc-news-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_name>a,
.spc-doctor-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_name>a{
  flex:1 1 auto!important;min-width:0!important
}
.spc-news-page .LV_Frame.spc-active-group .tt_List_cl:first-child .ngaytn,
.spc-doctor-page .LV_Frame.spc-active-group .tt_List_cl:first-child .ngaytn{
  flex:0 0 auto!important;display:inline-block!important;white-space:nowrap!important;
  margin:0!important;padding:0!important
}
/* Card lead: tóm tắt đúng 2 dòng. */
.spc-news-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_short,
.spc-doctor-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_short{
  height:48px!important;min-height:48px!important;max-height:48px!important;
  padding:3px 15px 9px!important;line-height:18px!important
}
.spc-news-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_short span,
.spc-doctor-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_short span{
  -webkit-line-clamp:2!important;line-clamp:2!important;max-height:36px!important
}
/* Khi tìm kiếm: giữ card đồng đều, không áp quy tắc lead đặc biệt. */
.spc-news-page.spc-searching .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_name,
.spc-doctor-page.spc-searching .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_name{display:block!important}
.spc-news-page.spc-searching .LV_Frame.spc-active-group .tt_List_cl:first-child .ngaytn,
.spc-doctor-page.spc-searching .LV_Frame.spc-active-group .tt_List_cl:first-child .ngaytn{display:block!important;margin-top:2px!important}
/* Màn hình hẹp: không ép ngày cạnh title vì dễ làm tiêu đề quá ngắn. */
@media(max-width:600px){
 .spc-news-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_name,
 .spc-doctor-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_name{display:block!important}
 .spc-news-page .LV_Frame.spc-active-group .tt_List_cl:first-child .ngaytn,
 .spc-doctor-page .LV_Frame.spc-active-group .tt_List_cl:first-child .ngaytn{display:block!important;margin-top:2px!important}
}

/* ========================================================================== 
   05/10/2026-07 - FEATURED NEWS CLUSTER (1 LEAD + 3 SUPPORTING CARDS)
   Mục tiêu:
   - Desktop: 4 tin đầu tạo thành một cụm nổi bật có chiều cao cân bằng.
   - Tin lead rộng 2 cột, tiêu đề/ngày đặt overlay trên ảnh như news feed hiện đại.
   - 3 tin phụ giữ cùng chiều cao, tóm tắt 3 dòng; từ tin thứ 5 quay về lưới 4 cột.
   - Không thay HTML/backend; chỉ tổ chức lại presentation bằng CSS để an toàn bảo trì.
   ========================================================================== */
@media(min-width:1101px){
  .spc-news-page .tt_List,.spc-doctor-page .tt_List{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    grid-auto-flow:row!important;align-items:stretch!important;gap:18px!important
  }
  .spc-news-page .tt_List_cl,.spc-doctor-page .tt_List_cl{height:318px!important;min-height:318px!important}
  .spc-news-page .tt_List_cl_ct,.spc-doctor-page .tt_List_cl_ct{height:100%!important;min-height:0!important;overflow:hidden!important}
  /* Lead chiếm 2 cột nhưng cùng chiều cao với 3 card phụ: tránh khối cao/thấp lộn xộn. */
  .spc-news-page .LV_Frame.spc-active-group .tt_List_cl:first-child,
  .spc-doctor-page .LV_Frame.spc-active-group .tt_List_cl:first-child{
    grid-column:span 2!important;height:318px!important;min-height:318px!important;position:relative!important
  }
  .spc-news-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_ct,
  .spc-doctor-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_ct{position:relative!important;background:#0b405c!important}
  .spc-news-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_img,
  .spc-doctor-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_img{
    position:absolute!important;inset:0!important;width:100%!important;height:100%!important;aspect-ratio:auto!important
  }
  .spc-news-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_img:after,
  .spc-doctor-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_img:after{
    content:"";position:absolute;inset:0;background:linear-gradient(to bottom,rgba(3,31,47,0) 38%,rgba(3,31,47,.20) 56%,rgba(3,31,47,.90) 100%);pointer-events:none
  }
  /* Tiêu đề lead nằm trên ảnh, ngày cùng hàng nhưng nhỏ và sáng hơn. */
  .spc-news-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_name,
  .spc-doctor-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_name{
    position:absolute!important;left:0!important;right:0!important;bottom:18px!important;z-index:3!important;
    display:flex!important;align-items:flex-end!important;gap:10px!important;padding:18px 18px 0!important;background:none!important
  }
  .spc-news-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_name>a,
  .spc-doctor-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_name>a{
    color:#fff!important;font-size:18px!important;line-height:1.35!important;font-weight:700!important;text-shadow:0 2px 7px rgba(0,0,0,.34)!important;
    display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;line-clamp:2!important;overflow:hidden!important
  }
  .spc-news-page .LV_Frame.spc-active-group .tt_List_cl:first-child .ngaytn,
  .spc-doctor-page .LV_Frame.spc-active-group .tt_List_cl:first-child .ngaytn{color:rgba(255,255,255,.86)!important;font-size:10px!important;line-height:18px!important;text-shadow:0 1px 4px rgba(0,0,0,.4)!important}
  /* Lead không cần tóm tắt ở listing: ảnh + headline là điểm nhấn, click để đọc chi tiết. */
  .spc-news-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_short,
  .spc-doctor-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_short,
  .spc-news-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_ctiet,
  .spc-doctor-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_ctiet{display:none!important}
  /* Ba card phụ đầu tiên cùng chiều cao và chia tỷ lệ ảnh/text ổn định. */
  .spc-news-page .tt_List_cl:not(:first-child) .tt_List_cl_img,
  .spc-doctor-page .tt_List_cl:not(:first-child) .tt_List_cl_img{height:172px!important;aspect-ratio:auto!important;flex:0 0 172px!important}
  .spc-news-page .tt_List_cl:not(:first-child) .tt_List_cl_name,
  .spc-doctor-page .tt_List_cl:not(:first-child) .tt_List_cl_name{padding:10px 12px 2px!important}
  .spc-news-page .tt_List_cl:not(:first-child) .tt_List_cl_name>a,
  .spc-doctor-page .tt_List_cl:not(:first-child) .tt_List_cl_name>a{display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;line-clamp:2!important;overflow:hidden!important;line-height:18px!important;max-height:36px!important}
  .spc-news-page .tt_List_cl:not(:first-child) .tt_List_cl_short,
  .spc-doctor-page .tt_List_cl:not(:first-child) .tt_List_cl_short{height:61px!important;min-height:61px!important;max-height:61px!important;padding:2px 12px 7px!important}
  .spc-news-page .tt_List_cl:not(:first-child) .tt_List_cl_short span,
  .spc-doctor-page .tt_List_cl:not(:first-child) .tt_List_cl_short span{-webkit-line-clamp:3!important;line-clamp:3!important;max-height:54px!important}
}
/* Tablet: lead 2 cột ở đầu, các card sau 2 cột; không overlay ngày quá chật. */
@media(min-width:701px) and (max-width:1100px){
 .spc-news-page .tt_List,.spc-doctor-page .tt_List{grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:stretch!important}
 .spc-news-page .LV_Frame.spc-active-group .tt_List_cl:first-child,.spc-doctor-page .LV_Frame.spc-active-group .tt_List_cl:first-child{grid-column:1/-1!important}
}

/* ========================================================================== 
   05/10/2026-08 - CLOSED 4-COLUMN GROUPS + BALANCED SUPPORTING CARD BODY
   Mục tiêu:
   - Mỗi nhóm dùng 11 tin: lead chiếm 2 ô + 10 card = 12 ô => khép kín 3 hàng/4 cột.
   - Card nhỏ có vùng text cố định: tiêu đề 2 dòng, ngày 1 dòng, tóm tắt 3 dòng.
   - Khoảng cách 3 phần được chuẩn hóa, tránh card nhìn lệch khi title ngắn/dài khác nhau.
   ========================================================================== */
@media(min-width:1101px){
  /* Card phụ: giữ chiều cao thống nhất và chia phần nội dung rõ ràng. */
  .spc-news-page .tt_List_cl:not(:first-child),
  .spc-doctor-page .tt_List_cl:not(:first-child){height:326px!important;min-height:326px!important}
  .spc-news-page .tt_List_cl:not(:first-child) .tt_List_cl_ct,
  .spc-doctor-page .tt_List_cl:not(:first-child) .tt_List_cl_ct{display:flex!important;flex-direction:column!important;height:100%!important}
  .spc-news-page .tt_List_cl:not(:first-child) .tt_List_cl_img,
  .spc-doctor-page .tt_List_cl:not(:first-child) .tt_List_cl_img{height:166px!important;flex:0 0 166px!important}

  /* Khối title luôn dành đủ 2 dòng + 1 dòng ngày để các card thẳng hàng. */
  .spc-news-page .tt_List_cl:not(:first-child) .tt_List_cl_name,
  .spc-doctor-page .tt_List_cl:not(:first-child) .tt_List_cl_name{
    box-sizing:border-box!important;height:65px!important;min-height:65px!important;max-height:65px!important;
    padding:9px 12px 5px!important;display:block!important;overflow:hidden!important
  }
  .spc-news-page .tt_List_cl:not(:first-child) .tt_List_cl_name>a,
  .spc-doctor-page .tt_List_cl:not(:first-child) .tt_List_cl_name>a{
    height:36px!important;max-height:36px!important;line-height:18px!important;margin:0!important
  }
  .spc-news-page .tt_List_cl:not(:first-child) .ngaytn,
  .spc-doctor-page .tt_List_cl:not(:first-child) .ngaytn{
    display:block!important;height:15px!important;line-height:15px!important;margin:2px 0 0!important;padding:0!important
  }

  /* Tóm tắt nhận đủ dữ liệu từ server (tối đa 760 ký tự) rồi CSS clamp đúng 3 dòng. */
  .spc-news-page .tt_List_cl:not(:first-child) .tt_List_cl_short,
  .spc-doctor-page .tt_List_cl:not(:first-child) .tt_List_cl_short{
    box-sizing:border-box!important;height:68px!important;min-height:68px!important;max-height:68px!important;
    padding:5px 12px 9px!important;line-height:18px!important;overflow:hidden!important
  }
  .spc-news-page .tt_List_cl:not(:first-child) .tt_List_cl_short span,
  .spc-doctor-page .tt_List_cl:not(:first-child) .tt_List_cl_short span{
    display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:3!important;line-clamp:3!important;
    max-height:54px!important;line-height:18px!important;overflow:hidden!important
  }
}

/* ========================================================================== 
   05/10/2026-09 - FEED ALIGNMENT / SPARSE GROUP / HOVER LINE / LOADER END
   - Lead và card phụ dùng chung đường baseline trong từng nhóm.
   - Nhóm ít bài có fallback riêng, không để các ô grid trống vô lý.
   - Card phụ: title 2 dòng + ngày + summary 3 dòng với nhịp dọc ổn định.
   - Hover: chỉ 1 line bottom nằm trong card và nhích lên nhẹ; không chồng lớp.
   ========================================================================== */
@media(min-width:1101px){
  .spc-news-page .tt_List,.spc-doctor-page .tt_List{
    grid-auto-flow:row!important;align-items:stretch!important;grid-auto-rows:326px!important
  }
  .spc-news-page .tt_List_cl,.spc-doctor-page .tt_List_cl{height:326px!important;min-height:326px!important;align-self:stretch!important}
  .spc-news-page .tt_List_cl_ct,.spc-doctor-page .tt_List_cl_ct{
    height:100%!important;min-height:0!important;box-sizing:border-box!important;overflow:visible!important;position:relative!important
  }
  /* Lead cùng chiều cao hàng với card nhỏ. */
  .spc-news-page .LV_Frame.spc-active-group .tt_List_cl:first-child,
  .spc-doctor-page .LV_Frame.spc-active-group .tt_List_cl:first-child{height:326px!important;min-height:326px!important}
  .spc-news-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_ct,
  .spc-doctor-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_ct{height:326px!important}

  /* Card phụ: ảnh + body có tổng chiều cao cố định; ba phần body chia nhịp rõ ràng. */
  .spc-news-page .tt_List_cl:not(:first-child) .tt_List_cl_img,
  .spc-doctor-page .tt_List_cl:not(:first-child) .tt_List_cl_img{height:164px!important;flex:0 0 164px!important;border-radius:13px 13px 0 0!important;overflow:hidden!important}
  .spc-news-page .tt_List_cl:not(:first-child) .tt_List_cl_name,
  .spc-doctor-page .tt_List_cl:not(:first-child) .tt_List_cl_name{
    height:72px!important;min-height:72px!important;max-height:72px!important;padding:9px 12px 4px!important;
    display:grid!important;grid-template-rows:38px 15px!important;row-gap:3px!important;align-content:start!important
  }
  .spc-news-page .tt_List_cl:not(:first-child) .tt_List_cl_name>a,
  .spc-doctor-page .tt_List_cl:not(:first-child) .tt_List_cl_name>a{
    display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;line-clamp:2!important;
    height:38px!important;max-height:38px!important;line-height:19px!important;overflow:hidden!important;margin:0!important
  }
  .spc-news-page .tt_List_cl:not(:first-child) .ngaytn,
  .spc-doctor-page .tt_List_cl:not(:first-child) .ngaytn{height:15px!important;line-height:15px!important;margin:0!important;padding:0!important;align-self:start!important}
  .spc-news-page .tt_List_cl:not(:first-child) .tt_List_cl_short,
  .spc-doctor-page .tt_List_cl:not(:first-child) .tt_List_cl_short{
    height:78px!important;min-height:78px!important;max-height:78px!important;padding:7px 12px 12px!important;box-sizing:border-box!important;overflow:hidden!important
  }
  .spc-news-page .tt_List_cl:not(:first-child) .tt_List_cl_short span,
  .spc-doctor-page .tt_List_cl:not(:first-child) .tt_List_cl_short span{
    display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:3!important;line-clamp:3!important;
    height:auto!important;max-height:57px!important;line-height:19px!important;overflow:hidden!important
  }

  /* Nhóm chỉ có lead + 1..3 tin: không cố giả đủ 11 tin. Với 3 tin phụ, tin cuối giãn 2 cột để hàng kín. */
  .spc-news-page .LV_Frame.spc-sparse-4 .tt_List_cl:nth-child(4),
  .spc-doctor-page .LV_Frame.spc-sparse-4 .tt_List_cl:nth-child(4){grid-column:span 2!important}
  .spc-news-page .LV_Frame.spc-sparse-3 .tt_List_cl:nth-child(3),
  .spc-doctor-page .LV_Frame.spc-sparse-3 .tt_List_cl:nth-child(3){grid-column:span 2!important}
  .spc-news-page .LV_Frame.spc-sparse-2 .tt_List_cl:nth-child(2),
  .spc-doctor-page .LV_Frame.spc-sparse-2 .tt_List_cl:nth-child(2){grid-column:span 2!important}
}


/* Hết dữ liệu: sentinel và loader biến mất hoàn toàn, không quay vô hạn. */
.spc-feed-sentinel.spc-feed-complete{display:none!important;height:0!important}
.spc-feed-loader.spc-feed-complete{display:none!important;min-height:0!important;padding:0!important}

/* ========================================================================== 
   05/10/2026-10 - GROUP START / HOVER DOUBLE-EDGE
   - Mỗi nhóm feed bắt đầu độc lập: lead luôn ở cột 1-2, card nhỏ bắt đầu cột 3-4.
   - Khi xem Tất cả, nhóm chưa tới lượt cuộn được ẩn nguyên nhóm (không cắt dở card).
   - Hover theo yêu cầu: card nâng lên, viền chính rõ hơn và một viền đế bo góc nằm sát phía sau.
   ========================================================================== */
.spc-news-page .LV_Frame.spc-progressive-group-hidden,
.spc-doctor-page .LV_Frame.spc-progressive-group-hidden{display:none!important}

@media(min-width:1101px){
  /* Không cho auto-placement đẩy lead sang nửa phải. */
  .spc-news-page .LV_Frame.spc-active-group .tt_List_cl:first-child,
  .spc-doctor-page .LV_Frame.spc-active-group .tt_List_cl:first-child{
    grid-column:1 / span 2!important;grid-row:auto!important
  }
  /* Hủy quy tắc sparse cũ làm card phụ cuối giãn thành card lớn. */
  .spc-news-page .LV_Frame.spc-sparse-4 .tt_List_cl:nth-child(4),
  .spc-doctor-page .LV_Frame.spc-sparse-4 .tt_List_cl:nth-child(4),
  .spc-news-page .LV_Frame.spc-sparse-3 .tt_List_cl:nth-child(3),
  .spc-doctor-page .LV_Frame.spc-sparse-3 .tt_List_cl:nth-child(3),
  .spc-news-page .LV_Frame.spc-sparse-2 .tt_List_cl:nth-child(2),
  .spc-doctor-page .LV_Frame.spc-sparse-2 .tt_List_cl:nth-child(2){grid-column:auto!important}
}


/* ========================================================================== 
   05/10/2026-11 - ALTERNATING LEAD + FULL-WIDTH HOVER BASE
   - Nhóm lẻ: lead bên trái, 2 card nhỏ đầu nằm bên phải.
   - Nhóm chẵn: 2 card nhỏ đầu nằm bên trái, lead bên phải.
   - Hover: đế/viền thứ hai rộng đúng bằng card, bo hai góc dưới, shadow + inner nhẹ.
   ========================================================================== */
@media(min-width:1101px){
  /* Nhóm 1,3,5...: lead trái. */
  .spc-news-page .LV_Frame.spc-active-group:nth-of-type(odd) .tt_List_cl:first-child,
  .spc-doctor-page .LV_Frame.spc-active-group:nth-of-type(odd) .tt_List_cl:first-child{
    grid-column:1 / span 2!important;grid-row:1!important
  }
  .spc-news-page .LV_Frame.spc-active-group:nth-of-type(odd) .tt_List_cl:nth-child(2),
  .spc-doctor-page .LV_Frame.spc-active-group:nth-of-type(odd) .tt_List_cl:nth-child(2){grid-column:3!important;grid-row:1!important}
  .spc-news-page .LV_Frame.spc-active-group:nth-of-type(odd) .tt_List_cl:nth-child(3),
  .spc-doctor-page .LV_Frame.spc-active-group:nth-of-type(odd) .tt_List_cl:nth-child(3){grid-column:4!important;grid-row:1!important}

  /* Nhóm 2,4,6...: đúng yêu cầu 2 card nhỏ đứng TRƯỚC lead. */
  .spc-news-page .LV_Frame.spc-active-group:nth-of-type(even) .tt_List_cl:first-child,
  .spc-doctor-page .LV_Frame.spc-active-group:nth-of-type(even) .tt_List_cl:first-child{
    grid-column:3 / span 2!important;grid-row:1!important
  }
  .spc-news-page .LV_Frame.spc-active-group:nth-of-type(even) .tt_List_cl:nth-child(2),
  .spc-doctor-page .LV_Frame.spc-active-group:nth-of-type(even) .tt_List_cl:nth-child(2){grid-column:1!important;grid-row:1!important}
  .spc-news-page .LV_Frame.spc-active-group:nth-of-type(even) .tt_List_cl:nth-child(3),
  .spc-doctor-page .LV_Frame.spc-active-group:nth-of-type(even) .tt_List_cl:nth-child(3){grid-column:2!important;grid-row:1!important}
}


/* Doctor listing: compact 3-column cards; do not inherit the 4-column lead feed layout. */
@media (min-width:1101px) {
  .spc-doctor-page:not(.spc-doctor-menu-page) .LV_Frame.spc-active-group,
  .spc-doctor-page:not(.spc-doctor-menu-page) .LV_Frame:not(.spc-progressive-group-hidden) {
    display:block!important;
    width:100%!important;
    grid-template-columns:none!important;
    grid-auto-flow:row!important;
    grid-auto-rows:auto!important;
    align-items:stretch!important;
    gap:18px!important;
    row-gap:18px!important;
    margin-bottom:18px!important;
  }
  .spc-doctor-page:not(.spc-doctor-menu-page) .LV_Frame .tt_List,
  .spc-doctor-page:not(.spc-doctor-menu-page) .tt_List {
    display:grid!important;
    width:100%!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    grid-auto-flow:row!important;
    grid-auto-rows:auto!important;
    align-items:stretch!important;
    gap:18px!important;
    row-gap:18px!important;
    margin:0!important;
    padding:0!important;
  }
  .spc-doctor-page:not(.spc-doctor-menu-page) .LV_Frame .tt_List_cl,
  .spc-doctor-page:not(.spc-doctor-menu-page) .LV_Frame.spc-active-group .tt_List_cl:first-child,
  .spc-doctor-page:not(.spc-doctor-menu-page) .tt_List_cl {
    grid-column:auto!important;grid-row:auto!important;
    min-width:0!important;width:100%!important;
    height:auto!important;min-height:0!important;max-height:none!important;
    margin:0!important;align-self:stretch!important;
  }
  .spc-doctor-page:not(.spc-doctor-menu-page) .LV_Frame .tt_List :is(.tt_List_cl:first-child,.tt_List_cl:not(:first-child)) .tt_List_cl_ct {
    box-sizing:border-box!important;display:flex!important;flex-direction:column!important;
    width:100%!important;height:100%!important;min-height:0!important;
    padding:0!important;overflow:hidden!important;background:#fff!important;
  }
  .spc-doctor-page:not(.spc-doctor-menu-page) .LV_Frame .tt_List :is(.tt_List_cl:first-child,.tt_List_cl:not(:first-child)) .tt_List_cl_img {
    box-sizing:border-box!important;position:relative!important;display:block!important;
    width:100%!important;height:auto!important;aspect-ratio:16/9!important;
    flex:0 0 auto!important;margin:0!important;padding:0!important;
    background:#fff!important;overflow:hidden!important;border-radius:13px 13px 0 0!important;
  }
  .spc-doctor-page:not(.spc-doctor-menu-page) .LV_Frame .tt_List :is(.tt_List_cl:first-child,.tt_List_cl:not(:first-child)) .tt_List_cl_img>a,
  .spc-doctor-page:not(.spc-doctor-menu-page) .LV_Frame .tt_List :is(.tt_List_cl:first-child,.tt_List_cl:not(:first-child)) .tt_List_cl_img figure {
    display:block!important;width:100%!important;height:100%!important;
    margin:0!important;border-radius:0!important;overflow:hidden!important;
  }
  .spc-doctor-page:not(.spc-doctor-menu-page) .LV_Frame .tt_List :is(.tt_List_cl:first-child,.tt_List_cl:not(:first-child)) .tt_List_cl_img img {
    display:block!important;width:100%!important;height:100%!important;
    max-height:none!important;object-fit:contain!important;object-position:center!important;
    border-radius:0!important;background:#fff!important;
  }
  .spc-doctor-page:not(.spc-doctor-menu-page) .LV_Frame .tt_List :is(.tt_List_cl:first-child,.tt_List_cl:not(:first-child)) .tt_List_cl_name {
    box-sizing:border-box!important;display:flex!important;flex-direction:column!important;
    flex:0 0 auto!important;height:74px!important;min-height:74px!important;
    max-height:74px!important;margin:0!important;padding:9px 13px 0!important;
    gap:4px!important;overflow:hidden!important;
  }
  .spc-doctor-page:not(.spc-doctor-menu-page) .LV_Frame .tt_List :is(.tt_List_cl:first-child,.tt_List_cl:not(:first-child)) .tt_List_cl_name>a {
    box-sizing:border-box!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;line-clamp:2!important;
    height:42px!important;min-height:42px!important;max-height:42px!important;
    flex:0 0 42px!important;margin:0!important;line-height:21px!important;
    overflow:hidden!important;white-space:normal!important;word-break:normal!important;
  }
  .spc-doctor-page:not(.spc-doctor-menu-page) .LV_Frame .tt_List :is(.tt_List_cl:first-child,.tt_List_cl:not(:first-child)) .ngaytn {
    display:block!important;position:static!important;height:15px!important;
    min-height:15px!important;max-height:15px!important;flex:0 0 15px!important;
    line-height:15px!important;margin:0!important;padding:0!important;
  }
  .spc-doctor-page:not(.spc-doctor-menu-page) .LV_Frame .tt_List :is(.tt_List_cl:first-child,.tt_List_cl:not(:first-child)) .tt_List_cl_short {
    box-sizing:border-box!important;display:block!important;flex:1 1 auto!important;
    height:52px!important;min-height:52px!important;max-height:52px!important;
    margin:0!important;padding:2px 13px 9px!important;overflow:hidden!important;
  }
  .spc-doctor-page:not(.spc-doctor-menu-page) .LV_Frame .tt_List :is(.tt_List_cl:first-child,.tt_List_cl:not(:first-child)) .tt_List_cl_short span {
    display:-webkit-box!important;-webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;line-clamp:2!important;
    height:auto!important;max-height:40px!important;line-height:20px!important;
    overflow:hidden!important;word-break:normal!important;
  }
  .spc-doctor-page:not(.spc-doctor-menu-page) .LV_Frame .tt_List :is(.tt_List_cl:first-child,.tt_List_cl:not(:first-child)) .tt_List_cl_ctiet {display:none!important;}
}
.spc-doctor-page:not(.spc-doctor-menu-page) .tt_List_cl_img {background:#fff!important;}
.spc-doctor-page:not(.spc-doctor-menu-page) .tt_List_cl_ct:hover {transform:none!important;}
.spc-doctor-page:not(.spc-doctor-menu-page) .tt_List_cl {
  transition:transform .36s cubic-bezier(.22,1,.36,1),opacity .48s ease,box-shadow .36s ease,border-color .36s ease!important;
  will-change:auto;
}
.spc-doctor-page:not(.spc-doctor-menu-page) .tt_List_cl:hover {
  transform:translateY(-5px)!important;
  box-shadow:0 12px 26px rgba(0,80,122,.13)!important;
}
.spc-doctor-page:not(.spc-doctor-menu-page) .tt_List_cl_ct:hover {
  box-shadow:0 8px 20px rgba(8,67,98,.11),inset 0 -5px 0 #10a8d9!important;
}
/* Chỉ ẩn nhẹ những card nằm ngoài vùng nhìn; không tác động đến card đang đọc. */
.spc-doctor-page:not(.spc-doctor-menu-page) .tt_List_cl.spc-doctor-scroll-pending {
  opacity:.15!important;
  transform:translateY(14px)!important;
  pointer-events:none;
}
@media (prefers-reduced-motion:reduce) {
  .spc-doctor-page:not(.spc-doctor-menu-page) .tt_List_cl {transition:none!important;}
  .spc-doctor-page:not(.spc-doctor-menu-page) .tt_List_cl.spc-doctor-scroll-pending {opacity:1!important;transform:none!important;pointer-events:auto;}
}
@media (prefers-reduced-motion:reduce) {
  .spc-doctor-page:not(.spc-doctor-menu-page) .tt_List_cl,.spc-doctor-page:not(.spc-doctor-menu-page) .tt_List_cl_ct {transition:none;}
}

/* Lead: ảnh và gradient luôn bo theo đúng 4 góc card kể cả khi parent overflow visible để vẽ đế hover. */
.spc-news-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_img,
.spc-doctor-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_img{
  border-radius:13px!important;overflow:hidden!important;clip-path:inset(0 round 13px)!important
}
.spc-news-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_img figure,
.spc-doctor-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_img figure,
.spc-news-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_img img,
.spc-doctor-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_img img{
  border-radius:13px!important;overflow:hidden!important
}
/* JS chịu trách nhiệm dấu … tại ranh giới từ; tắt ellipsis tự động của line-clamp để không còn “s...”/“c...”. */
@media(min-width:1101px){
 .spc-news-page .tt_List_cl:not(:first-child) .tt_List_cl_name>a.spc-word-clamped,
 .spc-doctor-page .tt_List_cl:not(:first-child) .tt_List_cl_name>a.spc-word-clamped,
 .spc-news-page .tt_List_cl:not(:first-child) .tt_List_cl_short span.spc-word-clamped,
 .spc-doctor-page .tt_List_cl:not(:first-child) .tt_List_cl_short span.spc-word-clamped{
   display:block!important;-webkit-line-clamp:unset!important;line-clamp:unset!important;
   -webkit-box-orient:initial!important;overflow:hidden!important
 }
}

/* ==========================================================================
   06/10/2026-21 - CARD HOVER CHUNG (MOT RULE / DE BAO TRI)
   - Khong translate/scale: card khong nhay khi re chuot.
   - Border chinh doi mau rat nhe.
   - De bottom la mot line mem, ngan hon card 16px moi ben, cach day 5px.
   - Shadow nhe tao chieu sau; khong dung nhieu pseudo/outline chong nhau.
   ========================================================================== */
.spc-news-page .tt_List_cl_ct,
.spc-doctor-page .tt_List_cl_ct{
  position:relative!important;box-sizing:border-box!important;width:100%!important;
  border:1px solid #c9dfe9!important;border-radius:14px!important;overflow:hidden!important;
  transform:none!important;outline:none!important;background:#fff!important;
  box-shadow:0 3px 12px rgba(12,72,101,.05)!important;
  transition:border-color .18s ease,box-shadow .18s ease!important;
}
.spc-news-page .tt_List_cl_ct:before,.spc-doctor-page .tt_List_cl_ct:before{content:none!important;display:none!important}
.spc-news-page .tt_List_cl_ct:after{
  content:""!important;pointer-events:none!important;position:absolute!important;z-index:8!important;
  left:16px!important;right:16px!important;bottom:5px!important;height:2px!important;
  background:transparent!important;
  border:0!important;border-radius:999px!important;opacity:0!important;
  transition:opacity .18s ease!important;
}
@media(hover:hover) and (pointer:fine){
 .spc-news-page .tt_List_cl_ct:hover{
   border-color:#7cc5df!important;
   box-shadow:inset 0 -5px 0 #00a3cf!important;
 }
 .spc-doctor-page .tt_List_cl_ct:hover{
    border-color:#77c8e8!important;
    box-shadow:0 7px 17px rgba(8,67,98,.10),inset 0 -3px 0 #10a8d9!important;
  }
 .spc-news-page .tt_List_cl_ct:hover:after{opacity:0!important}
}
/* Lead: anh/gradient luon bo tron theo card. */
.spc-news-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_img,
.spc-doctor-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_img,
.spc-news-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_img figure,
.spc-doctor-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_img figure,
.spc-news-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_img img,
.spc-doctor-page .LV_Frame.spc-active-group .tt_List_cl:first-child .tt_List_cl_img img{border-radius:13px!important}

/* ==========================================================================
   PRODUCT DETAIL 2026
   One shared product-detail style. Do not create page-specific duplicate rules.
   Media gallery supports primary image + images/video embedded in ProLong.
   ========================================================================== */
.master_content_center .sp_list_detail > div{display:grid;grid-template-columns:minmax(320px,42%) minmax(0,58%);gap:32px;align-items:start;background:#fff;border:1px solid #e2edf3;border-radius:18px;padding:24px;box-shadow:0 10px 32px rgba(0,74,119,.07)}
.master_content_center .sp_cl_img,.master_content_center .sp_cl_noidung{width:auto!important;float:none!important;margin:0!important}
.spc-product-media{position:sticky;top:112px;min-width:0}
.spc-product-stage{position:relative;display:flex;align-items:center;justify-content:center;aspect-ratio:1/1;background:linear-gradient(145deg,#f8fbfd,#fff);border:1px solid #dbe8ef;border-radius:16px;overflow:hidden;padding:18px}
.spc-product-main-link{display:flex;align-items:center;justify-content:center;width:100%;height:100%}
.spc-product-main-image{display:block!important;width:100%!important;height:100%!important;max-width:100%;object-fit:contain;border:0!important;border-radius:12px}
.spc-product-stage video,.spc-product-stage iframe{width:100%;height:100%;border:0;border-radius:12px;background:#000;object-fit:contain}
.spc-product-thumbs{display:flex;gap:10px;overflow-x:auto;padding:12px 2px 4px;scrollbar-width:thin}
.spc-product-thumb{position:relative;flex:0 0 76px;width:76px;height:76px;padding:4px;border:1px solid #d9e6ed;border-radius:11px;background:#fff;cursor:pointer;overflow:hidden;transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}
.spc-product-thumb:hover,.spc-product-thumb.is-active{border-color:#078fc8;box-shadow:0 4px 14px rgba(0,112,164,.14);transform:translateY(-1px)}
.spc-product-thumb img{width:100%;height:100%;object-fit:contain;border-radius:7px}
.spc-product-thumb .spc-product-play{position:absolute;inset:0;display:grid;place-items:center;font-size:22px;color:#fff;text-shadow:0 2px 8px rgba(0,0,0,.55);background:rgba(0,0,0,.18)}
.spc-product-media-hint{margin-top:8px;text-align:center;font-size:12px;color:#6e8796}
.spc-product-info{min-width:0;padding:4px 4px 0}
.spc-product-info .sp_list_detail_icon{display:none}
.spc-product-info .sp_list_detail_td{margin:0 0 16px!important;padding:0 0 14px!important;border-bottom:1px solid #e3edf2;font-size:clamp(23px,2.1vw,34px)!important;line-height:1.25!important;font-weight:700!important;color:#00669a!important}
.spc-product-description{font-size:15px;line-height:1.72;color:#344f5f}
.spc-product-description img{max-width:100%;height:auto;border-radius:12px}
.spc-product-description table{width:100%!important;max-width:100%;border-collapse:collapse}
.spc-product-description iframe,.spc-product-description video{max-width:100%;border-radius:12px}
.spc-product-description .spc-gallery-source-hidden{display:none!important}
.master_content_center .list_khac{margin-top:32px}
.master_content_center .sp_List_cl_k{border-radius:14px;overflow:hidden;border:1px solid #e0ebf1;background:#fff;transition:box-shadow .2s ease,transform .2s ease}
.master_content_center .sp_List_cl_k:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(0,75,115,.10)}
@media(max-width:900px){.master_content_center .sp_list_detail > div{grid-template-columns:1fr;gap:20px;padding:16px}.spc-product-media{position:relative;top:auto;max-width:620px;width:100%;margin:0 auto!important}.spc-product-info .sp_list_detail_td{font-size:24px!important}}
@media(max-width:560px){.master_content_center .sp_list_detail > div{padding:12px;border-radius:14px}.spc-product-stage{padding:10px;border-radius:13px}.spc-product-thumb{flex-basis:64px;width:64px;height:64px}.spc-product-info .sp_list_detail_td{font-size:21px!important}.spc-product-description{font-size:14px;line-height:1.65}}


/* ==========================================================================
   PRODUCT DETAIL V23 - 06/10/2026
   Phạm vi .spc-pdp-page để không đụng CSS trang cũ. Đây là CSS DUY NHẤT cho PDP.
   Thiết kế chuẩn bị cho e-commerce: gallery / variant / action / related.
   ========================================================================== */
.spc-pdp-page{--pdp-blue:#006fae;--pdp-dark:#12364a;--pdp-line:#dce9ef;--pdp-soft:#f5f9fb;max-width:1280px;margin:0 auto;padding:22px 24px 64px;font-family:Arial,"Helvetica Neue",sans-serif;color:#27485a}.spc-pdp-breadcrumb{display:flex;gap:10px;align-items:center;flex-wrap:wrap;font-size:13px;margin:4px 0 20px;color:#78909c}.spc-pdp-breadcrumb a{color:#54788b;text-decoration:none}.spc-pdp-shell{display:block}.spc-pdp-hero{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(360px,.95fr);gap:48px;background:#fff;border:1px solid var(--pdp-line);border-radius:24px;padding:34px;box-shadow:0 16px 45px rgba(25,72,95,.08)}.spc-pdp-gallery{min-width:0}.spc-pdp-stage{height:500px;border-radius:20px;background:linear-gradient(145deg,#f8fbfc,#eef6f9);display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.spc-pdp-main-image{width:100%;height:100%;object-fit:contain;padding:28px;box-sizing:border-box;transition:transform .25s ease}.spc-pdp-stage:hover .spc-pdp-main-image{transform:scale(1.025)}.spc-pdp-video{width:100%;height:100%}.spc-pdp-video iframe,.spc-pdp-video video{width:100%;height:100%;border:0;object-fit:contain;background:#000}.spc-pdp-thumbs{display:flex;gap:10px;margin-top:14px;overflow-x:auto;padding:9px 4px 10px;scroll-padding-inline:4px}.spc-pdp-thumb{width:78px;height:78px;flex:0 0 78px;border:1px solid #d7e5eb;background:#fff;border-radius:13px;padding:5px;cursor:pointer;position:relative;transition:.2s}.spc-pdp-thumb:hover,.spc-pdp-thumb.is-active{border-color:var(--pdp-blue);box-shadow:0 4px 14px rgba(0,111,174,.14)}.spc-pdp-thumb img{width:100%;height:100%;object-fit:contain;border-radius:9px}.spc-pdp-play{position:absolute;inset:0;display:grid;place-items:center;color:#fff;font-size:18px;text-shadow:0 2px 8px #000}.spc-pdp-summary{padding:12px 4px;display:flex;flex-direction:column;align-items:flex-start}.spc-pdp-eyebrow{font-size:12px;text-transform:uppercase;letter-spacing:.12em;font-weight:700;color:var(--pdp-blue);background:#eaf6fb;border-radius:999px;padding:8px 12px}.spc-pdp-summary h1{font-size:34px;line-height:1.18;color:#063e60;margin:18px 0 14px;letter-spacing:-.02em}.spc-pdp-short{font-size:15px;line-height:1.75;color:#4d6876;width:100%}.spc-pdp-short p{margin:0 0 9px}.spc-pdp-variants{border-top:1px solid var(--pdp-line);margin-top:22px;padding-top:20px;width:100%}.spc-pdp-label{font-weight:700;color:var(--pdp-dark);margin-bottom:10px}.spc-pdp-variant-list{display:flex;flex-wrap:wrap;gap:9px}.spc-pdp-variant{border:1px solid #c9dce5;background:#fff;border-radius:10px;padding:10px 14px;color:#31586c;cursor:pointer;font-weight:600}.spc-pdp-variant:hover,.spc-pdp-variant.is-active{border-color:var(--pdp-blue);color:var(--pdp-blue);background:#f0f9fd}.spc-pdp-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:26px}.spc-pdp-btn{min-height:44px;padding:0 18px;border:1px solid #c8dce5;border-radius:12px;background:#fff;color:#15516f;text-decoration:none;font-weight:700;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.spc-pdp-btn-primary{background:var(--pdp-blue);border-color:var(--pdp-blue);color:#fff;box-shadow:0 8px 18px rgba(0,111,174,.18)}.spc-pdp-future-note{margin-top:14px;font-size:12px;color:#91a4ae;line-height:1.5}.spc-pdp-content,.spc-pdp-related{margin-top:28px;background:#fff;border:1px solid var(--pdp-line);border-radius:22px;padding:32px}.spc-pdp-section-head span{text-transform:uppercase;letter-spacing:.12em;font-size:11px;color:var(--pdp-blue);font-weight:700}.spc-pdp-section-head h2{font-size:24px;color:#123f57;margin:6px 0 24px}.spc-pdp-richtext{font-size:15px;line-height:1.8;color:#355869;max-width:100%;overflow-wrap:anywhere}.spc-pdp-richtext img{max-width:100%!important;height:auto!important;border-radius:14px}.spc-pdp-richtext table{max-width:100%;border-collapse:collapse}.spc-pdp-related-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.spc-pdp-related-card{border:1px solid #e0ebef;border-radius:16px;overflow:hidden;text-decoration:none;color:#164a64;background:#fff;transition:transform .2s,box-shadow .2s,border-color .2s;padding-bottom:16px}.spc-pdp-related-card:hover{transform:translateY(-3px);border-color:#b8d8e6;box-shadow:0 12px 25px rgba(26,76,99,.10)}.spc-pdp-related-image{height:190px;background:#f6fafb;padding:16px}.spc-pdp-related-image img{width:100%;height:100%;object-fit:contain}.spc-pdp-related-card strong,.spc-pdp-related-card span{display:block;margin:12px 15px 0}.spc-pdp-related-card strong{line-height:1.4}.spc-pdp-related-card span{font-size:12px;color:#71909f}@media(max-width:980px){.spc-pdp-hero{grid-template-columns:1fr;gap:24px}.spc-pdp-stage{height:440px}.spc-pdp-related-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:600px){.spc-pdp-page{padding:14px 12px 44px}.spc-pdp-hero{padding:14px;border-radius:18px}.spc-pdp-stage{height:340px;border-radius:15px}.spc-pdp-main-image{padding:18px}.spc-pdp-summary h1{font-size:27px}.spc-pdp-content,.spc-pdp-related{padding:20px 16px;border-radius:17px}.spc-pdp-related-grid{grid-template-columns:1fr}.spc-pdp-related-image{height:220px}}


/* ==========================================================================
   V25 - PRODUCT LIST TOOLBAR + PRODUCT DETAIL RESPONSIVE / IMAGE ZOOM
   Mục tiêu bảo trì:
   - Trang danh sách: tab trái + ô tìm kiếm nhỏ bên phải, cùng ngôn ngữ UI Tin tức/Bác sĩ.
   - Trang chi tiết: chặn tràn ngang do box model cũ; menu nội dung gọn; zoom ảnh không đổi layout.
   - Chỉ bổ sung tại CSS chung SPCMenu2026.css, KHÔNG tạo CSS trang riêng.
   ========================================================================== */
.spc-products-page .spc-product-toolbar{display:flex!important;align-items:center!important;gap:14px!important;width:100%!important;margin:0 0 18px!important;padding:5px 8px!important;border:1px solid #dbeaf1!important;border-radius:14px!important;background:#fff!important;box-sizing:border-box!important;box-shadow:0 5px 18px rgba(0,72,108,.045)!important}
.spc-products-page .spc-product-toolbar .spc-category-tabs{flex:1 1 auto!important;min-width:0!important;margin:0!important;padding:2px 0!important;min-height:40px!important;border:0!important;background:transparent!important;box-shadow:none!important}
.spc-products-page .spc-product-toolbar .spc-product-search{flex:0 0 270px!important;width:270px!important;height:38px!important;margin:0!important;border-radius:10px!important;background:#f9fcfe!important}
.spc-products-page .spc-product-toolbar .spc-product-search input{font-size:13px!important}

/* box-sizing bắt buộc: max-width + padding không được làm PDP rộng hơn viewport */
.spc-pdp-page,.spc-pdp-page *{box-sizing:border-box}
.master_content_center.spc-pdp-page{width:calc(100% - 32px)!important;max-width:1280px!important;min-width:0!important;margin-left:auto!important;margin-right:auto!important;padding-left:0!important;padding-right:0!important;overflow:visible!important}
.spc-pdp-page .spc-pdp-shell,.spc-pdp-page .spc-pdp-hero,.spc-pdp-page .spc-pdp-content,.spc-pdp-page .spc-pdp-related{width:100%!important;max-width:100%!important;min-width:0!important}
.spc-pdp-page .spc-pdp-hero{grid-template-columns:minmax(0,1fr) minmax(320px,.92fr)!important;gap:38px!important;padding:30px!important}

/* Menu nội dung: dùng cho điều hướng trong Detail; không lặp ô Search của menu cha. */
.spc-pdp-section-nav{position:sticky;top:78px;z-index:12;display:flex;align-items:center;gap:6px;width:max-content;max-width:100%;margin:0 0 14px;padding:5px;border:1px solid #dceaf0;border-radius:12px;background:rgba(255,255,255,.96);box-shadow:0 5px 18px rgba(16,72,98,.06);backdrop-filter:blur(8px)}
.spc-pdp-section-nav a{display:inline-flex;align-items:center;min-height:34px;padding:6px 12px;border-radius:8px;color:#376276;text-decoration:none;font-size:13px;font-weight:600;white-space:nowrap}
.spc-pdp-section-nav a:hover{background:#eef8fc;color:#0077ad}
#spcPdpOverview,#spcPdpInfo,#spcPdpRelated{scroll-margin-top:140px}

/* Zoom desktop: ảnh phóng bên trong khung nên không làm thay đổi kích thước trang.
   JS V25 cập nhật transform-origin theo vị trí con trỏ để xem nhãn/chữ nhỏ. */
.spc-pdp-stage[data-pdp-stage]{cursor:zoom-in}
.spc-pdp-stage[data-pdp-stage] .spc-pdp-main-image{transform-origin:50% 50%;transition:transform .18s ease-out;will-change:transform}
.spc-pdp-stage[data-pdp-stage].is-zooming .spc-pdp-main-image{transform:scale(1.85)!important}

@media(max-width:980px){
 .spc-products-page .spc-product-toolbar{flex-wrap:wrap!important}
 .spc-products-page .spc-product-toolbar .spc-category-tabs{flex:1 1 100%!important}
 .spc-products-page .spc-product-toolbar .spc-product-search{flex:1 1 100%!important;width:100%!important;max-width:none!important}
 .master_content_center.spc-pdp-page{width:calc(100% - 24px)!important}
 .spc-pdp-page .spc-pdp-hero{grid-template-columns:1fr!important;gap:22px!important;padding:20px!important}
 .spc-pdp-section-nav{top:74px;overflow-x:auto;width:100%;scrollbar-width:none}
 .spc-pdp-section-nav::-webkit-scrollbar{display:none}
}
@media(max-width:600px){
 .master_content_center.spc-pdp-page{width:calc(100% - 16px)!important}
 .spc-pdp-page .spc-pdp-hero{padding:12px!important}
 .spc-pdp-section-nav{position:relative;top:auto;margin-bottom:10px}
 .spc-pdp-section-nav a{font-size:12px;padding:5px 9px}
 .spc-pdp-stage[data-pdp-stage]{cursor:default}
 .spc-pdp-stage[data-pdp-stage].is-zooming .spc-pdp-main-image{transform:none!important}
}

/* ========================================================================== 
   V26 - TINH CHỈNH PRODUCT DETAIL
   - Tạo khoảng an toàn dưới header/logo để breadcrumb không bị che.
   - Section nav là một thanh phẳng, các mục phân cách bằng line dọc.
   - Hero sạch hơn: bỏ CTA tư vấn/bán hàng chưa phù hợp, chỉ giữ tiện ích chia sẻ.
   Lưu ý: đây là lớp override cuối cùng của PDP để tránh phải sửa nhiều rule cũ.
   ========================================================================== */
.master_content_center.spc-pdp-page{padding-top:34px!important}
.spc-pdp-breadcrumb{min-height:24px;margin:0 0 18px!important;padding:0 4px;position:relative;z-index:1}

/* PDP tab điều hướng: bỏ khung bao ngoài, giữ đường kẻ mảnh và tab active/hover.
   Không thay anchor/ID hiện có; dùng cho cả VN/EN/LA qua stylesheet chung. */
.spc-pdp-section-nav{position:relative!important;top:auto!important;z-index:2!important;display:flex!important;align-items:center!important;gap:0!important;width:100%!important;max-width:100%!important;min-height:43px!important;margin:0 0 16px!important;padding:0 8px!important;border:0!important;border-bottom:1px solid #dce9ef!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;backdrop-filter:none!important;overflow-x:auto!important;overflow-y:hidden!important;white-space:nowrap!important;scrollbar-width:none}
.spc-pdp-section-nav::-webkit-scrollbar{display:none}
.spc-pdp-section-nav a{display:inline-flex!important;flex:0 0 auto!important;align-items:center!important;min-height:42px!important;padding:0 16px!important;border-radius:0!important;background:transparent!important;color:#42687a!important;font-size:13px!important;font-weight:600!important;text-decoration:none!important;transition:color .18s ease!important;position:relative}
.spc-pdp-section-nav a:hover,.spc-pdp-section-nav a:focus-visible{background:transparent!important;color:#0077ad!important}
.spc-pdp-section-nav a:after{content:"";position:absolute;left:16px;right:16px;bottom:0;height:2px;background:#0796cf;transform:scaleX(0);transform-origin:center;transition:transform .18s ease}
.spc-pdp-section-nav a:hover:after,.spc-pdp-section-nav a:focus-visible:after{transform:scaleX(1)}
.spc-pdp-nav-sep{display:block;flex:0 0 1px;width:1px;height:16px;background:#d8e5eb}

/* Hero giống cách trình bày catalogue/commerce hiện đại: ảnh + thông tin, ít nút thừa. */
.spc-pdp-page .spc-pdp-hero{border-radius:22px!important;box-shadow:0 12px 36px rgba(25,72,95,.065)!important}
/* Căn mép trên badge nhóm với mép trên stage ảnh, không dùng margin âm. */
.spc-pdp-page .spc-pdp-summary{justify-content:flex-start!important;align-self:start!important;padding:0 6px!important;margin:0!important}
.spc-pdp-page .spc-pdp-eyebrow{margin-top:0!important}
.spc-pdp-summary h1{margin:16px 0 18px!important}
.spc-pdp-short{border-top:1px solid #e4edf1;padding-top:18px!important}
.spc-pdp-actions-utility{margin-top:20px!important;padding-top:16px;width:100%;border-top:1px solid #e8f0f3}
.spc-pdp-btn-copy{min-height:38px!important;padding:0 14px!important;border-color:#d3e3ea!important;border-radius:10px!important;background:#fff!important;color:#376276!important;font-size:12px!important;font-weight:600!important;box-shadow:none!important}
.spc-pdp-btn-copy:hover{border-color:#8fc5da!important;background:#f6fbfd!important;color:#0077ad!important}
.spc-pdp-btn-copy span{font-size:16px;margin-right:7px;line-height:1}

@media(max-width:980px){
 .master_content_center.spc-pdp-page{padding-top:28px!important}
 .spc-pdp-section-nav{justify-content:flex-start!important;padding:0 6px!important}
 .spc-pdp-section-nav a{padding:0 13px!important}
 .spc-pdp-section-nav a:after{left:13px;right:13px}
}
@media(max-width:600px){
 .master_content_center.spc-pdp-page{padding-top:22px!important}
 .spc-pdp-breadcrumb{font-size:12px!important;margin-bottom:12px!important}
 .spc-pdp-section-nav{min-height:42px!important;margin-bottom:12px!important}
 .spc-pdp-section-nav a{min-height:40px!important;font-size:12px!important;padding:0 11px!important}
 .spc-pdp-nav-sep{height:16px}
}

/* ==========================================================================
   V30 - CHUẨN HÓA CUỐI: PRODUCT DETAIL / TOOLBAR / LIBRARY / LANGUAGE
   Đây là block override duy nhất sau V26. Không chồng thêm V27/V28/V29.
   ========================================================================== */

/* Product Detail: breadcrumb có cùng khoảng thở dưới header như các trang Detail khác. */
@media (min-width:981px){
  .master_content_center.spc-pdp-page{padding-top:34px!important}
  .spc-pdp-breadcrumb{padding:0 4px!important;min-height:24px!important;margin:0 0 18px!important}
}

/* Menu nội dung sản phẩm giữ nguyên đường viền đầy đủ và line hover phía dưới. */
.spc-pdp-section-nav{
  min-height:50px!important;margin:0 0 18px!important;padding:0 18px!important;
  border:1px solid #dce9ef!important;border-radius:14px!important;background:#fff!important;
  box-shadow:0 5px 18px rgba(0,72,108,.045)!important;overflow:hidden!important
}
.spc-pdp-section-nav a{min-height:48px!important;display:inline-flex!important;align-items:center!important;padding:0 18px!important}

/* Share của Product Detail nằm TRONG cột thông tin, sau mô tả.
   Có line riêng phía trên và khoảng thở nên không dính vào line của tiêu đề/mô tả. */
.spc-pdp-summary .spc-pdp-sharebar{
  width:100%!important;margin:22px 0 0!important;padding:18px 0 0!important;
  border-top:1px solid #e4edf1!important;justify-content:flex-end!important
}

/* Toolbar danh mục: một chuẩn cho Sản phẩm/Tin tức/Bác sĩ/Thư viện. */
.spc-products-page .spc-product-toolbar,
.spc-news-page .spc-content-toolbar,
.spc-doctor-page .spc-content-toolbar,
.spc-media-page .spc-content-toolbar{
  display:flex!important;align-items:center!important;gap:8px!important;width:100%!important;
  min-height:50px!important;margin:0 0 18px!important;padding:6px 8px!important;box-sizing:border-box!important;
  border:1px solid #d8e8f0!important;border-radius:14px!important;background:#fff!important;
  box-shadow:0 5px 18px rgba(0,72,108,.045)!important;overflow:hidden!important
}
.spc-products-page .spc-product-toolbar .spc-category-tabs,
.spc-news-page .spc-content-toolbar .spc-category-tabs,
.spc-doctor-page .spc-content-toolbar .spc-category-tabs,
.spc-media-page .spc-content-toolbar .spc-category-tabs{
  flex:1 1 auto!important;min-width:0!important;margin:0!important;padding:0!important;gap:5px!important;
  border:0!important;background:transparent!important;box-shadow:none!important;overflow-x:auto!important;scrollbar-width:none!important
}
.spc-category-tabs::-webkit-scrollbar{display:none!important}
.spc-products-page .spc-product-toolbar .spc-category-tab,
.spc-content-toolbar .spc-category-tab{
  min-height:34px!important;height:34px!important;padding:5px 11px!important;font-size:12.5px!important;
  border-radius:999px!important;white-space:nowrap!important;transform:none!important
}
.spc-products-page .spc-product-search,
.spc-news-page .spc-content-search,
.spc-doctor-page .spc-content-search,
.spc-media-page .spc-library-search--live{
  position:static!important;float:none!important;transform:none!important;align-self:center!important;
  flex:0 0 250px!important;width:250px!important;height:36px!important;min-height:36px!important;
  margin:0!important;padding:0 10px!important;box-sizing:border-box!important;overflow:hidden!important;
  border:1px solid #d4e5ed!important;border-radius:10px!important;background:#f9fcfe!important;box-shadow:none!important
}
.spc-media-page .spc-library-search--live input[type=search]{position:static!important;height:32px!important;line-height:32px!important;margin:0!important;transform:none!important}

/* Thư viện: loại khoảng trắng legacy trước toolbar. */
.spc-media-page .mt_title_ct_c{margin-bottom:12px!important;min-height:28px!important}
.spc-media-page .mt_title_ct_c .space_ct{display:none!important;height:0!important;margin:0!important;padding:0!important}
.spc-media-page .spc-library-toolbar{margin-top:0!important}

/* Cờ English - Union Jack. */
.spc2026-header .flag-gb{
  background:
    linear-gradient(33deg,transparent 42%,#fff 42% 47%,#c8102e 47% 53%,#fff 53% 58%,transparent 58%),
    linear-gradient(-33deg,transparent 42%,#fff 42% 47%,#c8102e 47% 53%,#fff 53% 58%,transparent 58%),
    linear-gradient(90deg,transparent 37%,#fff 37% 44%,#c8102e 44% 56%,#fff 56% 63%,transparent 63%),
    linear-gradient(0deg,transparent 31%,#fff 31% 41%,#c8102e 41% 59%,#fff 59% 69%,transparent 69%),
    #012169!important
}

@media (max-width:980px){
  .master_content_center.spc-pdp-page{padding-top:28px!important}
  .spc-pdp-summary .spc-pdp-sharebar{justify-content:flex-start!important}
  .spc-products-page .spc-product-toolbar,.spc-news-page .spc-content-toolbar,.spc-doctor-page .spc-content-toolbar,.spc-media-page .spc-content-toolbar{flex-wrap:wrap!important;padding:6px!important}
  .spc-products-page .spc-product-search,.spc-news-page .spc-content-search,.spc-doctor-page .spc-content-search,.spc-media-page .spc-library-search--live{flex:1 1 100%!important;width:100%!important;max-width:none!important}
}
@media (max-width:600px){.master_content_center.spc-pdp-page{padding-top:22px!important}}

/* ========================================================================== 
   V31 - KHOẢNG AN TOÀN BREADCRUMB DƯỚI HEADER / LOGO
   Dùng chung cho các trang có breadcrumb để logo SPC nổi không che đường dẫn.
   Chỉ điều chỉnh khoảng cách theo chiều dọc; không thay đổi nội dung, toolbar,
   chia sẻ hoặc bố cục chi tiết của từng trang.
   ========================================================================== */
:root{--spc-breadcrumb-clearance:28px}

/* Breadcrumb kiểu mới của trang chi tiết sản phẩm. */
#master_content .spc-pdp-page > .spc-pdp-breadcrumb{
  box-sizing:border-box!important;
  padding-top:var(--spc-breadcrumb-clearance)!important;
  min-height:calc(24px + var(--spc-breadcrumb-clearance))!important;
  margin-top:0!important;
}

/* Breadcrumb kiểu cũ dùng chung ở Giới thiệu, Tin tức, Bác sĩ cây trồng,
   Thư viện và các trang nội dung khác. Chỉ áp dụng khi mt_title_ct_c là
   khối đầu tiên trong master_content_center để tránh tác động tiêu đề giữa trang. */
#master_content .master_content_center > .mt_title_ct_c:first-child{
  box-sizing:border-box!important;
  padding-top:var(--spc-breadcrumb-clearance)!important;
}

@media(max-width:767px){
  :root{--spc-breadcrumb-clearance:18px}
}

/* ========================================================================== 
   V33 - CHUẨN HÓA BREADCRUMB CHO TOÀN BỘ MENU CHA + TRANG CHI TIẾT
   Mục tiêu bảo trì: chỉ dùng MỘT nhịp dọc dưới header/logo cho các trang VN.
   Chuẩn V34: tăng thêm 2px trên + 2px dưới => 30px trên, 16px dưới; canh trái 0.
   Reset padding legacy của .td_ct_name để Tin tức/Bác sĩ/Thư viện detail không
   cộng thêm khoảng trắng. Không tác động toolbar, sharebar hay nội dung trang.
   ========================================================================== */
:root{--spc-breadcrumb-top:30px;--spc-breadcrumb-bottom:16px}

/* Breadcrumb legacy: Giới thiệu, Sản phẩm, Tin tức, Bác sĩ cây trồng, Thư viện
   và các trang chi tiết đang dùng .mt_title_ct_c/.td_ct_name. */
#master_content .master_content_center > .mt_title_ct_c:first-child{
  width:100%!important;max-width:100%!important;height:auto!important;
  margin:0 0 var(--spc-breadcrumb-toolbar-gap, 0px)!important;padding:var(--spc-breadcrumb-top) 0 var(--spc-breadcrumb-bottom)!important;
  box-sizing:border-box!important;float:none!important
}
#master_content .master_content_center > .mt_title_ct_c:first-child > .space_ct{
  display:none!important;height:0!important;margin:0!important;padding:0!important
}
#master_content .master_content_center > .mt_title_ct_c:first-child > .td_ct_name{
  width:100%!important;float:none!important;clear:none!important;
  margin:0!important;padding:0!important;box-sizing:border-box!important
}
#master_content .master_content_center > .mt_title_ct_c:first-child > .td_ct_name ul{
  margin:0!important;padding:0!important
}

/* Product Detail dùng breadcrumb riêng, nhưng giữ đúng cùng chiều cao/nhịp dọc. */
#master_content .spc-pdp-page > .spc-pdp-breadcrumb{
  min-height:0!important;margin:0!important;
  padding:var(--spc-breadcrumb-top) 0 var(--spc-breadcrumb-bottom)!important;
  box-sizing:border-box!important
}

@media(max-width:767px){
  :root{--spc-breadcrumb-top:16px;--spc-breadcrumb-bottom:12px}
}


/* ==========================================================================
   V34 - CANH TRÁI TUYỆT ĐỐI NỘI DUNG BREADCRUMB
   Mục tiêu: mọi breadcrumb menu cha/chi tiết bắt đầu tại mép trái của chính
   container nội dung, giống trang Giới thiệu. Không tạo margin/padding bù riêng
   cho từng module để dễ bảo trì về sau.
   ========================================================================== */
#master_content .master_content_center > .mt_title_ct_c:first-child > .td_ct_name,
#master_content .master_content_center > .mt_title_ct_c:first-child > .td_ct_name > ul,
#master_content .spc-pdp-page > .spc-pdp-breadcrumb{
  margin-left:0!important;
  padding-left:0!important;
  left:0!important;
  text-align:left!important;
}
#master_content .master_content_center > .mt_title_ct_c:first-child > .td_ct_name > ul > li:first-child,
#master_content .spc-pdp-page > .spc-pdp-breadcrumb > *:first-child{
  margin-left:0!important;
  padding-left:0!important;
}

/* =========================================================
   V35 - THƯ VIỆN + DROPDOWN NGÔN NGỮ
   1) Toolbar Thư viện bỏ viền/khung ngoài; chỉ giữ các pill danh mục.
   2) Ô tìm kiếm luôn căn giữa theo chiều cao toolbar.
   3) Media-ID dùng cùng toolbar và đầy đủ nhóm như trang Thư viện chính.
   4) Dropdown ngôn ngữ gọn hơn, cờ có viền nhẹ để nổi trên nền trắng.
   ========================================================= */
.spc-media-page .spc-content-toolbar{
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  padding:0!important;
  min-height:44px!important;
  overflow:visible!important;
  align-items:center!important;
}
.spc-media-page .spc-content-toolbar .spc-category-tabs{
  align-self:center!important;
  min-height:40px!important;
  height:40px!important;
  align-items:center!important;
}
.spc-media-page .spc-library-search--live{
  align-self:center!important;
  margin:0!important;
  top:auto!important;
  bottom:auto!important;
  transform:none!important;
}
.spc-media-page .spc-library-search--server button[type="submit"]{display:none!important}

/* Dropdown ngôn ngữ: giảm khoảng trắng dọc nhưng vẫn đủ vùng bấm. */
.spc2026-header .language-menu{padding:5px!important}
.spc2026-header .language-menu a{
  min-height:42px!important;
  padding:5px 8px!important;
  gap:8px!important;
}
.spc2026-header .language-menu b{line-height:1.1!important}
.spc2026-header .language-menu small{margin-top:2px!important;line-height:1.05!important}
/* Viền + inner highlight rất nhẹ giúp cả cờ sáng/tối đều rõ hình. */
.spc2026-header .language-menu .flag{
  border:1px solid rgba(0,65,105,.20)!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.30),0 1px 2px rgba(0,54,86,.08)!important;
  border-radius:3px!important;
}

/* =========================================================
   V36 - CHUẨN HÓA TOOLBAR THƯ VIỆN THEO TIN TỨC / BÁC SĨ CÂY TRỒNG
   - Giữ khung ngoài của toolbar.
   - Bỏ border từng nhóm Thư viện; chỉ tab active có nền xanh.
   - Sản phẩm giữ nguyên kiểu pill có border để phân biệt nhóm sản phẩm.
   - Search căn giữa theo chiều cao và nằm bên phải.
   ========================================================= */
.spc-media-page .spc-content-toolbar{
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  gap:16px!important;
  width:100%!important;
  min-height:52px!important;
  margin:0 0 18px!important;
  padding:8px 10px!important;
  box-sizing:border-box!important;
  border:1px solid #e1edf3!important;
  border-radius:16px!important;
  background:rgba(255,255,255,.96)!important;
  box-shadow:0 8px 26px rgba(18,78,108,.055)!important;
  overflow:hidden!important;
}
.spc-media-page .spc-content-toolbar .spc-category-tabs{
  display:flex!important;
  align-items:center!important;
  flex:1 1 auto!important;
  min-width:0!important;
  min-height:38px!important;
  gap:7px!important;
  margin:0!important;
  padding:0!important;
  overflow-x:auto!important;
  white-space:nowrap!important;
  scrollbar-width:none!important;
}
.spc-media-page .spc-content-toolbar .spc-category-tabs::-webkit-scrollbar{display:none!important}
.spc-media-page .spc-content-toolbar .spc-category-tab{
  flex:0 0 auto!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:34px!important;
  height:34px!important;
  padding:7px 13px!important;
  border:1px solid transparent!important;
  border-radius:10px!important;
  background:transparent!important;
  color:#315e75!important;
  box-shadow:none!important;
  font-size:13px!important;
  font-weight:650!important;
  text-decoration:none!important;
  transform:none!important;
  transition:.18s ease!important;
}
.spc-media-page .spc-content-toolbar .spc-category-tab:hover{
  border-color:transparent!important;
  background:#f1f8fb!important;
  color:#0078ad!important;
  box-shadow:none!important;
  transform:none!important;
}
.spc-media-page .spc-content-toolbar .spc-category-tab.active{
  border-color:#078fc8!important;
  background:#078fc8!important;
  color:#fff!important;
  box-shadow:0 5px 14px rgba(7,143,200,.18)!important;
}
.spc-media-page .spc-library-search--live{
  position:static!important;
  flex:0 0 250px!important;
  width:250px!important;
  height:38px!important;
  min-height:38px!important;
  margin:0!important;
  align-self:center!important;
  transform:none!important;
}
@media(max-width:900px){
  .spc-media-page .spc-content-toolbar{flex-wrap:wrap!important;gap:8px!important}
  .spc-media-page .spc-content-toolbar .spc-category-tabs{flex:1 1 100%!important}
  .spc-media-page .spc-library-search--live{flex:1 1 100%!important;width:100%!important;max-width:none!important}
}

.spc-media-page .spc-content-toolbar.spc-library-toolbar{position:relative!important;display:flex!important;align-items:center!important;gap:16px!important;width:100%!important;min-height:52px!important;margin:0 0 18px!important;padding:8px 10px!important;box-sizing:border-box!important;border:1px solid #e1edf3!important;border-radius:16px!important;background:rgba(255,255,255,.96)!important;box-shadow:0 8px 26px rgba(18,78,108,.055)!important;overflow:visible!important}
.spc-media-page .spc-content-toolbar.spc-library-toolbar .spc-category-tabs{display:flex!important;align-items:center!important;flex:1 1 auto!important;min-width:0!important;min-height:38px!important;height:auto!important;gap:7px!important;margin:0!important;padding:0!important;overflow-x:auto!important;overflow-y:visible!important;scrollbar-width:none!important;white-space:nowrap!important}
.spc-media-page .spc-content-toolbar.spc-library-toolbar .spc-category-tab{flex:0 0 auto!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:34px!important;height:34px!important;padding:7px 13px!important;border:1px solid transparent!important;border-radius:10px!important;background:transparent!important;color:#315e75!important;font-size:13px!important;font-weight:650!important;text-decoration:none!important;box-shadow:none!important;transform:none!important;transition:.18s ease!important}
.spc-media-page .spc-content-toolbar.spc-library-toolbar .spc-category-tab:hover{background:#f1f8fb!important;color:#0078ad!important;border-color:#86c4df!important;box-shadow:0 4px 12px rgba(0,82,130,.07)!important;transform:none!important}
.spc-media-page .spc-content-toolbar.spc-library-toolbar .spc-category-tab.active{background:#078fc8!important;color:#fff!important;border-color:#078fc8!important;box-shadow:0 5px 14px rgba(7,143,200,.18)!important}
.spc-media-page .spc-content-toolbar.spc-library-toolbar .spc-library-search--live{position:static!important;inset:auto!important;float:none!important;align-self:center!important;flex:0 0 250px!important;width:250px!important;max-width:250px!important;height:38px!important;min-height:38px!important;margin:0!important;padding:0 11px!important;box-sizing:border-box!important;transform:none!important;display:flex!important;align-items:center!important;gap:7px!important;overflow:hidden!important;border:1px solid #d7e8f0!important;border-radius:11px!important;background:#f8fbfd!important;box-shadow:none!important}
.spc-media-page .spc-content-toolbar.spc-library-toolbar .spc-library-search-icon{flex:0 0 18px!important;width:18px!important;margin:0!important;font-size:17px!important;line-height:1!important}
.spc-media-page .spc-content-toolbar.spc-library-toolbar .spc-library-search--live input[type=search]{position:static!important;display:block!important;flex:1 1 auto!important;min-width:0!important;width:100%!important;height:36px!important;line-height:36px!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;transform:none!important;font-size:13px!important}
.spc-media-page .spc-content-toolbar.spc-library-toolbar .spc-library-search-clear,.spc-media-page .spc-content-toolbar.spc-library-toolbar .spc-library-search--server button[type=submit]{display:none!important}
@media(max-width:900px){.spc-media-page .spc-content-toolbar.spc-library-toolbar{flex-wrap:wrap!important;gap:8px!important;overflow:visible!important}.spc-media-page .spc-content-toolbar.spc-library-toolbar .spc-category-tabs{flex:1 1 100%!important}.spc-media-page .spc-content-toolbar.spc-library-toolbar .spc-library-search--live{flex:1 1 100%!important;width:100%!important;max-width:none!important}}

/* =========================================================
   V38 - THƯ VIỆN: ĐỒNG BỘ NHÓM + GIẢM KHOẢNG TRẮNG TRƯỚC GRID
   - Media-ID render toàn bộ nhóm từ DB ở code-behind; CSS chỉ lo trình bày.
   - Giảm khoảng cách toolbar -> danh sách khoảng 20px so với V37.
   - Ghi đè các rule Media legacy (:has/float/padding-top) để tránh chồng layout.
   ========================================================= */
@media (min-width:901px){
  .spc-media-page:has(.spc-library-search--live) #spcMediaTabs,
  .spc-media-page .spc-content-toolbar.spc-library-toolbar .spc-category-tabs{
    width:auto!important;
    flex:1 1 auto!important;
    min-width:0!important;
    margin:0!important;
  }
  .spc-media-page:has(.spc-library-search--live) .spc-library-search--live,
  .spc-media-page .spc-content-toolbar.spc-library-toolbar .spc-library-search--live{
    float:none!important;
    margin:0!important;
    width:250px!important;
    flex:0 0 250px!important;
  }
  .spc-media-page:has(.spc-library-search--live) .mt_content_ct_c,
  .spc-media-page .spc-library-toolbar + .mt_content_ct_c{
    clear:both!important;
    padding-top:0!important;
    margin-top:0!important;
  }
}
.spc-media-page .spc-content-toolbar.spc-library-toolbar{
  margin-bottom:6px!important;
}
.spc-media-page .spc-library-toolbar + .mt_content_ct_c{
  padding-top:0!important;
  margin-top:0!important;
}


/* =============================================================
   PRODUCT BASE 03 FIX02 - 2026-10-08
   Fix goc: khong an .LV_Frame san pham bang .spc-active-group.
   Trang cha hien tat ca group DB; trang ID server chi bind group dang chon.
   Toolbar giu nguyen chieu cao; chi giam pill ben trong.
   ============================================================= */
.spc-products-page .LV_Frame{
  display:block!important;
}
.spc-products-page .spc-product-toolbar .spc-category-tab{
  height:30px!important;
  min-height:30px!important;
  padding:3px 11px!important;
  line-height:22px!important;
  box-sizing:border-box!important;
}
.spc-products-page .sp_List_cl{
  position:relative!important;
}
.spc-products-page .sp_List_cl:after{
  content:"";position:absolute;left:50%;right:50%;bottom:0;height:2px;
  background:#0878b8;transition:left .18s ease,right .18s ease;pointer-events:none;
}
.spc-products-page .sp_List_cl:hover:after{left:10%;right:10%}
.spc-products-page .sp_List_cl.spc-progressive-hidden{display:none!important}
/* =============================================================
   PRODUCT GRID SPACING STANDARD - 2026-10-08 / FIX03
   MỤC ĐÍCH:
   - Một nơi duy nhất quản lý khoảng cách card Sản phẩm.
   - Áp dụng giống nhau khi: Tất cả / từng nhóm / tìm kiếm / mở thêm khi cuộn.
   - Không dùng margin trên từng card; grid gap chịu trách nhiệm hoàn toàn.
   - Khi trang Tất cả render nhiều .LV_Frame từ DB, tạo khoảng cách 16px giữa các group.
   RESPONSIVE:
   - Desktop 4 cột; tablet 3; mobile 2. Gap giảm nhẹ trên mobile nhỏ.
   ============================================================= */
.spc-products-page .LV_Frame{
  margin:0 0 16px!important;
  padding:0!important;
}
.spc-products-page .LV_Frame:last-child{margin-bottom:0!important}
.spc-products-page .sp_List{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  column-gap:16px!important;
  row-gap:16px!important;
  width:100%!important;
  overflow:visible!important;
}
.spc-products-page .sp_List_cl{margin:0!important}
@media(max-width:980px){
  .spc-products-page .sp_List{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:620px){
  .spc-products-page .LV_Frame{margin-bottom:12px!important}
  .spc-products-page .sp_List{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    column-gap:10px!important;
    row-gap:12px!important;
  }
}

/* ============================================================================
   SPC FINAL 2026-10-09 - MEDIA LEGACY RESET
   Layout spacing belongs to SPCContent2026.css only. This block only neutralizes
   legacy Media margins so Default.css/Responsive.css cannot reintroduce top gap.
   ============================================================================ */
.spc-media-page .LV_Frame,
.spc-media-page .tt_List_video,
.spc-media-page .tt_List_video_cl{margin-top:0!important;padding-top:0!important}

/* ========================================================================== 
   09/10/2026 FINAL-01 - LIBRARY / MEDIA CARD HOVER
   MỤC ĐÍCH:
   - Đồng bộ hover card Thư viện/Media với Tin tức + Bác sĩ cây trồng.
   - Không translate/scale card để tránh rung layout khi rê chuột.
   - Hover chỉ nhấn border + shadow và hiện line accent ở đáy bên TRONG card.
   - Dùng chung cho toàn bộ nhóm Media hiện tại; menu/category mới dùng cùng
     .spc-media-page sẽ tự kế thừa, không cần tạo CSS riêng.
   RESPONSIVE:
   - Hiệu ứng hover chỉ chạy trên thiết bị có chuột chính xác.
   - Touch/mobile giữ card tĩnh, tránh sticky-hover và không ảnh hưởng scroll.
   ========================================================================== */
.spc-media-page .tt_List_video_cl{
  position:relative!important;
  transform:none!important;
  outline:none!important;
  transition:border-color .18s ease,box-shadow .18s ease!important;
}
.spc-media-page .tt_List_video_cl:after{
  content:""!important;
  pointer-events:none!important;
  position:absolute!important;
  z-index:8!important;
  left:16px!important;
  right:16px!important;
  bottom:5px!important;
  height:2px!important;
  background:transparent!important;
  border:0!important;
  border-radius:999px!important;
  opacity:0!important;
  transition:opacity .18s ease!important;
}
@media(hover:hover) and (pointer:fine){
  .spc-media-page .tt_List_video_cl:hover{
    transform:none!important;
    border-color:#7cc5df!important;
    box-shadow:inset 0 -5px 0 #00a3cf!important;
  }
  .spc-media-page .tt_List_video_cl:hover:after{opacity:1!important}
}

/* PDP gallery (2026-10-12): thumbnail hover translateY(-3px) can bi cat vien tren do scroll container padding-top 2px.
   Tang padding-top len 9px tai QUY TAC GOC .spc-pdp-thumbs phia tren (khong them CSS override).
   Chi ap dung gallery chi tiet san pham; EN/LA dung chung stylesheet nay. Khong can JS. */
/* PDP gallery: tooltip native lấy từ Caption; chỉ video có play. Hover nhẹ và hỗ trợ bàn phím. */
.spc-pdp-page .spc-pdp-thumb[data-type="1"] .spc-pdp-play{display:none!important}
.spc-pdp-page .spc-pdp-thumb{transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
@media(hover:hover) and (pointer:fine){.spc-pdp-page .spc-pdp-thumb:hover{transform:translateY(-3px);box-shadow:0 7px 16px rgba(0,111,174,.17)}}
.spc-pdp-page .spc-pdp-thumb:focus-visible{outline:2px solid #0078bd;outline-offset:2px}
@media(prefers-reduced-motion:reduce){.spc-pdp-page .spc-pdp-thumb{transition:none}.spc-pdp-page .spc-pdp-thumb:hover{transform:none}}

/* SPC Product Detail - layout ổn định, 2026-10-10.
   Nội dung phải căn đầu, chiều cao theo DB; không tạo scrollbar lồng nhau.
   Phạm vi chỉ .spc-pdp-page để không ảnh hưởng menu và trang khác. */
.spc-pdp-page .spc-pdp-hero{align-items:start!important}
.spc-pdp-page .spc-pdp-summary{justify-content:flex-start!important;align-self:start!important;height:auto!important;min-height:0!important;min-width:0!important;overflow-wrap:anywhere!important}
.spc-pdp-page .spc-pdp-short{height:auto!important;max-height:none!important;overflow:visible!important;min-width:0!important}
.spc-pdp-page .spc-pdp-short img,.spc-pdp-page .spc-pdp-short video{max-width:100%!important;height:auto!important}
.spc-pdp-page .spc-pdp-short table{display:block;max-width:100%;overflow-x:auto}
.spc-pdp-page .spc-pdp-section-nav{scroll-margin-top:90px}
.spc-pdp-page #spcPdpOverview,.spc-pdp-page #spcPdpInfo,.spc-pdp-page #spcPdpRelated{scroll-margin-top:100px}
@media(max-width:980px){.spc-pdp-page .spc-pdp-hero{grid-template-columns:minmax(0,1fr)!important}.spc-pdp-page .spc-pdp-section-nav{overflow-x:auto!important;overflow-y:hidden!important;white-space:nowrap;scrollbar-width:none}.spc-pdp-page .spc-pdp-section-nav a{flex-shrink:0}}
@media(max-width:600px){.spc-pdp-page .spc-pdp-summary{padding:12px 4px!important}.spc-pdp-page .spc-pdp-section-nav{padding:0 6px!important}}


/* SPC Product Detail - navigation, related cards, FCKeditor compatibility.
   Scoped to product detail; preserve editor-authored table widths/alignment. */
.spc-pdp-page .spc-pdp-section-nav a.is-active{color:#0078b8!important}
.spc-pdp-page .spc-pdp-section-nav a.is-active::after{transform:scaleX(1)!important}
.spc-pdp-page .spc-pdp-section-nav a:focus-visible{outline:2px solid #0078b8;outline-offset:-3px}
.spc-pdp-page .spc-pdp-related-card{display:flex;flex-direction:column;min-width:0;padding-bottom:14px}
.spc-pdp-page .spc-pdp-related-image{flex-shrink:0}
.spc-pdp-page .spc-pdp-related-card strong{font-size:14px;line-height:1.45;min-height:2.9em;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
.spc-pdp-page .spc-pdp-related-card>span{margin-top:auto;padding-top:10px}
.spc-pdp-page .spc-pdp-richtext{min-width:0;max-width:100%;overflow-wrap:break-word}
.spc-pdp-page .spc-pdp-richtext :is(p,ul,ol,blockquote){margin-top:0;margin-bottom:1em}
.spc-pdp-page .spc-pdp-richtext :is(h1,h2,h3,h4,h5,h6){line-height:1.35;max-width:100%;overflow-wrap:break-word}
.spc-pdp-page .spc-pdp-richtext :is(img,video,iframe){max-width:100%;box-sizing:border-box}
.spc-pdp-page .spc-pdp-richtext img{object-fit:contain}
.spc-pdp-page .spc-pdp-richtext .spc-pdp-table-scroll{max-width:100%;overflow-x:auto;overflow-y:hidden;margin:14px 0;overscroll-behavior-inline:contain}
.spc-pdp-page .spc-pdp-richtext .spc-pdp-table-scroll:focus-visible{outline:2px solid #0078b8;outline-offset:2px}
.spc-pdp-page .spc-pdp-richtext .spc-pdp-table-scroll table{display:table!important;max-width:none!important;overflow:visible!important;border-collapse:separate;}
.spc-pdp-page .spc-pdp-richtext .spc-pdp-table-scroll :is(td,th){overflow-wrap:normal;word-break:normal}
@media(max-width:600px){.spc-pdp-page .spc-pdp-related-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.spc-pdp-page .spc-pdp-related-image{height:150px;padding:10px}.spc-pdp-page .spc-pdp-related-card strong{font-size:12px;margin:10px 10px 0}.spc-pdp-page .spc-pdp-related-card>span{margin-left:10px}}
@media(max-width:370px){.spc-pdp-page .spc-pdp-related-grid{grid-template-columns:minmax(0,1fr)}}

/* SPC PDP related card base (10/10/2026): one full-width 3D foot, with a visible white gap.
   Only the related product cards use this rule. No changes to CMS or product data.
   The inset white spacer separates the name area from the rounded foot. */
.spc-pdp-page .spc-pdp-related-card{position:relative;isolation:isolate;padding-bottom:27px!important;transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease!important}
.spc-pdp-page .spc-pdp-related-card strong{width:calc(100% - 24px);margin:13px 12px 8px!important;text-align:center;min-height:2.9em;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* Bottom 3D foot: full card width; white breathing room above the base.
   Clip-path lifts both ends by ~4px while keeping the center straight; no extra overlay or JS. */
.spc-pdp-page .spc-pdp-related-card::before{content:"";position:absolute;pointer-events:none;left:0;right:0;bottom:0;height:11px;border-radius:0 0 15px 15px;clip-path:polygon(0 0,0.5% 12%,1% 27%,2% 42%,3% 52%,4.5% 58%,6% 60%,94% 60%,95.5% 58%,97% 52%,98% 42%,99% 27%,99.5% 12%,100% 0,100% 100%,0 100%);background:linear-gradient(to bottom,#c8f2ff 0%,#51c1e8 40%,#0078b7 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.8),0 -2px 7px rgba(0,119,181,.09);opacity:0;transform:translateY(3px);transition:opacity .25s ease,transform .25s ease}
.spc-pdp-page .spc-pdp-related-card::after{content:none!important}
@media(hover:hover){.spc-pdp-page .spc-pdp-related-card:hover{transform:translateY(-3px);border-color:#80c9ed;box-shadow:0 9px 20px rgba(0,92,150,.13)}.spc-pdp-page .spc-pdp-related-card:hover::before{opacity:1;transform:translateY(0)}}
.spc-pdp-page .spc-pdp-related-card:focus-visible{outline:2px solid #0078b8;outline-offset:3px}
.spc-pdp-page .spc-pdp-related-card:focus-visible::before{opacity:1;transform:translateY(0)}
@media(hover:none){.spc-pdp-page .spc-pdp-related-card::before{opacity:.65;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.spc-pdp-page .spc-pdp-related-card,.spc-pdp-page .spc-pdp-related-card::before{transition:none!important}}


/* SPC product cards – corrected layout, 10/10/2026.
   Keep category listing at its original compact height. Only related cards grow.
   One shared 3D curved-foot hover; no changes to CMS, data or Web.config. */
.spc-products-page .sp_List_cl,
.spc-product-special .sp_List_cl{
  position:relative!important;isolation:isolate;
  padding-bottom:0!important;box-sizing:border-box!important;
  transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease!important;
}
.spc-products-page .sp_List_cl_td,
.spc-product-special .sp_List_cl_td{padding-bottom:10px!important}
.spc-products-page .sp_List_cl::before,
.spc-product-special .sp_List_cl::before{
  content:"";position:absolute;pointer-events:none;z-index:3;
  left:0;right:0;bottom:0;height:11px;border-radius:0 0 14px 14px;
  clip-path:polygon(0 0,.5% 12%,1% 27%,2% 42%,3% 52%,4.5% 58%,6% 60%,94% 60%,95.5% 58%,97% 52%,98% 42%,99% 27%,99.5% 12%,100% 0,100% 100%,0 100%);
  background:linear-gradient(to bottom,#c8f2ff 0%,#51c1e8 40%,#0078b7 100%);
  opacity:0;transform:translateY(3px);
  transition:opacity .25s ease,transform .25s ease;
}
.spc-products-page .sp_List_cl::after,
.spc-product-special .sp_List_cl::after{content:none!important}
@media(hover:hover) and (pointer:fine){
  .spc-products-page .sp_List_cl:hover,
  .spc-product-special .sp_List_cl:hover{
    transform:translateY(-3px);border-color:#80c9ed!important;
    box-shadow:0 9px 20px rgba(0,92,150,.13)!important;
  }
  .spc-products-page .sp_List_cl:hover::before,
  .spc-product-special .sp_List_cl:hover::before{opacity:1;transform:translateY(0)}
}
.spc-products-page .sp_List_cl:focus-within::before,
.spc-product-special .sp_List_cl:focus-within::before{opacity:1;transform:translateY(0)}
@media(hover:none){
  .spc-products-page .sp_List_cl::before,
  .spc-product-special .sp_List_cl::before{opacity:.65;transform:translateY(0)}
}
/* Related items: modest enlargement, fixed image and title slots for equal cards. */
.spc-pdp-page .spc-pdp-related-card{
  height:316px!important;min-height:0!important;box-sizing:border-box!important;
  padding-bottom:24px!important;
}
.spc-pdp-page .spc-pdp-related-image{
  height:222px!important;flex:0 0 222px!important;
  padding:12px!important;box-sizing:border-box!important;
}
.spc-pdp-page .spc-pdp-related-image img{
  width:100%!important;height:100%!important;object-fit:contain!important;
}
.spc-pdp-page .spc-pdp-related-card strong{
  flex:0 0 auto!important;min-height:2.9em!important;max-height:2.9em!important;
  margin:12px 12px 0!important;align-self:center;
  text-align:center!important;
}
@media(max-width:980px){
  .spc-pdp-page .spc-pdp-related-card{height:286px!important}
  .spc-pdp-page .spc-pdp-related-image{height:195px!important;flex-basis:195px!important}
}
@media(max-width:600px){
  .spc-pdp-page .spc-pdp-related-card{height:245px!important;padding-bottom:19px!important}
  .spc-pdp-page .spc-pdp-related-image{height:160px!important;flex-basis:160px!important;padding:9px!important}
  .spc-pdp-page .spc-pdp-related-card strong{margin:10px 8px 0!important}
}
@media(prefers-reduced-motion:reduce){
  .spc-products-page .sp_List_cl,.spc-product-special .sp_List_cl,
  .spc-products-page .sp_List_cl::before,.spc-product-special .sp_List_cl::before{transition:none!important}
}

/* SPC PDP RELATED CARD ALIGNMENT - 2026-10-10
   Match approved compact product listing cards; preserve existing hover foot. */
.spc-pdp-page .spc-pdp-related-card{
  height:302px!important;min-height:0!important;
  padding:0!important;box-sizing:border-box!important;
  display:flex!important;flex-direction:column!important;
  background:#fff!important;
}
.spc-pdp-page .spc-pdp-related-image{
  height:248px!important;flex:0 0 248px!important;
  padding:14px 16px 8px!important;box-sizing:border-box!important;
  background:#fff!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
}
.spc-pdp-page .spc-pdp-related-image img{
  display:block!important;width:100%!important;height:100%!important;
  max-width:100%!important;max-height:100%!important;object-fit:contain!important;
}
.spc-pdp-page .spc-pdp-related-card strong{
  box-sizing:border-box!important;flex:0 0 54px!important;
  width:100%!important;min-height:54px!important;max-height:54px!important;
  margin:0!important;padding:8px 12px 10px!important;
  display:-webkit-box!important;-webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;line-clamp:2!important;
  overflow:hidden!important;text-overflow:ellipsis!important;
  text-align:center!important;align-content:center!important;
  font-size:13px!important;line-height:1.35!important;
  color:#005b91!important;
}
.spc-pdp-page .spc-pdp-related-card:hover strong,
.spc-pdp-page .spc-pdp-related-card:focus-visible strong{color:#ff7900!important}
.spc-pdp-page .spc-pdp-related-card>span{display:none!important}
@media(max-width:600px){
  .spc-pdp-page .spc-pdp-related-card{height:246px!important}
  .spc-pdp-page .spc-pdp-related-image{height:192px!important;flex-basis:192px!important;padding:10px 10px 6px!important}
  .spc-pdp-page .spc-pdp-related-card strong{flex-basis:54px!important;min-height:54px!important;max-height:54px!important;margin:0!important;padding:8px!important;font-size:12px!important}
}

/* SPC related cards: +10px height to match approved product listing (2026-10-10).
   Reserve the extra space below the title; do not resize images or listing cards. */
.spc-pdp-page .spc-pdp-related-card{height:312px!important;padding-bottom:10px!important}
@media(max-width:600px){
  .spc-pdp-page .spc-pdp-related-card{height:256px!important;padding-bottom:10px!important}
}

/* SPC PDP thumbnail scrollbar - 2026-10-12 revision 2.
   Keep only the native horizontal scrollbar; no navigation arrows or wrapper.
   Used on product-detail [data-pdp-gallery] thumbnail strip, all viewports.
   Autoplay (when enabled) remains in SPCMenu2026.js; users can scroll manually. */
.spc-pdp-gallery .spc-pdp-thumbs{min-width:0;scrollbar-width:thin;scrollbar-color:#9bcddd #eef7fb;scroll-behavior:smooth}
.spc-pdp-gallery .spc-pdp-thumbs::-webkit-scrollbar{height:5px}
.spc-pdp-gallery .spc-pdp-thumbs::-webkit-scrollbar-track{background:#eef7fb;border-radius:10px}
.spc-pdp-gallery .spc-pdp-thumbs::-webkit-scrollbar-thumb{background:#9bcddd;border-radius:10px}
@media(prefers-reduced-motion:reduce){.spc-pdp-gallery .spc-pdp-thumbs{scroll-behavior:auto}}

/* Gallery 2026-10-12: nút tiếp tục chỉ xuất hiện khi khách tạm dừng; không thêm mũi tên cuộn. */
.spc-pdp-resume{display:block;margin:10px 0 8px auto;border:1px solid #c5e1ed;background:#eef8fc;color:#0074a5;border-radius:18px;padding:6px 13px;font-size:12px;cursor:pointer}
.spc-pdp-resume[hidden]{display:none}
.spc-pdp-video-preview{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-height:220px;background:#f1f7fa;border-radius:12px;overflow:hidden}
.spc-pdp-video-preview img{max-width:100%;max-height:100%;object-fit:contain}
.spc-pdp-video-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);border:0;border-radius:24px;background:#0077ae;color:white;padding:12px 18px;cursor:pointer;white-space:nowrap}

/* Video gallery poster – 12/10/2026: ảnh thực + nút Play, dùng chung mobile/desktop. */
.spc-pdp-page .spc-pdp-video-preview{height:100%;min-height:0;background:#eaf3f8}
.spc-pdp-page .spc-pdp-video-preview>img{width:100%;height:100%;max-height:none;object-fit:contain}
.spc-pdp-page .spc-pdp-video-preview:has(>img){background:#eaf3f8}
.spc-pdp-page .spc-pdp-video-play{background:rgba(0,111,174,.94);box-shadow:0 8px 25px rgba(0,38,70,.22);font-weight:700}
.spc-pdp-page .spc-pdp-thumb[data-type="2"] img,.spc-pdp-page .spc-pdp-thumb[data-type="3"] img{object-fit:cover}
.spc-pdp-page .spc-pdp-thumb[data-type="2"] .spc-pdp-play,.spc-pdp-page .spc-pdp-thumb[data-type="3"] .spc-pdp-play{inset:auto 50% 50% auto;transform:translate(50%,50%);background:rgba(0,111,174,.9);width:26px;height:26px;border-radius:50%;font-size:13px}
@media(max-width:600px){.spc-pdp-page .spc-pdp-video-play{padding:10px 15px;font-size:13px}}


/* V17 | Product detail quick facts and reveal – one owned module.
   Quick facts are only visible if labelled fields are extracted from ProLong.
   Avoid re-declaring existing PDP card/hero styles elsewhere. */
.spc-pdp-page .spc-pdp-facts[hidden]{display:none!important}
.spc-pdp-page .spc-pdp-facts{width:100%;margin:20px 0 0;padding:17px 18px;border:1px solid #cce7f1;border-radius:16px;background:linear-gradient(135deg,#f0faff 0%,#f8fdfd 100%)}
.spc-pdp-page .spc-pdp-facts-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px;color:#07557d;font-size:15px;font-weight:700}
.spc-pdp-page .spc-pdp-facts-heading span{color:#6a8b9a;font-size:11px;font-weight:400}
.spc-pdp-page .spc-pdp-facts-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0}
.spc-pdp-page .spc-pdp-fact{min-width:0;padding:10px 11px;border:1px solid #e1eff5;border-radius:11px;background:#fff}
.spc-pdp-page .spc-pdp-fact dt{margin:0 0 5px;color:#638397;font-size:11px;font-weight:600}
.spc-pdp-page .spc-pdp-fact dd{white-space:pre-line;margin:0;color:#104965;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.spc-pdp-page .spc-pdp-quicklinks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:100%;margin-top:16px}
.spc-pdp-page .spc-pdp-quicklinks a{display:grid;grid-template-columns:28px minmax(0,1fr);grid-template-rows:auto auto;column-gap:8px;align-items:center;padding:11px;border:1px solid #d5eaf3;border-radius:13px;background:#f5fbfe;text-decoration:none;color:#07547b;transition:background .2s,border-color .2s,transform .2s}
.spc-pdp-page .spc-pdp-quicklinks a:hover,.spc-pdp-page .spc-pdp-quicklinks a:focus-visible{background:#e6f6fc;border-color:#60b8d7;transform:translateY(-2px)}
.spc-pdp-page .spc-pdp-quicklinks a>span{grid-row:1/3;font-size:22px;color:#0098c9}
.spc-pdp-page .spc-pdp-quicklinks strong{font-size:12px;line-height:1.35}
.spc-pdp-page .spc-pdp-quicklinks small{font-size:10px;color:#66869a;line-height:1.4}
@media(max-width:600px){.spc-pdp-page .spc-pdp-facts-grid{grid-template-columns:1fr}.spc-pdp-page .spc-pdp-quicklinks{grid-template-columns:1fr}}
@media(prefers-reduced-motion:no-preference){
 .spc-pdp-page .spc-pdp-reveal-pending{opacity:0;transform:translateY(58px) scale(.985);filter:blur(3px);transition:opacity .95s ease,transform 1.05s cubic-bezier(.16,1,.3,1),filter .95s ease}
 .spc-pdp-page .spc-pdp-reveal-pending.spc-pdp-revealed{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}
}

/* V18: stagger product cards subtly without hiding reduced-motion content. */
@media(prefers-reduced-motion:no-preference){.spc-pdp-page .spc-pdp-related-card.spc-pdp-reveal-pending{transition-delay:.08s}}


/* SPC SEARCH CARD SYSTEM V8 - 2026-11-03
   Scope: VN search results only; no DB or route changes.
   Base card rules below; the ONE hover rule is in V8 section at the end. */
.spc-search-page .spc-search-products,
.spc-search-page .spc-search-text-results,
.spc-search-page .spc-search-media-results,
.spc-search-page .spc-search-faq-results{gap:18px!important;align-items:stretch!important;margin:0 0 22px!important}
.spc-search-page .spc-search-products>.search-product-card,
.spc-search-page .spc-search-text-results>.tt_List_cl,
.spc-search-page .spc-search-media-results>.tt_List_video_cl,
.spc-search-page .spc-search-faq-results>.tt_List_hd_cl{
 box-sizing:border-box!important;position:relative!important;display:flex!important;flex-direction:column!important;
 min-width:0!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;
 overflow:hidden!important;background:#fff!important;border:1px solid #d8e7ef!important;border-radius:13px!important;
 box-shadow:0 5px 18px rgba(8,74,111,.065)!important;
 transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease!important;
}
/* Reset inherited fixed heights, padding and dotted separators. */
.spc-search-page .spc-search-text-results .tt_List_cl_ct,
.spc-search-page .spc-search-media-results .tt_List_video_cl_ct,
.spc-search-page .spc-search-faq-results .tt_List_hd_cl_ct{
 box-sizing:border-box!important;display:flex!important;flex-direction:column!important;flex:1 1 auto!important;
 min-width:0!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;
 margin:0!important;border:0!important;border-bottom:0!important;border-radius:0!important;
 box-shadow:none!important;background:#fff!important;overflow:visible!important;
}
.spc-search-page .spc-search-text-results .tt_List_cl_ct{padding:15px 16px 20px!important}
.spc-search-page .spc-search-text-results .tt_List_cl_name,
.spc-search-page .spc-search-media-results .tt_List_video_cl_name,
.spc-search-page .spc-search-faq-results .hoidap_title{
 box-sizing:border-box!important;position:static!important;float:none!important;width:100%!important;
 height:auto!important;min-height:0!important;max-height:none!important;margin:0!important;padding:0!important;
 border:0!important;text-align:left!important;overflow:hidden!important;
}
/* Clamp complete visual lines; ellipsis is painted by the browser, not by fixed-height clipping. */
.spc-search-page .spc-search-text-results .tt_List_cl_name a,
.spc-search-page .spc-search-media-results .tt_List_video_cl_name a,
.spc-search-page .spc-search-faq-results .hoidap_title a,
.spc-search-page .search-product-card .sp_List_cl_td a{
 display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:3!important;
 line-clamp:3!important;overflow:hidden!important;overflow-wrap:anywhere!important;
 height:auto!important;max-height:none!important;white-space:normal!important;
 font-family:Arial,Roboto,"Segoe UI",sans-serif!important;font-weight:600!important;font-size:14px!important;
 line-height:1.5!important;color:#075b91!important;text-decoration:none!important;
}
.spc-search-page .spc-search-text-results .tt_List_cl_short{
 box-sizing:border-box!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;
 -webkit-line-clamp:3!important;line-clamp:3!important;overflow:hidden!important;
 flex:none!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;
 margin:12px 0 0!important;padding:0!important;border:0!important;
 color:#4e6474!important;font:400 13px/1.65 Arial,Roboto,"Segoe UI",sans-serif!important;
 text-align:left!important;overflow-wrap:anywhere!important;
}
.spc-search-page .spc-search-text-results .tt_List_cl_short span,
.spc-search-page .spc-search-text-results .tt_List_cl_short p{
 display:inline!important;height:auto!important;min-height:0!important;max-height:none!important;
 margin:0!important;padding:0!important;line-height:inherit!important;overflow:visible!important;
}
/* News/doctor thumbnails: one clean image surface, no grey background under small images. */
.spc-search-page .spc-search-text-results .spc-search-doctor-image,
.spc-search-page .spc-search-text-results .spc-search-doctor-image a{
 display:block!important;width:100%!important;margin:0 0 12px!important;padding:0!important;
 background:#fff!important;border:0!important;overflow:hidden!important;
}
.spc-search-page .spc-search-text-results .spc-search-doctor-image img{
 display:block!important;width:100%!important;height:170px!important;object-fit:contain!important;background:#fff!important;
}
/* Video: single 16:9 image surface and consistent 3-line title. */
.spc-search-page .spc-search-media-results .tt_List_video_cl_img,
.spc-search-page .spc-search-media-results .tt_List_video_cl_img a,
.spc-search-page .spc-search-media-results .tt_List_video_cl_img figure{
 box-sizing:border-box!important;display:block!important;width:100%!important;margin:0!important;padding:0!important;
 border:0!important;border-radius:0!important;background:#fff!important;overflow:hidden!important;
}
.spc-search-page .spc-search-media-results .tt_List_video_cl_img figure{aspect-ratio:16/9!important;height:auto!important}
.spc-search-page .spc-search-media-results .tt_List_video_cl_img img{
 display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important;
 background:#fff!important;transition:transform .22s ease!important;
}
.spc-search-page .spc-search-media-results .tt_List_video_cl:hover img{transform:scale(1.025)!important}
.spc-search-page .spc-search-media-results .tt_List_video_cl_name{padding:13px 15px 20px!important;min-height:78px!important}
/* FAQ: detail link is a real button, never floats outside the card. */
.spc-search-page .spc-search-faq-results .tt_List_hd_cl_ct{padding:0 15px 17px!important}
.spc-search-page .spc-search-faq-results .spc-search-faq-image{margin:0 -15px 14px!important;border-radius:0!important}
.spc-search-page .spc-search-faq-results .hoidap_title{margin-bottom:8px!important}
.spc-search-page .spc-search-faq-results .chi_tiet{
 position:static!important;float:none!important;display:flex!important;justify-content:flex-end!important;
 width:100%!important;height:auto!important;min-height:0!important;margin:14px 0 0!important;
 padding:0!important;border:0!important;overflow:visible!important;
}
.spc-search-page .spc-search-faq-results .chi_tiet a{
 box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
 float:none!important;position:static!important;min-height:34px!important;min-width:96px!important;
 padding:7px 14px!important;border:1px solid #9ed2e9!important;border-radius:9px!important;
 background:#f1faff!important;color:#08669e!important;font:600 13px/1.3 Arial,sans-serif!important;
 text-decoration:none!important;white-space:nowrap!important;transition:background .18s ease,color .18s ease!important;
}
.spc-search-page .spc-search-faq-results .chi_tiet a:hover,
.spc-search-page .spc-search-faq-results .chi_tiet a:focus-visible{background:#087bb6!important;color:#fff!important;border-color:#087bb6!important}
.spc-search-page .spc-search-faq-results .chi_tiet a span{color:inherit!important;position:static!important;display:inline!important}
.spc-search-page .search-product-card .sp_List_cl_td{
 height:auto!important;min-height:58px!important;max-height:none!important;padding:12px 13px 18px!important;
 border:0!important;overflow:hidden!important;
}
@media(max-width:620px){
 .spc-search-page .spc-search-products,.spc-search-page .spc-search-text-results,
 .spc-search-page .spc-search-media-results,.spc-search-page .spc-search-faq-results{gap:12px!important}
 .spc-search-page .spc-search-text-results .tt_List_cl_ct{padding:13px 13px 18px!important}
}
@media(prefers-reduced-motion:reduce){
 .spc-search-page .search-product-card,.spc-search-page .tt_List_cl,
 .spc-search-page .tt_List_video_cl,.spc-search-page .tt_List_hd_cl{transition:none!important}
}

/* V9 | ONE owned hover module for all VN search result cards.
   Product hover is preserved from approved V8.
   Editorial/media/FAQ cards also use a real bottom border, because their
   inner white surfaces can conceal the product-style inset shadow.
   Update ONLY this module when changing search hover styling. */
.spc-search-page .search-product-card,
.spc-search-page .spc-search-text-results .tt_List_cl,
.spc-search-page .spc-search-media-results .tt_List_video_cl,
.spc-search-page .spc-search-faq-results .tt_List_hd_cl{
 position:relative!important;
 transition:transform .24s ease,box-shadow .24s ease,border-color .24s ease!important;
}
.spc-search-page .search-product-card:hover,
.spc-search-page .spc-search-text-results .tt_List_cl:hover,
.spc-search-page .spc-search-media-results .tt_List_video_cl:hover,
.spc-search-page .spc-search-faq-results .tt_List_hd_cl:hover{
 transform:translateY(-5px)!important;
 border-color:#78c9ea!important;
 box-shadow:inset 0 -4px 0 #00a0d5,0 16px 32px rgba(4,83,126,.17)!important;
}
/* Inner white layers hide inset shadows in non-product cards.
   A crisp real border is visible on the same rounded card edge. */
.spc-search-page .spc-search-text-results .tt_List_cl:hover,
.spc-search-page .spc-search-media-results .tt_List_video_cl:hover,
.spc-search-page .spc-search-faq-results .tt_List_hd_cl:hover{
 border-bottom:4px solid #00a0d5!important;
}
/* FAQ action uses the same compact raised-button treatment as SPC action cards. */
.spc-search-page .spc-search-faq-results .chi_tiet{margin-top:auto!important;padding-top:16px!important}
.spc-search-page .spc-search-faq-results .chi_tiet a{
 min-height:38px!important;min-width:104px!important;border-radius:9px!important;
 background:#f1faff!important;box-shadow:0 3px 0 #d1e7f3!important;
 transition:transform .2s ease,box-shadow .2s ease,background .2s ease!important;
}
.spc-search-page .spc-search-faq-results .chi_tiet a:hover,
.spc-search-page .spc-search-faq-results .chi_tiet a:focus-visible{
 transform:translateY(-2px)!important;box-shadow:0 5px 0 #0870a4!important;
}
/* V6 | Three complete visual lines; pretty wrapping avoids orphan words.
   The server preview already ends at a word boundary. */
.spc-search-page .spc-search-text-results .tt_List_cl_short{
 display:-webkit-box!important;-webkit-box-orient:vertical!important;
 -webkit-line-clamp:3!important;line-clamp:3!important;
 overflow:hidden!important;max-height:none!important;
 word-break:normal!important;overflow-wrap:normal!important;
 text-wrap:pretty!important;hyphens:none!important;
}
.spc-search-page .spc-search-text-results .tt_List_cl_short span{
 word-break:normal!important;overflow-wrap:normal!important;
 text-wrap:pretty!important;hyphens:none!important;
}
@media(prefers-reduced-motion:reduce){
 .spc-search-page .search-product-card:hover,
 .spc-search-page .tt_List_cl:hover,
 .spc-search-page .tt_List_video_cl:hover,
 .spc-search-page .tt_List_hd_cl:hover{transform:none!important}
}
/* Typography: Vietnamese diacritics must not appear visually fragmented. */
.spc-unit-eyebrow,.spc-footer-network-title,.spc-doctor-finder-eyebrow,
.spc-doctor-quick-label,.spc-faq-page .spc-faq-aside-kicker{
  font-family:Arial,Roboto,"Segoe UI",sans-serif!important;
  font-kerning:normal!important;letter-spacing:.045em!important;
  text-transform:uppercase;line-height:1.6!important;
}

/* SPC Stage 2.5: one scoped rule set in the existing slideshow control. */
#jssor_1 .spc-slide-video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#000;z-index:3}
#jssor_1 .spc-slide-caption{position:absolute;left:5%;bottom:8%;z-index:2;color:#fff;text-shadow:0 2px 8px rgba(0,0,0,.7);pointer-events:none;max-width:80%}
#jssor_1 .spc-slide-caption strong,#jssor_1 .spc-slide-caption span{display:block;font-size:clamp(12px,2.4vw,38px)}
#jssor_1 .spc-slide-caption span{font-size:clamp(10px,1.4vw,24px)}
#jssor_1 .spc-slide-caption strong:empty,#jssor_1 .spc-slide-caption span:empty{display:none}

/* SPC Stage 2.9.4: staggered text reveal on Jssor slide park.
   CSS stays in the existing consolidated theme stylesheet. */
#jssor_1 [data-p] .spc-slide-caption strong,
#jssor_1 [data-p] .spc-slide-caption span {opacity:0;transform:translate3d(0,22px,0);}
#jssor_1 [data-p].spc-caption-visible .spc-slide-caption strong {
  animation:spcSlideTitleReveal .85s .35s ease-out both;
}
#jssor_1 [data-p].spc-caption-visible .spc-slide-caption span {
  animation:spcSlideSloganReveal .95s 1.1s ease-out both;
}
@keyframes spcSlideTitleReveal {from{opacity:0;transform:translate3d(0,22px,0)}to{opacity:1;transform:translate3d(0,0,0)}}
@keyframes spcSlideSloganReveal {from{opacity:0;transform:translate3d(0,14px,0)}to{opacity:1;transform:translate3d(0,0,0)}}
@media (prefers-reduced-motion:reduce) {
 #jssor_1 [data-p] .spc-slide-caption strong,
 #jssor_1 [data-p] .spc-slide-caption span {opacity:1;transform:none;animation:none!important;}
}


/* SPC slideshow refinement 2026-11-16: native media controls and editable captions. */
#jssor_1 .spc-slide-video{z-index:8!important;pointer-events:auto!important;touch-action:manipulation}
#jssor_1 .spc-slide-caption{z-index:9;bottom:7%;padding:18px 25px 20px;border-radius:12px;background:linear-gradient(90deg,rgba(0,24,41,.72),rgba(0,24,41,.12));max-width:72%;pointer-events:none}
#jssor_1 .spc-slide-caption strong{font-weight:800;line-height:1.22;margin-bottom:14px}
#jssor_1 .spc-slide-caption span{line-height:1.5}
#jssor_1 .spc-slide-caption[data-spc-style^="center"]{left:50%;transform:translateX(-50%);text-align:center;background:linear-gradient(90deg,rgba(0,24,41,.12),rgba(0,24,41,.7),rgba(0,24,41,.12))}
#jssor_1 .spc-slide-caption[data-spc-style^="right"]{left:auto;right:5%;text-align:right;background:linear-gradient(270deg,rgba(0,24,41,.72),rgba(0,24,41,.12))}
#jssor_1 .spc-slide-caption[data-spc-style*="|yellow|"] strong{color:#ffe77a}
#jssor_1 .spc-slide-caption[data-spc-style*="|cyan|"] strong{color:#a7edff}
#jssor_1 .spc-slide-caption[data-spc-style*="|green|"] strong{color:#c6f9ad}
#jssor_1 .spc-slide-caption[data-spc-style$="|yellow"] span{color:#ffe77a}
#jssor_1 .spc-slide-caption[data-spc-style$="|cyan"] span{color:#a7edff}
#jssor_1 .spc-slide-caption[data-spc-style$="|green"] span{color:#c6f9ad}
#jssor_1 .spc-slide-link-button{display:inline-block;margin-top:18px;padding:10px 22px;border-radius:7px;background:#087db9;color:#fff!important;text-decoration:none!important;font-weight:700;font-size:17px;pointer-events:auto;box-shadow:0 5px 16px rgba(0,0,0,.2)}
#jssor_1 .spc-slide-link-button:hover{background:#005e91}
#jssor_1 [data-p].spc-caption-visible .spc-slide-link-button{animation:spcSlideTitleReveal .8s 1.75s ease-out both}
@media(max-width:700px){#jssor_1 .spc-slide-caption{padding:10px 14px;max-width:88%}#jssor_1 .spc-slide-caption strong{margin-bottom:6px}#jssor_1 .spc-slide-link-button{margin-top:8px;padding:6px 12px;font-size:12px}}

/* SPC slide: 6 positions; keep legacy left/center/right as bottom row. */
#jssor_1 .spc-slide-caption[data-spc-style^="top-left"],#jssor_1 .spc-slide-caption[data-spc-style^="top-center"],#jssor_1 .spc-slide-caption[data-spc-style^="top-right"]{top:7%;bottom:auto}
#jssor_1 .spc-slide-caption[data-spc-style^="top-left"]{left:5%;right:auto;text-align:left}
#jssor_1 .spc-slide-caption[data-spc-style^="top-center"]{left:50%;right:auto;transform:translateX(-50%);text-align:center;background:linear-gradient(90deg,rgba(0,24,41,.12),rgba(0,24,41,.7),rgba(0,24,41,.12))}
#jssor_1 .spc-slide-caption[data-spc-style^="top-right"]{left:auto;right:5%;text-align:right;background:linear-gradient(270deg,rgba(0,24,41,.72),rgba(0,24,41,.12))}

/* SPC YouTube slide: use same media layer as native MP4 */
#jssor_1 .spc-slide-youtube{position:absolute;inset:0;width:100%;height:100%;border:0;background:#000;z-index:3;pointer-events:auto}

/* SPC 2026-11-18: YouTube/playlist slide host and video navigation. */
#jssor_1 .spc-slide-youtube-host{position:absolute;inset:0;width:100%;height:100%;z-index:8;background:#111;pointer-events:auto}
#jssor_1 .spc-slide-youtube-host iframe{display:block;width:100%;height:100%;border:0;pointer-events:auto}
#jssor_1 .spc-slide-nav{position:absolute;top:50%;transform:translateY(-50%);z-index:1000;width:48px;height:64px;background:rgba(0,20,34,.4);color:#fff;border:0;border-radius:8px;cursor:pointer;font-size:30px;opacity:.65;transition:opacity .2s}
#jssor_1 .spc-slide-nav:hover,#jssor_1 .spc-slide-nav:focus{opacity:1;background:rgba(0,20,34,.75)}
#jssor_1 .spc-slide-nav-prev{left:14px}#jssor_1 .spc-slide-nav-next{right:14px}

/* ===========================================================================
   SPC SLIDE UI - 18/11/2026 | Chỉnh tại đây khi bảo trì giao diện slide
   1) NAV: ẩn mặc định, hiện giữa cạnh trái/phải khi hover/focus; không che video.
   2) CAPTION: nền radial gradient tan dần về cả bốn biên, không còn hộp đen.
   3) NỘI DUNG RỖNG: ASCX không render caption nếu không có title/slogan/button.
   Chỉ áp dụng #jssor_1, không ảnh hưởng video/tin tức ở nơi khác.
   =========================================================================== */
/* Nút nằm giữa chiều cao, nền sáng nhẹ; focus-visible hỗ trợ bàn phím. */
#jssor_1 .spc-slide-nav{
  top:50%;transform:translateY(-50%);width:42px;height:54px;
  border-radius:10px;background:rgba(12,38,58,.20);color:#fff;
  opacity:0;visibility:hidden;pointer-events:none;
  transition:opacity .22s ease,background-color .22s ease,visibility .22s ease;
  text-shadow:0 1px 5px rgba(0,0,0,.45);font-size:27px;
}
#jssor_1 .spc-slide-nav-prev{left:12px}
#jssor_1 .spc-slide-nav-next{right:12px}
#jssor_1:hover .spc-slide-nav,
#jssor_1:focus-within .spc-slide-nav{
  opacity:.76;visibility:visible;pointer-events:auto;
}
#jssor_1 .spc-slide-nav:hover,
#jssor_1 .spc-slide-nav:focus-visible{
  opacity:1;background:rgba(12,38,58,.46);
}
/* Nền tỏa mềm 4 phía: radial-gradient thay cho gradient hình chữ nhật. */
#jssor_1 .spc-slide-caption,
#jssor_1 .spc-slide-caption[data-spc-style^="center"],
#jssor_1 .spc-slide-caption[data-spc-style^="right"],
#jssor_1 .spc-slide-caption[data-spc-style^="top-center"],
#jssor_1 .spc-slide-caption[data-spc-style^="top-right"]{
  background:radial-gradient(ellipse 78% 78% at 50% 50%,
    rgba(8,31,49,.48) 0%,rgba(8,31,49,.28) 45%,
    rgba(8,31,49,.09) 75%,rgba(8,31,49,0) 100%);
  border-radius:0;box-shadow:none;
  padding:24px 34px 27px;
}
/* Phòng trường hợp dữ liệu trống sinh node rỗng ở một template khác. */
#jssor_1 .spc-slide-caption:empty{display:none!important}
@media(hover:none){
  /* Màn cảm ứng không có hover: luôn cho phép chuyển slide bằng nút nhẹ. */
  #jssor_1 .spc-slide-nav{opacity:.35;visibility:visible;pointer-events:auto}
  #jssor_1 .spc-slide-nav:active{opacity:.9}
}
@media(max-width:700px){
  #jssor_1 .spc-slide-nav{width:30px;height:42px;font-size:21px}
  #jssor_1 .spc-slide-nav-prev{left:5px}
  #jssor_1 .spc-slide-nav-next{right:5px}
  #jssor_1 .spc-slide-caption{padding:14px 20px 17px}
}

/* =============================================================
   SPC SLIDE NAV - FIX CAN GIUA CHIEU CAO - 18/11/2026
   Vi tri nut: ben ngoai #jssor_1 (Jssor scale theo transform),
   neo theo .spc-home-slider-viewport de top:50% la GIUA anh hien thi.
   Khong thay doi logic YouTube ID/Link/Playlist hay video upload.
   ============================================================= */
.spc-home-slider-viewport{position:relative!important}
.spc-home-slider-viewport > .spc-slide-nav{
  position:absolute!important;top:50%!important;bottom:auto!important;
  transform:translateY(-50%)!important;z-index:1200!important;
  width:42px;height:54px;border:0;border-radius:10px;
  background:rgba(12,38,58,.20);color:#fff;
  font-size:27px;line-height:1;cursor:pointer;
  opacity:0;visibility:hidden;pointer-events:none;
  text-shadow:0 1px 5px rgba(0,0,0,.45);
  transition:opacity .22s ease,background-color .22s ease,visibility .22s ease;
}
.spc-home-slider-viewport > .spc-slide-nav-prev{left:12px!important;right:auto!important}
.spc-home-slider-viewport > .spc-slide-nav-next{right:12px!important;left:auto!important}
.spc-home-slider-viewport:hover > .spc-slide-nav,
.spc-home-slider-viewport > .spc-slide-nav:focus-visible{
  opacity:.76;visibility:visible;pointer-events:auto;
}
.spc-home-slider-viewport > .spc-slide-nav:hover,
.spc-home-slider-viewport > .spc-slide-nav:focus-visible{
  opacity:1;background:rgba(12,38,58,.46);
}
@media(hover:none){
  .spc-home-slider-viewport > .spc-slide-nav{opacity:.35;visibility:visible;pointer-events:auto}
}
@media(max-width:700px){
  .spc-home-slider-viewport > .spc-slide-nav{width:30px;height:42px;font-size:21px}
  .spc-home-slider-viewport > .spc-slide-nav-prev{left:5px!important}
  .spc-home-slider-viewport > .spc-slide-nav-next{right:5px!important}
}

/* NAV FIX 18/11/2026: chi hover / focus-visible hien nut; click se blur.
   Khong su dung :focus-within tren viewport vi click giu focus lam nut khong an. */

/* SPC VIDEO WAIT COVER (2026-11-19): poster first, spinner until actual playback.
   One centralized stylesheet; pointer-events:none leaves video controls/navigation usable. */
/* SPC FIX 19/11: iframe YouTube va video HTML5 z-index:8;
   poster loading PHAI nam tren z-index:8 de khong bi nen den che.
   pointer-events:none giu nguyen click controls va nut dieu huong. */
#jssor_1 .spc-video-wait{position:absolute;inset:0;z-index:12;background-position:center;background-size:cover;background-repeat:no-repeat;pointer-events:none;display:flex;align-items:center;justify-content:center;opacity:1;transition:opacity .28s ease,visibility .28s ease;visibility:visible}
#jssor_1 .spc-video-wait::before{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(0,0,0,.27),transparent 45%)}
#jssor_1 .spc-video-wait-status{position:relative;display:flex;align-items:center;gap:12px;padding:11px 17px;border-radius:40px;background:rgba(0,24,45,.55);color:#fff;font:600 16px Arial,sans-serif;text-shadow:0 1px 2px #000}
#jssor_1 .spc-video-wait-spinner{width:19px;height:19px;border:3px solid rgba(255,255,255,.4);border-top-color:white;border-radius:50%;animation:spc-video-wait-spin 1s linear infinite}
@keyframes spc-video-wait-spin{to{transform:rotate(360deg)}}
#jssor_1 .spc-video-wait-hidden{opacity:0;visibility:hidden}
