/* Reference-inspired academy layout; original Dong Thai content and brand. */
:root{--bg:#f7f9fc;--line:#dfe7ee;--muted:#647888}
body{background:var(--bg)}
.header{background:var(--navy);color:#fff;border:0}
.header .brand{color:#fff}.header .brand img{background:#fff;border-radius:10px;padding:5px;object-fit:contain}
.header nav a{color:#dcecf5;border-radius:9px;transition:background .15s ease}
.header nav a.active,.header nav a:hover{color:#fff;background:var(--blue)}
.header .muted{color:#c8dce8}.header .user .link{color:#fff}
.academy-topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:76px;padding:16px 36px;background:#fff;border-bottom:1px solid var(--line)}
.academy-topbar small{display:block;color:var(--muted);font-size:12px}.academy-topbar strong{font-size:15px}.academy-topbar>a{background:#e8f4fa;padding:7px 14px;border-radius:24px;font-size:12px;color:var(--blue);font-weight:700}
#main.wrap{padding-top:32px;padding-bottom:48px}
.topline{margin-bottom:28px}.greeting{font-size:25px!important;line-height:1.4;font-weight:700}
.hero{background:var(--navy);border:0;border-radius:22px;box-shadow:0 12px 30px #123c580d;overflow:hidden;color:white;margin-bottom:32px}
.hero-copy{padding:36px}.hero h1{font-size:42px;letter-spacing:-1px;color:#fff}.hero h1 span{color:var(--yellow)}.hero p{color:#dfedf5;line-height:1.8}.hero .eyebrow{color:#aedcf0}.hero .btn.link{color:white}.hero-photo{object-fit:cover}
.stats{gap:20px;margin-bottom:32px}.stat{border:1px solid var(--line);border-radius:16px;box-shadow:0 3px 10px #123c5804;padding:22px}.stat strong{font-size:30px}.stat-icon{border-radius:12px;background:#eaf5fb}
section{scroll-margin-top:24px}.section-head{margin-bottom:20px}.section-head h2{font-size:24px}.section-head p{color:var(--muted);font-size:13px}
.continue{background:white;border:1px solid var(--line);border-radius:18px;box-shadow:0 4px 16px #123c5805;overflow:hidden}
.card,.product-learning-card,.article{border:1px solid var(--line);border-radius:16px;background:white;box-shadow:0 3px 12px #123c5804;overflow:hidden;transition:box-shadow .18s ease,transform .18s ease}
.card:hover,.product-learning-card:hover,.article:hover{box-shadow:0 12px 28px #123c5812;transform:translateY(-3px)}
.product-banner{border-radius:16px;background:var(--navy)}.panel{border-radius:16px;border:1px solid var(--line);box-shadow:0 3px 12px #123c5804}
.progress{height:6px;border-radius:8px}.progress span{border-radius:8px}.btn{border-radius:9px}.search{background:white;border:1px solid #d4e0e8;border-radius:10px}.breadcrumb{font-size:13px;margin-bottom:24px}
footer{background:#fff;border-top:1px solid var(--line);color:var(--muted)}
@media(min-width:1100px){
.header{position:fixed;inset:0 auto 0 0;width:248px;height:100vh;z-index:50}
.header .header-inner{width:100%;height:100%;padding:32px 20px 24px;display:flex;flex-direction:column;align-items:stretch;gap:36px}
.header .brand{padding:0 6px;gap:12px}.header .brand img{width:48px;height:48px}.header .brand-copy{font-size:10px;letter-spacing:.9px}.header .brand-copy strong{font-size:16px}
.header nav{display:flex;flex-direction:column;align-items:stretch;gap:8px;width:100%;margin:0}.header nav a{display:flex;align-items:center;gap:12px;padding:13px 14px;font-size:13px;border-bottom:0;white-space:normal;min-height:48px}
.header nav a::before{content:'▦';font-size:21px;width:23px;text-align:center;font-weight:400}.header nav a:nth-child(1)::before{content:'⌂'}.header nav a:nth-child(2)::before{content:'▤'}.header nav a:nth-child(3)::before{content:'◈'}.header nav a:nth-child(4)::before{content:'◷'}
.header .user{margin-top:auto;padding-top:22px;border-top:1px solid #ffffff25;display:flex;gap:10px}.header .user-name{display:block}.header .avatar{background:#f4d437;color:var(--navy)}
.academy-topbar{margin-left:248px}#main.wrap{width:calc(100% - 320px);max-width:1260px;margin-left:auto;margin-right:36px}body:has(.header)>#app>footer{margin-left:248px}footer .wrap{width:calc(100% - 72px)}
.hero{min-height:350px}.hero-copy{padding:36px}.hero h1{font-size:40px}.hero-photo{max-width:100%;height:100%;min-height:350px}.course-grid{gap:22px}.products{gap:22px}
}
@media(min-width:1600px){#main.wrap{margin-left:calc(248px + (100% - 248px - 1260px)/2);margin-right:auto}}
@media(max-width:1099px){.header{position:relative}.header .header-inner{flex-wrap:wrap;padding-top:16px;padding-bottom:16px}.header nav{order:3;width:100%;display:flex;overflow-x:auto;padding:8px 0 0;gap:8px}.header nav a{padding:9px 12px;white-space:nowrap}.academy-topbar{padding:14px 24px;min-height:64px}.hero h1{font-size:36px}}
@media(max-width:600px){.academy-topbar{padding:14px 20px}.academy-topbar>a{font-size:11px;padding:6px 10px}.academy-topbar strong{font-size:13px}.greeting{font-size:21px!important}.hero-copy{padding:26px}.hero h1{font-size:34px}.hero{border-radius:16px}.stats{gap:12px}.stat{padding:16px}.section-head h2{font-size:21px}#main.wrap{padding-top:24px}.hero-photo{min-height:0}.header .brand-copy{display:block}}
@media(prefers-reduced-motion:reduce){.card,.product-learning-card,.article{transition:none}.card:hover,.product-learning-card:hover,.article:hover{transform:none}}
