/*
Theme Name: Tieu Hoc Responsive
Theme URI: https://tieuhoctohienthanh.vn/
Author: Tieu Hoc To Hien Thanh
Description: Responsive theme rebuilt from the classic Tieu Hoc layout.
Version: 1.0.1
Text Domain: tieuhoc-responsive
*/

*{box-sizing:border-box}
html{font-size:16px}
body{margin:0;background:#eee;color:#222;font:14px/1.55 Arial,Helvetica,sans-serif}
a{color:#0062ad;text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%;height:auto;display:block}
.site-wrap{width:min(100%,1000px);margin:0 auto;background:#f7f7f7}
.site-header{background:#fff}
.mobile-header{display:none}
.site-banner img{width:100%;height:auto}
.main-nav{background:#c93025}
.main-nav ul{display:flex;flex-wrap:wrap;align-items:center;gap:0;margin:0;padding:0;list-style:none}
.main-nav li{position:relative}
.main-nav a{display:block;padding:9px 13px;color:#fff;font-weight:700;font-size:13px;line-height:1.2}
.main-nav a:hover{background:#a82018;text-decoration:none}
.main-nav .sub-menu{display:none;position:absolute;z-index:20;top:100%;left:0;min-width:210px;background:#c93025;box-shadow:0 8px 20px rgba(0,0,0,.18)}
.main-nav li:hover>.sub-menu{display:block}
.main-nav .sub-menu a{padding:10px 12px}
.content-shell{padding:10px}
.feature{display:grid;grid-template-columns:1fr 300px;gap:16px;align-items:start;margin-bottom:18px}
.feature-title{display:inline-block;margin:0 0 -1px;padding:5px 10px;background:#a80a57;color:#fff;font-size:20px;font-weight:700;text-transform:uppercase}
.feature-main{display:grid;grid-template-columns:minmax(220px,437px) 1fr;gap:16px;align-items:start;background:#fff;padding:0}
.feature-main img{width:100%;height:274px;object-fit:cover}
.feature-copy h2{margin:8px 0 8px;color:#a80a57;font-size:26px;line-height:1.2}
.feature-copy p{margin:0;color:#555}
.video-box iframe{width:100%;height:250px;border:0;background:#111}
.top-row{display:grid;grid-template-columns:2fr 1.1fr 300px;gap:16px;align-items:start;margin-bottom:18px}
.spotlight{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:18px}
.spotlight article{min-width:0}
.spotlight img{width:100%;aspect-ratio:16/10;object-fit:cover}
.spotlight h3{margin:6px 0 0;font-size:13px;line-height:1.25}
.main-grid{display:grid;grid-template-columns:456px 1fr 300px;gap:16px;align-items:start}
.category-card,.middle-block,.sidebar-section,.entry-content,.post-box{background:#fff}
.category-card{margin-bottom:12px;box-shadow:0 4px 9px -7px rgba(0,0,0,.7)}
.category-card h2,.middle-block h2,.sidebar-section h2{margin:0;color:#d90000;font-size:14px;text-transform:uppercase}
.category-card h2{padding:5px 0 7px;border-left:2px solid #b32261;color:#b32261}
.category-card h2 a{color:#b32261}
.category-lead{display:grid;grid-template-columns:151px 1fr;gap:8px;padding:6px}
.category-lead img{width:151px;height:100px;object-fit:cover}
.category-lead h3{margin:0 0 4px;font-size:13px;line-height:1.3}
.category-lead p{margin:0;color:#666;text-align:justify}
.related-list{margin:0;padding:7px 8px 8px;background:#eaeaea;display:grid;grid-template-columns:1fr 1fr;gap:5px 18px;list-style:none}
.related-list li{padding-left:10px;background:url(/wp-content/themes/tieuhoc/images/liststyle5.gif) no-repeat 0 7px;font-size:13px;line-height:1.25}
.middle-block{margin-bottom:14px}
.middle-block h2{padding:0 0 6px;color:#b32261;text-transform:none}
.middle-lead img{width:100%;height:100px;object-fit:cover;margin-bottom:6px}
.middle-lead h3{margin:0 0 6px;font-size:14px;line-height:1.3}
.middle-block ul,.sidebar-section ul,.post-related{margin:0;padding:0;list-style:none}
.middle-block li,.sidebar-section li{padding:3px 0 3px 12px;background:url(/wp-content/themes/tieuhoc/images/liststyle5.gif) no-repeat 0 10px;line-height:1.3}
.sidebar-section{margin-bottom:12px}
.sidebar-section h2{padding:5px;text-align:center}
.sidebar-section li{background:#cfcfcf;border-bottom:1px solid #fff;padding:6px 10px}
.sidebar-section li a{font-weight:700}
.fb-frame{min-height:120px;background:#fff}
.post-list{background:#fff;padding:10px}
.post-list article{display:grid;grid-template-columns:151px 1fr;gap:12px;margin-bottom:18px}
.post-list img{width:151px;height:100px;object-fit:cover}
.post-list h2{margin:0 0 6px;font-size:15px;line-height:1.3}
.post-list p{margin:0;color:#555}
.pagination{padding:12px;text-align:right}
.entry-content{padding:14px}
.entry-content h1{margin:0 0 14px;font-size:28px;line-height:1.2;color:#111}
.entry-body{font-size:15px;line-height:1.75}
.entry-body p{margin:0 0 1em}
.entry-body img{max-width:100%;height:auto;margin:10px 0}
.post-related{margin-top:18px;padding-top:10px;border-top:1px solid #ddd}
.post-related li{margin:5px 0;padding-left:14px;list-style:disc inside}
.site-footer{margin-top:18px;background:linear-gradient(#d62b79,#9a0051);color:#fff}
.site-footer .inner{width:min(100%,1000px);margin:0 auto;padding:14px 10px;font-weight:700}
.site-footer p{margin:3px 0}
.screen-reader-text{position:absolute;left:-9999px}
body.archive .feature-main{grid-template-columns:minmax(220px,437px) 1fr}

@media (max-width: 1020px){
	.site-wrap{width:100%}
	.content-shell{padding:10px}
	.feature,.top-row,.main-grid{grid-template-columns:1fr 300px}
	.main-grid>.content-primary{grid-column:1}
	.main-grid>.content-secondary{grid-column:1}
	.main-grid>.sidebar{grid-column:2;grid-row:1 / span 2}
	.spotlight{grid-template-columns:repeat(2,1fr)}
}

@media (max-width: 900px){
	body{padding-top:58px}
	body.menu-open{overflow:hidden}
	.site-header{position:fixed;z-index:1000;top:0;left:0;right:0;background:#fff;box-shadow:0 8px 24px rgba(0,0,0,.14)}
	.mobile-header{display:flex;align-items:center;min-height:58px;padding:8px 12px;background:#fff}
	.menu-toggle{position:relative;display:grid;place-items:center;width:42px;height:42px;margin:0 10px 0 0;padding:0;border:0;border-radius:10px;background:#c93025;box-shadow:0 5px 14px rgba(201,48,37,.28);cursor:pointer}
	.menu-toggle-lines,
	.menu-toggle-lines:before,
	.menu-toggle-lines:after{display:block;width:20px;height:2px;border-radius:2px;background:#fff;transition:transform .2s ease,opacity .2s ease}
	.menu-toggle-lines:before,
	.menu-toggle-lines:after{content:"";position:absolute}
	.menu-toggle-lines:before{transform:translateY(-7px)}
	.menu-toggle-lines:after{transform:translateY(7px)}
	body.menu-open .menu-toggle-lines{background:transparent}
	body.menu-open .menu-toggle-lines:before{transform:rotate(45deg)}
	body.menu-open .menu-toggle-lines:after{transform:rotate(-45deg)}
	.mobile-brand{display:flex;align-items:center;min-width:0;color:#c93025;font-weight:700;text-decoration:none}
	.mobile-brand img{width:36px;height:36px;margin-right:8px;object-fit:contain}
	.mobile-brand span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px}
	.site-banner{display:block;height:0;overflow:hidden}
	.main-nav{position:fixed;z-index:999;top:58px;left:0;right:0;max-height:calc(100vh - 58px);overflow:auto;background:rgba(255,255,255,.98);box-shadow:0 18px 35px rgba(0,0,0,.18);transform:translateY(-115%);opacity:0;pointer-events:none;transition:transform .24s ease,opacity .18s ease}
	body.menu-open .main-nav{transform:translateY(0);opacity:1;pointer-events:auto}
	.main-nav ul{display:block;margin:0;padding:8px 12px 16px;list-style:none}
	.main-nav li{border-bottom:1px solid #eee}
	.main-nav li:last-child{border-bottom:0}
	.main-nav a{padding:13px 8px;color:#222;font-size:15px;font-weight:700;text-align:left}
	.main-nav a:hover{background:#f5f5f5;color:#c93025}
	.main-nav .sub-menu{position:static;display:block;min-width:0;margin:0 0 8px 16px;padding:0;border-left:3px solid #f0c6c1;background:#fff;box-shadow:none}
	.main-nav .sub-menu a{padding:9px 10px;color:#555;font-size:14px;font-weight:600}
	.feature{grid-template-columns:1fr}
	.feature-main{grid-template-columns:minmax(260px,437px) 1fr}
	.video-box iframe{height:260px}
}

@media (max-width: 760px){
	body{background:#f3f3f3;font-size:14px}
	.content-shell{padding:8px}
	.feature,.feature-main,.top-row,.main-grid,.post-list article{grid-template-columns:1fr}
	.main-grid>.content-primary,
	.main-grid>.content-secondary,
	.main-grid>.sidebar{grid-column:auto;grid-row:auto}
	.feature-main img{height:auto;aspect-ratio:16/10}
	.feature-copy h2{font-size:22px}
	.spotlight{grid-template-columns:1fr 1fr;gap:10px}
	.category-lead{grid-template-columns:120px 1fr}
	.category-lead img,.post-list img{width:120px;height:82px}
	.related-list{grid-template-columns:1fr}
	.video-box iframe{height:220px}
	.entry-content h1{font-size:24px}
}

@media (max-width: 460px){
	.spotlight,.category-lead{grid-template-columns:1fr}
	.category-lead img,.post-list img{width:100%;height:auto;aspect-ratio:16/10}
	.feature-copy h2{font-size:20px}
	.entry-content{padding:10px}
}
