/*
Theme Name: Hazo Knowledge
Theme URI: https://hazomedia.vn/
Author: Hazo Media
Description: Knowledge Base / Hướng dẫn sử dụng và chia sẻ kiến thức cho Hazo Media.
Version: 1.2.0
License: GPL-2.0-or-later
Text Domain: hazo-knowledge
*/

:root{
  --red:#d42127;
  --red-dark:#b7191f;
  --ink:#101820;
  --muted:#66717d;
  --line:#e8ebee;
  --soft:#fff5f5;
  --bg:#fff;
  --container:1180px;
  --radius:16px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:#fff;color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;line-height:1.65;font-size:16px}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}
.container{width:min(calc(100% - 40px),var(--container));margin:auto}

/* HEADER */
.site-header{height:72px;border-bottom:1px solid #f0f1f2;background:#fff;position:sticky;top:0;z-index:20}
.header-inner{height:72px;display:flex;align-items:center;gap:30px}
.brand{font-size:29px;font-weight:800;letter-spacing:-1.4px;white-space:nowrap}
.brand .hazo{color:var(--red)}
.brand small{display:block;font-size:8px;line-height:1;letter-spacing:1px;color:#6c747c;text-align:center;margin-top:-4px;font-weight:500}
.hazo-header__brand{display:flex;align-items:center}
.custom-logo-link{display:block;line-height:0}
.custom-logo{max-height:55px;width:auto;display:block}

.main-nav{display:flex;align-items:center;margin-left:auto}
.main-nav ul{display:flex;align-items:center;gap:28px;list-style:none;margin:0;padding:0}
.main-nav li{margin:0;padding:0}
.main-nav a{font-size:15px;font-weight:600;color:#20262d;position:relative;padding:25px 0;display:block;white-space:nowrap}
.main-nav a:hover,.main-nav .current-menu-item>a{color:var(--red)}
.main-nav .current-menu-item>a:after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;background:var(--red)}

.header-search{font-size:24px;color:var(--red);padding-left:4px}
.header-cta{background:var(--red);color:#fff!important;padding:11px 22px!important;border-radius:999px;font-size:14px;font-weight:700}
.header-cta:hover{background:var(--red-dark);color:#fff!important}

/* HERO */
.hero{position:relative;background:#fff url("https://huongdan.hazoweb.vn/wp-content/uploads/2026/09/bg-hero.jpg") center center/cover no-repeat;min-height:410px;padding:68px 0 56px;border-bottom:1px solid #f4f4f4;overflow:hidden}
.hero-grid{display:block;min-height:285px}
.hero-grid>div:first-child{width:58%}
.eyebrow{text-transform:uppercase;letter-spacing:4px;font-size:13px;color:#5f6b75;font-weight:700;margin-bottom:10px}
.hero h1{font-size:48px;line-height:1.12;letter-spacing:-1.8px;margin:0 0 15px;max-width:560px}
.hero p{font-size:18px;line-height:1.6;color:#53606b;max-width:610px;margin:0 0 24px}

.search-form{display:flex;background:#fff;border:1px solid #e2e5e8;border-radius:14px;padding:6px;box-shadow:0 10px 30px rgba(16,24,32,.08);max-width:650px}
.search-form input{border:0;outline:0;flex:1;padding:13px 14px;font-size:16px;min-width:0}
.search-form button{border:0;background:var(--red);color:#fff;font-weight:700;font-size:15px;border-radius:10px;padding:0 24px;cursor:pointer}

.hero-tags{display:flex;gap:8px;flex-wrap:wrap;margin-top:13px;align-items:center;font-size:14px;color:#68737c}
.hero-tags a{background:rgba(255,255,255,.9);border:1px solid #e8eaec;padding:5px 11px;border-radius:999px;backdrop-filter:blur(5px)}

.hero-visual{display:none}
.hero-visual-card{display:none}
.hero-screen{display:none}
.hero-screen .bar{display:none}
.hero-screen h3{display:none}
.hero-screen .redline{display:none}


/* HERO TABLET */
@media(max-width:900px){
 .hero{min-height:390px;background-position:center center}
 .hero-grid{display:block}
 .hero-grid>div:first-child{width:70%}
}


/* HERO MOBILE */
@media(max-width:600px){
 .hero{min-height:auto;padding:45px 0;background-position:center right}
 .hero-grid>div:first-child{width:100%}
 .hero h1{font-size:36px}
 .hero p{font-size:16px}
 .search-form{display:block;padding:7px}
 .search-form input{width:100%;padding:12px}
 .search-form button{width:100%;height:44px;margin-top:6px}
}
/* CATEGORIES */
.categories{padding:38px 0 28px}
.category-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.category-card{border:1px solid var(--line);border-radius:15px;padding:22px;display:flex;gap:16px;align-items:center;min-height:126px;transition:.2s}
.category-card:hover{border-color:#f1b8ba;box-shadow:0 10px 25px rgba(16,24,32,.06);transform:translateY(-2px)}
.cat-icon{width:64px;height:64px;flex:0 0 64px;border-radius:13px;background:#fff0f0;color:var(--red);display:grid;place-items:center;font-size:27px;font-weight:800}
.category-card h3{font-size:18px;line-height:1.35;margin:0 0 4px}
.category-card p{font-size:14px;color:var(--muted);margin:0;line-height:1.5}
.arrow{margin-left:auto;color:var(--red);font-size:21px}

/* CONTENT */
.content-area{padding:28px 0 70px}
.content-grid{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:38px}
.section-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.section-title h2{font-size:28px;margin:0;letter-spacing:-.6px}
.section-title a{font-size:14px;color:var(--red);font-weight:700}

.post-list{border-top:1px solid var(--line)}
.post-item{display:grid;grid-template-columns:220px 1fr;gap:26px;padding:20px 0;border-bottom:1px solid var(--line)}
.post-thumb{width:220px;height:140px;border-radius:12px;background:#f3f4f5;overflow:hidden}
.post-thumb img{width:100%;height:100%;object-fit:cover}
.post-item h3{font-size:21px;line-height:1.3;margin:4px 0 7px}
.post-item p{margin:0 0 10px;color:var(--muted);font-size:15px}
.meta{display:flex;gap:8px;flex-wrap:wrap;color:#6b747d;font-size:13px}
.meta span{background:#f5f6f7;border-radius:999px;padding:3px 9px}

/* SIDEBAR */
.sidebar-card{border:1px solid var(--line);border-radius:14px;padding:20px;margin-bottom:18px}
.sidebar-card.soft{background:var(--soft);border-color:#f7dddd}
.sidebar-card h3{font-size:18px;line-height:1.35;margin:0 0 12px}
.sidebar-card p{font-size:14px;line-height:1.6;margin:0;color:var(--muted)}
.popular{list-style:none;padding:0;margin:0}
.popular li{display:flex;gap:11px;padding:9px 0;border-bottom:1px solid #eee;font-size:14px;line-height:1.45}
.popular li:last-child{border-bottom:0}
.rank{width:26px;height:26px;flex:0 0 26px;border-radius:50%;background:#fce8e8;display:grid;place-items:center;font-weight:800;color:#333}
.support-btn{display:block;text-align:center;background:var(--red);color:#fff;padding:12px;border-radius:10px;font-size:14px;font-weight:700;margin-top:15px}

/* FOOTER */
.site-footer{background:#11181d;color:#fff;padding:38px 0 28px}
.footer-inner{display:flex;justify-content:space-between;gap:30px;align-items:flex-end}
.footer-brand{font-size:26px;font-weight:800}
.footer-brand small{display:block;font-size:10px;color:#aeb6bc;font-weight:400}
.footer-links{display:flex;gap:22px;font-size:14px;color:#d6dade}
.footer-bottom{border-top:1px solid #30383e;margin-top:28px;padding-top:18px;font-size:13px;color:#aeb6bc;display:flex;justify-content:space-between}

/* ARCHIVE */
.archive-head{padding:50px 0 28px;background:#fff7f7}
.archive-head h1{font-size:42px;line-height:1.2;margin:0 0 8px}
.archive-head p{margin:0;color:var(--muted);font-size:17px}

.pagination{display:flex;justify-content:center;align-items:center;gap:8px;margin:40px 0 10px}
.pagination .page-numbers{display:flex;align-items:center;justify-content:center;min-width:40px;height:40px;padding:0 12px;border:1px solid var(--line);border-radius:10px;color:var(--ink);font-size:14px;font-weight:600;text-decoration:none;background:#fff}
.pagination .page-numbers.current{background:var(--red);border-color:var(--red);color:#fff}
.pagination .page-numbers:hover{border-color:var(--red);color:var(--red)}
.pagination .page-numbers.dots{border:0;background:none}

/* SINGLE */
.single-wrap{padding:55px 0 80px}
.single-grid{display:grid;grid-template-columns:minmax(0,760px) 260px;gap:60px;justify-content:center}
.breadcrumb{font-size:13px;color:#7a838b;margin-bottom:18px}
.single-title{font-size:46px;line-height:1.15;letter-spacing:-1.4px;margin:0 0 14px}
.single-meta{color:#68727b;font-size:14px;margin-bottom:28px}
.entry-content{font-size:18px;line-height:1.75;color:#283039}
.entry-content h2{font-size:30px;line-height:1.3;margin-top:36px}
.entry-content h3{font-size:23px;line-height:1.35;margin-top:28px}
.entry-content img{border-radius:12px;margin:22px 0}
.entry-content li{margin:7px 0}
.toc{position:sticky;top:95px;border-left:2px solid #eee;padding-left:18px;font-size:14px;color:#66717a}
.toc strong{display:block;color:#20262d;margin-bottom:10px}
.no-results{padding:40px 0;color:var(--muted);font-size:16px}

/* TABLET */
@media(max-width:900px){
 .main-nav{display:none}
 .header-inner{justify-content:space-between}
 .header-cta{display:none}
 .hero-grid{grid-template-columns:1fr}
 .hero-visual{display:none}
 .category-grid{grid-template-columns:repeat(2,1fr)}
 .content-grid,.single-grid{grid-template-columns:1fr}
 .toc{display:none}
}

/* MOBILE */
@media(max-width:600px){
 .container{width:min(calc(100% - 28px),var(--container))}
 .site-header,.header-inner{height:64px}
 .brand{font-size:23px}
 .hero{padding:45px 0}
 .hero h1{font-size:36px}
 .hero p{font-size:16px}
 .search-form{display:block;padding:7px}
 .search-form input{width:100%;padding:12px}
 .search-form button{width:100%;height:44px;margin-top:6px}
 .category-grid{grid-template-columns:1fr}
 .category-card{min-height:110px}
 .post-item{grid-template-columns:100px 1fr;gap:14px}
 .post-thumb{width:100px;height:78px}
 .post-item h3{font-size:17px}
 .post-item p{font-size:13px}
 .footer-inner,.footer-bottom{display:block}
 .footer-links{margin-top:20px;flex-wrap:wrap}
 .footer-bottom>*+*{margin-top:10px}
 .single-title{font-size:34px}
 .entry-content{font-size:16px}
}