/*
Theme Name: XSTT Restored
Description: Giao dien khoi phuc cho xosotructiep.click: do - vang xo so, cot noi dung + cot phai link tinh/thong ke, bang ket qua kieu cu (kqmb, colthreecity, firstlast).
Version: 1.0.1793189988
Text Domain: xstt-restored
*/

:root {
	--nav: #b3121b;
	--nav-active: #8f0d14;
	--green: #b3121b;
	--accent: #f2a900;
	--text: #2c2f34;
	--muted: #8a8a8a;
	--border: #e7e7e7;
	--bg: #f0f0f0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--nav-active); }
img { max-width: 100%; height: auto; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.clearfix::after { content: ""; display: table; clear: both; }
/* custom.css cu gan clearfix ::before/::after cho .container -> thanh flex bi chen 2 phan tu rong */
.top-nav .container::before, .top-nav .container::after,
.main-nav .container::before, .main-nav .container::after,
.site-info .container::before, .site-info .container::after { display: none; }

/* Khung boxed */
#tie-container { max-width: 1230px; margin: 0 auto; background: #fff; box-shadow: 0 0 10px rgba(0,0,0,.08); }

/* Thanh tren cung */
.top-nav { background: #fff; border-bottom: 1px solid var(--border); font-size: 13px; }
.top-nav .container { display: flex; align-items: center; justify-content: space-between; min-height: 36px; gap: 10px; }
.today-date { color: var(--muted); }
.top-menu, .footer-menu .menu { display: flex; flex-wrap: wrap; gap: 4px 18px; list-style: none; margin: 0; padding: 0; }

/* Dai logo nen xanh nhu site cu (.logo-wrapper {background:#1280db; height:80px}) */
.logo-wrapper { background: radial-gradient(circle at 85% 0, rgba(255,214,0,.35), transparent 40%), linear-gradient(120deg, #7d0a10, #c8161f 60%, #e0352b); }
#logo { display: flex; justify-content: center; align-items: center; min-height: 80px; padding: 8px 15px; }
#logo .custom-logo-link { display: block; line-height: 0; }
#logo img { max-height: 64px; width: auto; }
.logo-wrapper .logo-main { color: #fff; }
.logo-wrapper .logo-sub { color: #e8f3ff; }
.text-logo { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.logo-main { font-size: 44px; font-weight: 800; color: var(--nav); text-transform: uppercase; letter-spacing: .5px; }
.logo-main b { color: var(--accent); }
.logo-sub { margin-top: 6px; font-size: 14px; color: var(--green); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

/* Menu chinh xanh duong */
.main-nav { background: var(--nav); position: relative; }
.main-nav .container { display: flex; align-items: center; }
.main-nav .menu { display: flex; flex-wrap: wrap; flex: 1; list-style: none; margin: 0; padding: 0; }
.main-nav .menu > li > a { display: block; padding: 0 15px; line-height: 50px; color: #fff; font-weight: 600; font-size: 14px; }
.main-nav .menu > li.current-menu-item > a,
.main-nav .menu > li.current-menu-ancestor > a,
.main-nav .menu > li:hover > a { background: var(--nav-active); color: #fff; }
.main-nav .menu li { position: relative; }
.main-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; background: var(--nav); list-style: none; margin: 0; padding: 0; z-index: 20; }
.main-nav .menu li:hover > .sub-menu { display: block; }
.main-nav .sub-menu a { display: block; padding: 10px 15px; color: #fff; font-size: 14px; }
.main-nav .sub-menu a:hover { background: var(--nav-active); }
.menu-toggle, .search-toggle { background: none; border: 0; color: #fff; cursor: pointer; height: 50px; padding: 0 12px; font-size: 16px; }
.menu-toggle { display: none; }
.menu-toggle span { display: block; width: 22px; height: 2px; margin: 5px 0; background: #fff; }
.search-bar { display: none; background: var(--nav-active); padding: 10px 0; }
.search-open .search-bar { display: block; }
.search-form { display: flex; gap: 6px; }
.search-form label { flex: 1; }
.search-form .search-field { width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: 3px; font-size: 14px; }
.search-form .search-submit, .button { background: var(--accent); color: #fff; border: 0; border-radius: 3px; padding: 9px 16px; cursor: pointer; font-weight: 600; }

/* Noi dung */
.site-content { padding-top: 20px; padding-bottom: 30px; }
.container-wrapper-time { background: #f0f0f0; border-radius: 2px; padding: 8px 12px; margin-bottom: 20px; font-size: 14px; }
.mag-box { margin-bottom: 25px; }
.container-wrapper { background: #fff; border: 1px solid var(--border); border-radius: 2px; padding: 20px; }
.mag-box-title { display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid var(--green); margin: -5px 0 18px; }
.mag-box-title h3 { margin: 0; padding: 0 0 8px; font-size: 17px; font-weight: 700; color: var(--green); text-transform: uppercase; }
.mag-box-title h3 a { color: var(--green); }
.block-more-button { font-size: 12px; color: var(--muted); }
.block-more-button:hover { color: var(--accent); }

/* Danh sach bai */
.posts-items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 24px; }
.post-item { display: flex; gap: 14px; align-items: flex-start; }
.post-item a.post-thumb { background: var(--nav); }
.post-thumb { flex: 0 0 170px; display: block; aspect-ratio: 1200 / 628; border-radius: 3px; overflow: hidden; background: var(--nav); }
/* custom.css cu co ".post-item img {width:20px}" cho icon -> can do uu tien cao hon */
.posts-items .post-item .post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.post-item:hover .post-thumb img { transform: scale(1.05); }
.no-thumb { display: flex; align-items: center; justify-content: center; height: 100%; color: #fff; font-size: 12px; font-weight: 700; text-align: center; padding: 6px; }
.post-details { flex: 1; min-width: 0; }
.post-item .post-title { margin: 0 0 4px; font-size: 15px; line-height: 1.4; font-weight: 700; }
.post-item .post-title a { color: #383838; }
.post-item .post-title a:hover { color: var(--nav-active); }
.post-meta { color: var(--muted); font-size: 12px; display: flex; gap: 14px; flex-wrap: wrap; }
.post-excerpt { margin: 6px 0 0; font-size: 13.5px; color: #555; }
.archive-desc { margin-bottom: 15px; color: #555; }

/* Phan trang */
.pages-nav { margin-top: 25px; }
.pages-nav .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pages-nav .page-numbers { min-width: 36px; padding: 6px 10px; text-align: center; border: 1px solid var(--border); border-radius: 3px; }
.pages-nav .page-numbers.current, .pages-nav a.page-numbers:hover { background: var(--nav); border-color: var(--nav); color: #fff; }

/* Bai viet */
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 15px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb em { font-style: normal; margin: 0 6px; }
.post-cat { display: inline-block; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 2px; margin-bottom: 10px; }
.post-cat:hover { color: #fff; background: var(--nav-active); }
.entry-header .post-title { margin: 0 0 10px; font-size: 30px; line-height: 1.3; color: var(--text); }
.entry-header { margin-bottom: 20px; }
.featured-area { margin-bottom: 20px; }
.featured-area img { width: 100%; border-radius: 3px; }
.entry-content { font-size: 16px; line-height: 1.75; }
.entry-content h2 { font-size: 22px; color: var(--green); margin: 28px 0 15px; }
.entry-content h3 { font-size: 19px; margin: 24px 0 12px; }
.entry-content a { color: var(--nav-active); }
.entry-content table { width: 100%; border-collapse: collapse; margin: 15px 0; font-size: 14px; }
.entry-content th, .entry-content td { border: 1px solid #ddd; padding: 6px 8px; text-align: center; }
.entry-content th { background: #f3f7fb; }
.entry-content blockquote { margin: 18px 0; padding: 12px 18px; border-left: 4px solid var(--green); background: #f6fbf7; }
.entry-content .table-responsive, .entry-content figure.wp-block-table { overflow-x: auto; }

/* Trang chu co dien: 16 hop lay nguyen tu ban luu */
.home-classic .mag-box { margin-bottom: 20px; }
.home-classic .container-wrapper { padding: 0 0 15px; overflow: hidden; }
.home-classic .mag-box-container { padding: 0 15px; }
.title1 { margin-bottom: 12px; }
.title1 h3 { margin: 0; font-size: 16px; line-height: 1.4; color: #fff; text-transform: uppercase; }
.title1 h3 a { color: #fff; }
.ds-baiviet { padding: 7px 0; border-bottom: 1px dashed #e5e5e5; }
.ds-baiviet:last-child { border-bottom: 0; }
.ds-baiviet img { width: 18px !important; height: auto; margin-right: 4px; }
.home-classic img.emoji, .home-classic img[src*="s.w.org/images/core/emoji"] { width: 1em !important; height: 1em; vertical-align: -.1em; }

/* Bo class Bootstrap 4 toi thieu ma cac hop cu dung (bootstrap goc khong con ban luu) */
.home-classic .row { display: flex; flex-wrap: wrap; margin: 0 -8px; }
.home-classic .col, .home-classic [class*="col-"] { flex: 1 0 0; padding: 0 8px; min-width: 0; }
.home-classic .px-0 { padding-left: 0 !important; padding-right: 0 !important; }
.home-classic .mb-0 { margin-bottom: 0 !important; }
.home-classic .text-center { text-align: center; }
.home-classic .text-white { color: #fff !important; }
.home-classic .d-none { display: none !important; }
@media (min-width: 992px) { .home-classic .d-lg-block { display: block !important; } .home-classic .d-lg-none { display: none !important; } }
.home-classic .nav { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.home-classic .nav-pills .nav-link { display: block; padding: 9px 6px; background: #0c6fc0; color: #fff; cursor: pointer; font-weight: 600; font-size: 14px; border-right: 1px solid rgba(255,255,255,.25); }
.home-classic .nav-pills .nav-link.active { background: #f4801e; }
.home-classic .tab-content > .tab-pane { display: none; }
.home-classic .tab-content > .tab-pane.active { display: block; }
.home-classic .table { width: 100%; border-collapse: collapse; margin: 0 0 12px; font-size: 14px; background: #fff; }
.home-classic .table td, .home-classic .table th { border: 1px solid #dee2e6; padding: 6px 8px; vertical-align: middle; }
.home-classic .table-sm td, .home-classic .table-sm th { padding: 4px 6px; }
.home-classic .table-striped tbody tr:nth-of-type(odd) { background: #f6f8fa; }
.home-classic .table th, .home-classic thead td { background: #eef4fb; font-weight: 700; }
.home-classic .entry { font-size: 15px; line-height: 1.6; }
.home-classic .loTop { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 10px 0; }
.home-classic .lotop-tabs { margin: 6px 0; color: #999; }
.home-classic .lotop-tab { cursor: default; }
.home-classic .lotop-tab.active { color: #f4801e; font-weight: 700; }

/* Footer toi */
.site-footer { background: #1f2024; color: #ccc; margin-top: 10px; }
.footer-widget-area { padding: 35px 15px 25px; }
.footer-logo { font-size: 26px; font-weight: 800; color: #fff; text-transform: uppercase; margin-bottom: 10px; }
.footer-logo b { color: var(--accent); }
.footer-about p { margin: 0; max-width: 640px; color: #ccc; }
.site-info { background: #161619; padding: 15px 0; font-size: 13px; }
.site-info .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.site-info a, .footer-menu a { color: #cacaca; }
.site-info a:hover { color: #fff; }
#go-to-top { position: fixed; right: 18px; bottom: 18px; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,.25); }

/* Mobile */
@media (max-width: 900px) {
	.posts-items { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
	.top-nav { display: none; }
	#logo { min-height: 64px; }
	#logo img { max-height: 46px; }
	.logo-main { font-size: 30px; }
	.logo-sub { font-size: 11px; }
	.menu-toggle { display: block; }
	#main-nav .container { flex-wrap: wrap; justify-content: space-between; }
	.main-nav .menu { display: none; flex: 0 0 100%; flex-direction: column; order: 3; }
	.main-nav.menu-open .menu { display: flex; }
	.main-nav .menu > li > a { line-height: 44px; border-top: 1px solid rgba(255,255,255,.12); }
	.main-nav .sub-menu { position: static; display: block; background: rgba(0,0,0,.12); }
	.container-wrapper { padding: 14px; }
	.entry-header .post-title { font-size: 24px; }
	.post-thumb { flex-basis: 120px; }
}

/* ===== XSTT: font, logo, bo cuc 2 cot ===== */
body { font-family: "Be Vietnam Pro", -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
#tie-container { max-width: 1240px; }
.top-nav .top-note { color: #b3121b; font-weight: 600; font-size: 12.5px; }
#logo { justify-content: flex-start; min-height: 96px; }
.text-logo { flex-direction: row; gap: 14px; align-items: center; }
.logo-badge { width: 60px; height: 60px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff6c2, #ffd200 45%, #f2a900); color: #b3121b; font-size: 22px; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 4px rgba(255,255,255,.25), 0 6px 16px rgba(0,0,0,.25); }
.logo-text { display: flex; flex-direction: column; }
.logo-wrapper .logo-main { font-size: 36px; color: #fff; text-transform: uppercase; }
.logo-main b { color: #ffd200; }
.logo-wrapper .logo-sub { color: #ffe9b0; font-size: 13px; margin-top: 4px; }
.main-nav { background: #fff; border-bottom: 3px solid #b3121b; box-shadow: 0 3px 10px rgba(0,0,0,.06); }
.main-nav .menu > li > a { color: #8f0d14; font-size: 13.5px; text-transform: uppercase; padding: 0 12px; line-height: 46px; }
.main-nav .menu > li.current-menu-item > a, .main-nav .menu > li.current-menu-ancestor > a, .main-nav .menu > li:hover > a { background: #b3121b; color: #fff; }
.main-nav .sub-menu { background: #fff; border: 1px solid #eee; border-top: 3px solid #b3121b; box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.main-nav .sub-menu a { color: #333; padding: 8px 14px; font-size: 13.5px; }
.main-nav .sub-menu a:hover { background: #fff3f3; color: #b3121b; }
.menu-toggle span { background: #b3121b; }
.search-toggle { color: #b3121b; height: 46px; }
.site-content { display: flex; gap: 22px; align-items: flex-start; }
.main-content { flex: 1; min-width: 0; }
.sidebar { flex: 0 0 300px; width: 300px; }
.container-wrapper { border-radius: 6px; }
.mag-box-title { border-bottom-color: #b3121b; }
.mag-box-title h3, .mag-box-title h3 a { color: #b3121b; }
.post-thumb, .post-item a.post-thumb { background: #b3121b; }
.entry-header .post-title { color: #8f0d14; }
.entry-content h2 { color: #b3121b; border-left: 4px solid #f2a900; padding-left: 10px; }
.site-footer { background: #3a0306; }
.site-info { background: #2a0204; }

/* Cot phai (khoi link cua site cu) */
.content-right { background: #fff; border: 1px solid #eadcdc; border-radius: 6px; margin-bottom: 18px; overflow: hidden; }
.title-r { background: linear-gradient(90deg, #b3121b, #d8262e); color: #fff; font-weight: 700; font-size: 14px; padding: 9px 12px; text-transform: uppercase; }
.title-r a { color: #fff; }
.content-right ul { list-style: none; margin: 0; padding: 6px 12px 10px; }
.content-right li { border-bottom: 1px dashed #eee; padding: 6px 0 6px 14px; font-size: 14px; position: relative; }
.content-right li:before { content: ""; position: absolute; left: 0; top: 14px; width: 6px; height: 6px; border-radius: 50%; background: #f2a900; }
.content-right li:last-child { border-bottom: 0; }
.content-right li a:hover { color: #b3121b; }
.content-right .two-column { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
.content-right .list-news li { padding-left: 0; }
.content-right .list-news li:before { display: none; }
.content-right .right-news-title { font-weight: 600; font-size: 14px; }
.content-right .pad5 { display: none; }
.content-right img { display: none; }

/* ===== Bang ket qua kieu cu ===== */
.entry-content .box { background: #fff; border: 1px solid #eadcdc; border-radius: 6px; margin: 0 0 20px; overflow-x: auto; }
.entry-content .title-a, .entry-content .tit-mien, .entry-content .sub-title { background: #fff4e0; color: #8f0d14; font-weight: 700; padding: 8px 12px; margin: 0; font-size: 15px; border-bottom: 1px solid #f1dfc0; }
.entry-content .title-a a, .entry-content .tit-mien a, .entry-content .sub-title a { color: #8f0d14; }
.entry-content .tit-mien h2, .entry-content .title-a h2, .entry-content .tit-mien h3, .entry-content .title-a h3 { margin: 0; padding: 0; border: 0; font-size: 15px; color: #8f0d14; }
.entry-content table { margin: 0; font-size: 15px; background: #fff; }
.entry-content table td, .entry-content table th { border: 1px solid #ececec; padding: 6px; }
.entry-content table th, .entry-content table thead td { background: #fbf3f3; color: #8f0d14; font-weight: 700; }
.entry-content table.kqmb td:first-child, .entry-content table.colgiai td:first-child, .entry-content .txt-giai { width: 70px; color: #666; font-size: 13px; background: #fafafa; }
.entry-content .v-giai, .entry-content .number { font-weight: 700; font-size: 20px; letter-spacing: 1px; color: #222; }
.entry-content .v-gdb, .entry-content .db .v-giai, .entry-content .db .number, .entry-content tr.db td { color: #d0021b; font-size: 26px; font-weight: 800; }
.entry-content .v-g8, .entry-content .g8 .number { color: #d0021b; font-size: 22px; }
.entry-content .clred { color: #d0021b; }
.entry-content .clnote { color: #2b6cb0; }
.entry-content .bold { font-weight: 700; }
.entry-content .s18 { font-size: 18px; }
.entry-content tr:nth-child(even) td { background: #fffaf3; }
.entry-content table.firstlast-mb, .entry-content table.tbl50 { width: 49%; display: inline-table; vertical-align: top; }
.entry-content table.firstlast-mb.fr { margin-left: 2%; }
.entry-content .col-firstlast { padding: 10px; }
.entry-content .fl { float: left; } .entry-content .fr { float: right; }
.entry-content .clearfix::after, .entry-content .box::after { content: ""; display: table; clear: both; }
.entry-content .bg_gray, .entry-content .bg_ef { background: #f5f5f5; }
.entry-content .bg_brown { background: #fff4e0; }
.entry-content .txt-center, .entry-content .center { text-align: center; }
.entry-content .pad5 { padding: 5px; } .entry-content .pad10 { padding: 10px; } .entry-content .mag5 { margin: 5px 0; }
.entry-content .control-panel, .entry-content .buttons-wrapper, .entry-content .opt_date_full { display: none; }
.entry-content .list-html-link, .entry-content .stastic-lotery { list-style: none; padding: 8px 12px; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 16px; }
.entry-content .list-html-link li, .entry-content .stastic-lotery li { padding: 4px 0; border-bottom: 1px dashed #eee; }
.entry-content .table-fixed, .entry-content .data, .entry-content .data2 { width: 100%; }
.entry-content .statistic-box { padding: 8px 12px; }
.entry-content .box > p, .entry-content .box-html { padding: 0 12px; }
.entry-content .dsp-mobile-block { display: inline; }
.quaythu-btn { display: inline-block; margin: 10px 12px; background: linear-gradient(90deg, #b3121b, #e0352b); color: #fff !important; border: 0; border-radius: 30px; padding: 10px 22px; font-weight: 700; cursor: pointer; box-shadow: 0 6px 14px rgba(179,18,27,.3); font-size: 15px; }
.quaythu-btn:hover { filter: brightness(1.08); }

/* Trang chu */
.container-wrapper-time { background: #fff4e0; color: #8f0d14; border-left: 4px solid #f2a900; font-weight: 600; }

@media (max-width: 991px) {
	.site-content { flex-direction: column; }
	.sidebar { width: 100%; flex-basis: auto; }
}
@media (max-width: 768px) {
	.logo-wrapper .logo-main { font-size: 24px; }
	.logo-badge { width: 44px; height: 44px; font-size: 16px; }
	#logo { min-height: 72px; }
	.main-nav .menu > li > a { border-top: 1px solid #f1e3e3; }
	.main-nav .sub-menu { border: 0; box-shadow: none; background: #fff8f8; }
	.entry-content .v-giai, .entry-content .number { font-size: 17px; }
	.entry-content .v-gdb, .entry-content tr.db td { font-size: 21px; }
	.entry-content table.firstlast-mb, .entry-content table.tbl50 { width: 100%; margin: 0 0 10px !important; display: table; }
	.entry-content .list-html-link, .entry-content .stastic-lotery { grid-template-columns: 1fr; }
}

/* Giai nhieu so: moi so 1 o (site cu ve bang CSS goc, khong con ban luu) */
.entry-content .v-giai > span[class^="v-g"] { display: inline-block; padding: 2px 6px; min-width: 25%; text-align: center; }
.entry-content .v-giai > span[class^="v-g2-"] { width: 50%; }
.entry-content .v-giai > span[class^="v-g3-"], .entry-content .v-giai > span[class^="v-g5-"], .entry-content .v-giai > span[class^="v-g6-"] { width: 33.33%; }
.entry-content .v-giai > span[class^="v-g4-"], .entry-content .v-giai > span[class^="v-g7-"] { width: 25%; }
.entry-content .colgiai .v-giai > div, .entry-content .colgiai .v-giai > span { display: block; }
.entry-content .qt-done { animation: qtpop .35s ease; }
@keyframes qtpop { from { transform: scale(1.4); color: #f2a900; } to { transform: none; } }
/* Thanh tab theo thu (ul.tab-panel cua site cu) */
.entry-content ul.tab-panel { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.entry-content ul.tab-panel li { margin: 0; }
.entry-content ul.tab-panel a { display: block; padding: 6px 14px; border: 1px solid #eadcdc; border-radius: 20px; background: #fff; color: #8f0d14; font-weight: 600; font-size: 14px; text-decoration: none; }
.entry-content ul.tab-panel li.active a, .entry-content ul.tab-panel a:hover { background: #b3121b; border-color: #b3121b; color: #fff; }
