/*
Theme Name: Xoso Restored
Description: Mo phong giao dien cu cua lokhung3ngay.com (bo cuc boxed, menu xanh duong, tieu de xanh la). CSS tuy bien goc nam trong custom.css.
Version: 1.1.0
Text Domain: xoso-restored
*/

:root {
	--nav: #0c6fc0;
	--nav-active: #1280db;
	--green: #149c49;
	--accent: #f4801e;
	--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: #1280db; }
#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; }
}
