/* Bất Động Sản 365 — theo bản lưu 2013–2015 (theme gốc: nền họa tiết, header cao ốc, menu cam #ff7f00, khung 1000px: 680 + 300). */
*,*::before,*::after{box-sizing:border-box}
html,body,div,span,h1,h2,h3,h4,h5,h6,p,ul,ol,li,a,img,article,aside,nav,header,footer,section,time{margin:0;padding:0;border:0;font-size:100%}
ul,ol{list-style:none}
img{max-width:100%;height:auto}
body{font:12px/1.5 Arial,Helvetica,sans-serif;color:#000;background:#f4f2ee url(../img/bg_body.png) repeat}
a{color:#5641d5;text-decoration:none}
a:hover{color:#ff5a5a}
:focus-visible{outline:2px solid #ff7f00;outline-offset:2px}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}
.skip-link:focus{position:fixed!important;left:8px;top:8px;width:auto;height:auto;clip:auto;z-index:99999;background:#fff;color:#000;padding:8px 12px}
[hidden]{display:none!important}

/* Header */
#header{background:url(../img/bg_header.png) repeat-x center top;padding-top:3px}
#header-wrap,#main-menu-wrap,#footer-wrap,#main-wrap{margin:0 auto;width:1000px;max-width:100%;position:relative}
#header-wrap{height:155px}
#logo{float:left}
#logo img{display:block;width:348px;height:150px}
#main-menu{background:#ff7f00}
#main-menu-wrap::after{content:"";display:table;clear:both}
#main-menu .menu>li{position:relative;float:left}
#main-menu .menu a{display:block;margin-right:2px;padding:10px 20px;color:#fff;font-size:14px;font-weight:bold;line-height:18px}
#main-menu .menu a:hover,#main-menu .menu>li:focus-within>a,
#main-menu .current-menu-item>a,#main-menu .current-menu-parent>a,#main-menu .current-category-ancestor>a,#main-menu .current-post-ancestor>a,#main-menu .current-menu-ancestor>a{background:#363636;color:#fff}
#main-menu .sub-menu{display:none;position:absolute;top:38px;left:0;width:250px;background:#9a9999;z-index:9999}
#main-menu .menu>li:hover>.sub-menu,#main-menu .menu>li:focus-within>.sub-menu{display:block}
#main-menu .sub-menu a{margin:0;border-bottom:1px solid #fff;font-size:13px}
.menu-toggle{display:none}

/* Main */
#main{margin-top:30px}
#main-wrap::after{content:"";display:table;clear:both}
#main-left{float:left;width:680px}
#main-right{float:right;width:300px}
#main-left.contents{background:#fff;padding:5px 0 10px;border-radius:5px}

/* Trang chủ */
.home-block{background:#fff;margin-bottom:20px;border-radius:5px;overflow:hidden}
.home-title{text-indent:20px;font:normal 18px/36px Tahoma,Arial,sans-serif;color:#ff7f00;border-bottom:3px solid #ff7f00}
.home-title a{color:#ff7f00}
.home-title a:hover{color:#363636}
.home-content::after,.home-slide-items::after{content:"";display:table;clear:both}
.home-top-new-item{padding:10px;overflow:hidden}
.home-top-new-item .feature-img{float:left;margin-right:10px;border:1px solid #ccc;padding:5px;box-shadow:0 1px 3px rgba(0,0,0,.4);width:292px}
.home-top-new-item .feature-img img,.home-top-new-item .bds-ph{display:block;width:280px;height:210px;object-fit:cover}
.home-top-new-item h3.title a{color:#ff9433;font:bold 18px/1.3 Tahoma,Arial,sans-serif}
.home-top-new-item h3.title a:hover{color:#363636}
.home-top-new-item .c-date{display:block;color:#5b5b66;margin:5px 0}
.home-list{padding:0 10px 10px;clear:both}
.home-list li,#main-right .sidebox li{background:url(../img/li.png) no-repeat 0 4px;margin:5px 0;padding-left:8px}
.home-list a,#main-right .sidebox li a{font-weight:700;line-height:14px}
.home-slide-items{padding:10px}
.home-slide-title{margin:0 10px;font-size:14px;font-weight:bold;border-bottom:1px dotted #ddd;padding-bottom:3px}
.home-slide-title a{color:#ff5a5a}
.home-slide-item{float:left;width:310px;min-height:110px;margin:10px;overflow:hidden}
.home-slide-item .thumb{float:left;margin-right:6px;border:1px solid #ccc;padding:5px;box-shadow:0 1px 3px rgba(0,0,0,.4)}
.home-slide-item .thumb img,.home-slide-item .bds-ph{display:block;width:120px;height:90px;object-fit:cover}
.home-slide-item h3{font-size:12px;line-height:1.35;margin-bottom:3px}
.home-slide-item h3 a{color:#5641d5;font-weight:bold}
.home-slide-item p{color:#333}

/* Ảnh mặc định */
.bds-ph{display:flex;align-items:center;justify-content:center;background:#fff7ef;overflow:hidden}
.bds-ph img{width:120px!important;height:90px!important;object-fit:contain}

/* Chuyên mục */
.breadcrumb{border-bottom:2px solid #ff9433;color:#363636;font-size:18px;font-weight:700;line-height:30px;padding:0 15px 2px;margin:0}
.breadcrumb a{color:#ff9433}
.breadcrumb a:hover{color:#363636}
.content-wrap{padding:0 10px;min-height:300px}
.content-wrap::after{content:"";display:table;clear:both}
.content-wrap .category{display:flex;gap:10px;border-bottom:1px solid #dedede;padding:15px 0}
.content-wrap .c-thumb{flex:0 0 186px;background:#ccc;border-radius:5px;padding:3px;align-self:flex-start}
.content-wrap .c-thumb img,.content-wrap .c-thumb .bds-ph{display:block;width:180px;height:135px;object-fit:cover;border-radius:3px}
.content-wrap .c-content{flex:1;min-width:0}
.content-wrap .c-content h2{font-size:14px;line-height:1.35}
.content-wrap .c-title{color:#f60}
.content-wrap .c-title:hover{color:#363636}
.content-wrap .c-date{display:block;color:#5b5b66;margin:5px 0}
.cat-desc{padding:10px 0;color:#444}
.pager{padding:20px 0 10px;text-align:center}
.pager .page-numbers{display:inline-block;border:1px solid #f60;color:#363636;margin:0 3px 6px;padding:5px 10px}
.pager a.page-numbers:hover,.pager .current{background:#363636;color:#fff}
.pager .dots{border:0}

/* Bài viết */
.content-wrap h1.title{font-size:18px;line-height:1.4;padding:10px 10px 0;color:#ff7f00}
.content-wrap .date{background:url(../img/date.png) no-repeat 10px 2px;padding-left:30px;line-height:21px;margin:5px 0;color:#6ccbe7}
.entry{font-size:13px;line-height:20px;margin:0 10px}
.entry .sapo{margin-bottom:12px}
.entry h2,.entry h3{color:#363636;margin:15px 0 .4em;font-size:15px;line-height:1.4}
.entry h3{font-size:14px}
.entry p{margin-bottom:10px}
.entry ul,.entry ol{margin:0 0 10px 6px}
.entry li{list-style:circle inside;margin-bottom:3px}
.entry ol li{list-style:decimal inside}
.entry a{color:#e85151}
.entry a:hover{color:#666}
.relatenews{margin-top:15px}
.relatenews h2{color:#ff7f00;font-size:18px;font-weight:bold;padding:8px;border-bottom:1px solid #d9d9d9}
.relatenews ul{padding:5px 8px}
.relatenews li{background:url(../img/li-1.png) no-repeat 0 6px;padding-left:12px;margin:5px 0}
.empty{padding:20px 0}

/* Cột phải */
#main-right .sidebox{background:#fff;margin-bottom:10px;border-radius:5px;overflow:hidden}
#main-right .s-title{border-bottom:3px solid #ff7f00;color:#ff7f00;font:normal 16px/36px Tahoma,Arial,sans-serif;padding-left:10px}
#main-right .s-title a{color:#ff7f00}
#main-right .sidebox ul{padding:5px 10px 10px}
#main-right .cat-list .children{padding:0 0 0 8px}
#main-right .sidebox-items{display:flex;gap:6px;border-bottom:1px solid #d5d4c7;margin:6px 10px;padding-bottom:6px;font-weight:700;line-height:1.35}
#main-right .sidebox-items:last-child{border-bottom:0}
#main-right .sidebox-items .thumb{flex:0 0 86px;border:1px solid #d5d4c7;padding:2px;box-shadow:0 1px 3px rgba(0,0,0,.4)}
#main-right .sidebox-items .thumb img,#main-right .sidebox-items .bds-ph{display:block;width:80px;height:60px;object-fit:cover}
#main-right .sidebox-items .bds-ph img{width:80px!important;height:60px!important}
.bds-contact{padding:10px}

/* Footer */
#footer{margin-top:15px;padding:30px 0;background:#363636;color:#ccc;clear:both}
#footer-wrap{padding:0 10px}
#footer .corp-name{color:#ff7f00;font-size:18px;font-weight:bold;line-height:30px}
#footer a{color:#eee}
#footer a:hover{color:#ff7f00}
.footer-cats{margin-top:10px}
.footer-cats li{display:inline-block;margin:0 14px 4px 0}
#footer .copyright{margin-top:20px;color:#fff;text-align:center}

/* Responsive */
@media (max-width:1019px){
	#header-wrap,#main-menu-wrap,#footer-wrap,#main-wrap{width:auto;padding-left:10px;padding-right:10px}
	#main-left{width:calc(100% - 315px)}
	.home-slide-item{width:calc(50% - 20px)}
}
@media (max-width:860px){
	#main-left,#main-right{float:none;width:auto}
	#main-right{margin-top:20px}
	#header-wrap{height:auto;overflow:hidden}
	#header{background-size:auto 158px}
}
@media (max-width:640px){
	#logo img{width:232px;height:100px}
	#header{background-size:auto 105px}
	#main{margin-top:15px}
	.menu-toggle{display:flex;align-items:center;gap:8px;width:100%;background:none;border:0;color:#fff;font:bold 14px/20px Arial,sans-serif;padding:10px;cursor:pointer}
	.menu-toggle .bars,.menu-toggle .bars::before,.menu-toggle .bars::after{display:block;width:18px;height:2px;background:#fff;position:relative}
	.menu-toggle .bars::before,.menu-toggle .bars::after{content:"";position:absolute;left:0}
	.menu-toggle .bars::before{top:-6px}.menu-toggle .bars::after{top:6px}
	#main-menu-wrap{padding:0}
	#main-menu .menu{display:none}
	#main-menu .menu.is-open{display:block}
	#main-menu .menu>li{float:none}
	#main-menu .menu a{margin:0;border-top:1px solid rgba(255,255,255,.3)}
	#main-menu .sub-menu{display:block;position:static;width:auto;background:#f39a3f}
	#main-menu .sub-menu a{padding-left:36px;border-bottom:0}
	.home-top-new-item .feature-img{display:block;float:none;margin:0 auto 10px;width:auto;max-width:292px}
	.home-top-new-item .feature-img img,.home-top-new-item .bds-ph{width:100%;height:auto;aspect-ratio:4/3}
	.home-slide-item{float:none;width:auto;margin:10px 0}
	.content-wrap .c-thumb{flex-basis:126px}
	.content-wrap .c-thumb img,.content-wrap .c-thumb .bds-ph{width:120px;height:90px}
	.breadcrumb{font-size:15px}
}
