/*
Theme Name: QS88 Việt
Version: 1.0.0
*/
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font:16px/1.6 Roboto,Arial,sans-serif;color:#111;background:white}a{color:#1e73be;text-decoration:none}a:hover{text-decoration:underline}img{max-width:100%;height:auto}button,input{font:inherit}button,a{touch-action:manipulation}a:focus-visible,button:focus-visible{outline:3px solid #df3333;outline-offset:3px}.container{width:min(1250px,100%);padding-left:15px;padding-right:15px;margin:auto}.header-row{height:90px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:inline-flex;align-items:center;gap:10px;color:#1e73be;font-size:38px;line-height:1;font-weight:900;font-style:italic;white-space:nowrap}.brand:hover{text-decoration:none}.site-logo{width:auto;height:auto;max-width:90px;max-height:60px;object-fit:contain}.header-actions,.actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center}.button{display:inline-flex;justify-content:center;align-items:center;min-height:36px;padding:4px 16px;color:white;background:#1e73be;border:1px solid transparent;border-radius:4px;font-weight:700;font-size:13px;line-height:1.6;text-align:center}.button.red{background:#d33}.button:hover{color:white;background:#165a96;text-decoration:none}.button.red:hover{background:#b52323}.navigation{background:rgba(19,112,198,.79)}.navigation nav{display:flex;align-items:center;justify-content:center;min-height:55px;gap:26px}.navigation a{color:white;font-size:14px;font-weight:700;line-height:1.3;padding:19px 0}.navigation a[aria-current],.navigation a:hover{color:#e8f4ff;text-shadow:0 0 1px white;text-decoration:none}.menu-toggle{display:none;background:white;color:#1e73be;border:1px solid #d7e2ec;border-radius:4px;width:42px;height:42px;font-size:24px}.banner{padding-top:24px}.banner img{display:block;width:100%;height:auto}.home-content{padding-top:24px;padding-bottom:38px}.section-title{display:flex;align-items:center;gap:18px;text-align:center;color:#459be6;font-size:27.2px;font-weight:800;line-height:1.3;margin:24px 0}.section-title:before,.section-title:after{content:'';height:2px;background:#e7e7e7;flex:1;min-width:24px}.article-body{font-size:16.8px;line-height:1.6;overflow-wrap:anywhere}.article-body>p:first-child{font-size:20px}.article-body p{margin:0 0 20px}.article-body h2{font-size:26.88px;line-height:1.3;margin:28px 0 14px;font-weight:800}.article-body h3{font-size:21px;line-height:1.4;margin:22px 0 12px}.article-body a{font-weight:600}.article-body figure{margin:24px auto;max-width:850px;text-align:center}.article-body figure img{display:block;width:100%;height:auto}.article-body figcaption{font-size:13px;text-transform:uppercase;font-style:italic;padding:7px 10px;background:#f5f5f5;color:#333}.table-scroll{overflow:auto;max-width:100%;margin:20px 0 26px}table{border-collapse:collapse;width:100%;font-size:15.12px;line-height:1.45}th,td{text-align:left;padding:9px 8px;border-bottom:1px solid #ddd;vertical-align:top}th{font-weight:700;background:#f4f8fc}td:first-child{font-weight:500}h1{font-size:29px;line-height:1.35;margin:0 0 22px}.breadcrumb{font-size:13px;color:#777;padding-top:24px;padding-bottom:20px}.page-grid{display:grid;grid-template-columns:minmax(0,3fr) minmax(240px,1fr);gap:30px;padding-bottom:40px}.page-grid>article{min-width:0}.sidebar{border-left:1px solid #ececec;padding-left:26px}.sidebar h2{font-size:17px;margin:0 0 18px;padding-bottom:10px;border-bottom:3px solid #ececec}.sidebar h2:not(:first-child){margin-top:30px}.side-story{display:flex;align-items:flex-start;gap:12px;margin-bottom:16px;font-size:14px;line-height:1.5;color:#222}.side-story img{width:70px;height:58px;object-fit:cover;flex-shrink:0}.category-links a{display:block;padding:8px 0;border-bottom:1px solid #eee;font-size:14px}.side-actions{display:grid;gap:10px}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.home-content>.cards{grid-template-columns:repeat(4,minmax(0,1fr))}.card img{width:100%;aspect-ratio:16/9;object-fit:cover;display:block}.card h3{font-size:17px;line-height:1.4;color:#222;margin:12px 0 8px}.card p{font-size:14px;color:#666;margin:0}.card a:hover h3{color:#1e73be}.site-footer{background:#f5f5f5;border-top:1px solid #e1e1e1;padding:34px 0 0}.footer-grid{display:grid;grid-template-columns:1.25fr 1fr 1fr 1fr;gap:26px}.footer-grid h2{font-size:17px;margin:0 0 14px}.footer-grid p{font-size:14px;line-height:1.7;margin:14px 0}.footer-grid>div>a:not(.brand):not(.button){display:block;font-size:14px;padding:7px 0;color:#333}.footer-grid>div>a:hover{color:#1e73be}.partners{margin-top:20px;text-align:center}.partners img{max-height:110px;width:auto;object-fit:contain}.copyright{text-align:center;padding:20px 0;margin-top:26px;border-top:1px solid #ddd;font-size:14px;color:#666}.back-top{position:fixed;right:18px;bottom:18px;width:38px;height:38px;border-radius:50%;border:2px solid #888;background:#fff;color:#555;cursor:pointer;z-index:50}.skip{position:absolute;left:-10000px}.skip:focus{left:10px;top:10px;z-index:100;background:white;padding:8px}.qs88-edit-hint{font-size:13px;color:#1e73be;background:#eef6fc;padding:10px}.qs88-visual-editor img[data-qs88-slot]{cursor:pointer}.qs88-visual-editor img[data-qs88-slot]:hover{outline:3px solid #1e73be}.editor-styles-wrapper .wp-block{max-width:1220px}.article-body .actions{margin:20px 0}.site-header{position:relative;z-index:80}
@media(max-width:1050px){.navigation nav{gap:15px}.navigation a{font-size:12px}.footer-grid{gap:18px}.page-grid{gap:20px}.sidebar{padding-left:18px}}
@media(max-width:849px){.header-row{height:76px;gap:12px}.brand{font-size:32px}.site-logo{max-width:52px;max-height:48px}.header-actions{margin-left:auto;gap:7px}.header-actions .button{font-size:12px;padding:5px 10px;min-height:38px}.menu-toggle{display:block;flex-shrink:0}.navigation{display:none;position:absolute;top:100%;left:0;right:0;box-shadow:0 10px 16px #0002;background:#247dbf}.navigation.open{display:block}.navigation nav{display:grid;grid-template-columns:1fr 1fr;gap:0;padding:10px 15px}.navigation a{font-size:14px;padding:14px}.page-grid{grid-template-columns:1fr}.sidebar{border-left:0;border-top:1px solid #ddd;padding:24px 0 0}.sidebar .side-story{display:inline-flex;width:48%;vertical-align:top;padding-right:12px}.footer-grid{grid-template-columns:1fr 1fr}.home-content>.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.banner{padding-top:16px}.article-body figure{max-width:100%}}
@media(max-width:550px){.container{padding-left:12px;padding-right:12px}.header-row{gap:8px;height:70px}.brand{font-size:27px;gap:6px}.site-logo{max-width:34px;max-height:36px}.header-actions{gap:5px}.header-actions .button{font-size:10px;padding:5px 7px;min-height:34px}.menu-toggle{width:36px;height:38px;font-size:22px}.section-title{font-size:22px;gap:8px}.section-title:before,.section-title:after{min-width:10px}.article-body{font-size:16px}.article-body>p:first-child{font-size:18px}.article-body h2{font-size:23px}.article-body h3{font-size:20px}h1{font-size:25px}.cards{grid-template-columns:1fr}.home-content>.cards{gap:16px}.card h3{font-size:15px}.footer-grid{grid-template-columns:1fr}.sidebar .side-story{width:100%}.table-scroll{font-size:14px}table{min-width:420px}.actions{gap:8px}.actions .button{flex:1}.back-top{right:10px;bottom:10px}}
@media(max-width:360px){.brand{font-size:24px}.site-logo{max-width:26px;max-height:30px}.header-row{gap:6px}.header-actions .button{padding:5px;font-size:9px}.menu-toggle{width:32px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

.article-body figure.home-banner{max-width:none;margin:0 0 24px}.home-banner img{width:100%;height:auto}.home-content{padding-top:24px}

/* Header entry buttons: pink and warm-yellow halo. */
.header-actions .button{position:relative;isolation:isolate;overflow:visible;border-radius:6px}
.header-actions .button::before{content:"";position:absolute;inset:-5px;border-radius:9px;background:conic-gradient(from 25deg,#fff27a 0deg,#ffdf6370 90deg,#ff52d9 205deg,#ff78d9 270deg,#fff27a 360deg);filter:blur(9px);opacity:.76;z-index:-2;pointer-events:none;transition:opacity .2s ease,filter .2s ease}
.header-actions .button::after{content:"";position:absolute;inset:0;border-radius:inherit;background:#1e73be;z-index:-1;pointer-events:none}
.header-actions .button.red::after{background:#e62f35}
.header-actions .button:hover::before,.header-actions .button:focus-visible::before{opacity:1;filter:blur(11px)}
.header-actions .button:hover::after{background:#1969ae}
.header-actions .button.red:hover::after{background:#d9262e}
@media(max-width:550px){.header-actions .button::before{inset:-3px;filter:blur(7px);opacity:.68}}
@media(prefers-reduced-motion:reduce){.header-actions .button::before{transition:none}}


/* Rotate the halo colours without rotating the button or label. */
@property --qs88-glow-angle{syntax:"<angle>";initial-value:25deg;inherits:false}
.header-actions .button::before{background:conic-gradient(from var(--qs88-glow-angle),#fff27a 0deg,#ffdf6370 90deg,#ff52d9 205deg,#ff78d9 270deg,#fff27a 360deg);animation:qs88-glow-orbit 3s linear infinite}
.header-actions .button.red::before{animation-delay:-1.5s}
@keyframes qs88-glow-orbit{from{--qs88-glow-angle:25deg}to{--qs88-glow-angle:385deg}}
@media(prefers-reduced-motion:reduce){.header-actions .button::before{animation:none}}

/* Current section remains visibly selected after navigation. */
.navigation a{position:relative;transition:background-color .18s ease,box-shadow .18s ease}
.navigation a[aria-current="page"]{background:#14578e;color:#fff;text-shadow:none;box-shadow:inset 0 -4px 0 #ffe18a;outline-offset:3px}
.navigation a:hover:not([aria-current="page"]){background:#ffffff1c;color:#fff;text-shadow:none;box-shadow:inset 0 -3px 0 #ffffff70}
@media(prefers-reduced-motion:reduce){.navigation a{transition:none}}

/* Blog reading and pagination. */
.article-toc{padding:20px 24px;margin:26px 0 32px;background:#f2f7fc;border:1px solid #d9e6f2;border-left:4px solid #2076ba;border-radius:8px}
.article-toc strong{font-size:18px;color:#174e7a}.article-toc ol{margin:12px 0 0;padding-left:22px}.article-toc li{padding:4px 0}.article-toc a{color:#1769aa;text-decoration:underline;text-underline-offset:3px}
.article-body h2[id]{scroll-margin-top:30px}.article-source{font-size:14px;color:#666}.article-next{padding:18px 20px;background:#f2f7fc;border-radius:8px}.article-next a,.blog-more a{font-weight:700;color:#1769aa}
.blog-intro{font-size:17px;line-height:1.7}.blog-count{color:#666;font-size:14px;margin:18px 0}.blog-more{text-align:center;margin:26px 0 40px}
.blog-pagination{margin:32px 0}.blog-pagination ul{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:0;padding:0;justify-content:center}.blog-pagination .page-numbers:not(ul){display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:8px 14px;border:1px solid #cbdbea;border-radius:6px;text-decoration:none;color:#1769aa}.blog-pagination .current,.blog-pagination a:hover{background:#1769aa!important;color:#fff!important;border-color:#1769aa!important}
.article-body img{height:auto}.page-grid>article{min-width:0}
@media(max-width:550px){.article-toc{padding:16px}.article-toc a{line-height:1.6}.article-next{padding:15px}.blog-pagination{margin:24px 0}}

/* Brand emphasis across page copy, cards, breadcrumbs and footer. */
strong.qs88-brand-emphasis{font-weight:700;color:inherit;font-size:inherit;}
.brand strong.qs88-brand-emphasis{font-weight:inherit;}

/* QS88 reference palette: white / grey, red-gold accents, black footer. */
:root{--qs-red:#c52119;--qs-gold:#ffd700;--qs-ink:#333;--qs-line:#e5e0da;--qs-warm:#fff9ef}
body{background:#fff;color:var(--qs-ink)}
a{color:#a8261c}a:hover{color:#771810}
.site-header{background:#fff;box-shadow:0 2px 12px #00000008}
.brand{color:#c5241a;text-shadow:0 1px 0 #ffe9a9}
.navigation{background:#f1f1f1;border-top:1px solid #e7e7e7;border-bottom:1px solid #ddd}
.navigation a{color:#575757}
.navigation a[aria-current="page"]{background:#fff3dc;color:#8a1d15;box-shadow:inset 0 -4px 0 #dd3822}
.navigation a:hover:not([aria-current="page"]){background:#fff8eb;color:#971f17;box-shadow:inset 0 -3px 0 #e4ad39}
.menu-toggle{color:#a8261c;border-color:#e3c8ad;border-radius:6px}
.button,.button.red{color:#fff;background:linear-gradient(to top,#ffd700,#f00000);border-color:#e68428;border-radius:99px;text-shadow:0 1px 2px #6b1400;box-shadow:0 3px 9px #b328191c}
.button:hover,.button.red:hover{color:#fff;background:linear-gradient(to top,#ffc429,#ce1711);box-shadow:0 4px 12px #b3281933}
.header-actions .button{border-radius:99px}
.header-actions .button::after,.header-actions .button.red::after{background:linear-gradient(to top,#ffd700,#f00000)}
.header-actions .button:hover::after,.header-actions .button.red:hover::after{background:linear-gradient(to top,#ffc429,#ce1711)}
.header-actions .button::before{border-radius:99px;background:conic-gradient(from var(--qs88-glow-angle),#ffd700,#ffb42665,#ec291c,#ffe57a,#ffd700);opacity:.45;filter:blur(7px)}
h1,.article-body h2{color:#992219}
.article-body h3{color:#4c342a}
.section-title{background:linear-gradient(-225deg,#ffd700 0%,#f00000 50%,#ffd700 100%);color:#fff;padding:14px 18px;border-radius:8px;text-shadow:0 1px 3px #701208;margin-top:28px}
.section-title:before,.section-title:after{background:#ffffff80}
.section-title strong{color:inherit}
.breadcrumb{color:#737373}.breadcrumb a{color:#a8261c}
.article-body a:not(.button){color:#a8261c;text-decoration:underline;text-underline-offset:3px}
.article-body a:not(.button):hover{color:#75170f}
.article-body figcaption{background:#f7f4ef;color:#655c54}
.table-scroll{border:1px solid var(--qs-line);border-radius:8px}
th{background:#fff1d6;color:#72251a;border-bottom:2px solid #e3b85c}
td{border-color:var(--qs-line)}tbody tr:nth-child(even){background:#fcfaf7}
.article-toc{background:var(--qs-warm);border-color:#eedfc3;border-left-color:#d23822}
.article-toc strong{color:#852419}.article-toc a{color:#963020}
.article-next{background:#fff6e7;border:1px solid #eedcc0}
.article-next a,.blog-more a{color:#9a281c}
.sidebar{border-color:var(--qs-line)}.sidebar h2{color:#5d3022;border-color:#e7bf67}
.side-story{color:#3f3f3f}.side-story:hover{color:#a8261c}
.category-links a{border-color:var(--qs-line);color:#873326}
.card{border:1px solid #ebe4d9;border-radius:10px;overflow:hidden;background:#fff;box-shadow:0 3px 12px #4d281208}
.card h3{padding:0 12px;color:#38302c}.card p{padding:0 12px 14px;color:#666}
.card a:hover h3{color:#ae281d}.card img{border-bottom:2px solid #edc063}
.blog-pagination .page-numbers:not(ul){color:#92291d;border-color:#e7d4b7;border-radius:8px}
.blog-pagination .current,.blog-pagination a:hover{background:#a92a1e!important;border-color:#a92a1e!important;color:#fff!important}
.site-footer{background:#080808;color:#eee;border-top:4px solid #dfad38}
.site-footer .brand{color:#ffd700;text-shadow:none}
.footer-grid h2{color:#ffe19a}.footer-grid p{color:#e1e1e1}
.site-footer a,.footer-grid>div>a:not(.brand):not(.button){color:#f1f1f1}
.site-footer a:hover,.footer-grid>div>a:hover{color:#ffd700}
.site-footer a[href^="mailto:"]{color:#ffe089;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.partners{padding:18px 10px;border-top:1px solid #303030;border-bottom:1px solid #303030}
.copyright{background:#292929;color:#d8d8d8;border-color:#444}
.back-top{color:#93291e;border-color:#bd8738;background:#fff9ee}
a:focus-visible,button:focus-visible{outline-color:#b72c1e;outline-offset:3px}
.site-footer a:focus-visible{outline-color:#ffd700}
.qs88-edit-hint{color:#8a291e;background:#fff6e7}
.qs88-visual-editor img[data-qs88-slot]:hover{outline-color:#cf3b26}
@media(max-width:849px){.navigation{background:#f1f1f1}.navigation a{color:#575757}.sidebar{border-color:var(--qs-line)}}
@media(max-width:550px){.section-title{padding:12px 10px}.header-actions .button::before{filter:blur(5px);opacity:.35}}

/* Moving red-gold title lettering, matching the reference textclip effect. */
.section-title{background-image:linear-gradient(-225deg,#ffd700 0%,#f00000 50%,#ffd700 100%);background-size:200% auto;background-position:0% center;background-clip:text;-webkit-background-clip:text;color:transparent;-webkit-text-fill-color:transparent;text-shadow:none;border-radius:0;animation:qs88-title-flow 2s linear infinite;}
.section-title:before,.section-title:after{background:#e5e5e5;}
@keyframes qs88-title-flow{to{background-position:200% center;}}
@media(prefers-reduced-motion:reduce){.section-title{animation:none;background-position:50% center;}}
@supports not ((background-clip:text) or (-webkit-background-clip:text)){.section-title{background:none;color:#bd3020;-webkit-text-fill-color:currentColor;animation:none;}}

/* Apply the moving title treatment to every page's main heading. */
main h1{background-image:linear-gradient(-225deg,#ffd700 0%,#f00000 50%,#ffd700 100%);background-size:200% auto;background-position:0% center;background-clip:text;-webkit-background-clip:text;color:transparent;-webkit-text-fill-color:transparent;text-shadow:none;animation:qs88-title-flow 2s linear infinite;}
main h1 strong,main h1 a{color:inherit;-webkit-text-fill-color:inherit;}
@media(prefers-reduced-motion:reduce){main h1{animation:none;background-position:50% center;}}
@supports not ((background-clip:text) or (-webkit-background-clip:text)){main h1{background:none;color:#bd3020;-webkit-text-fill-color:currentColor;animation:none;}}

/* Stronger orbiting red-gold halo for the two header actions. */
.header-actions .button::before{inset:-7px;background:conic-gradient(from var(--qs88-glow-angle),#ffd700 0deg,#ffef55 65deg,transparent 105deg,#ff291b 165deg,#ff5340 235deg,transparent 285deg,#ffd700 360deg);opacity:.95;filter:blur(7px);animation:qs88-glow-orbit 1.65s linear infinite;}
.header-actions .button.red::before{animation-delay:-.825s;}
.header-actions .button::after,.header-actions .button.red::after{background:linear-gradient(110deg,#f00000 0%,#ff5200 28%,#ffd700 50%,#ff5200 72%,#f00000 100%);background-size:240% 100%;animation:qs88-button-flow 2.2s linear infinite;}
.header-actions .button.red::after{animation-delay:-1.1s;}
.header-actions .button:hover::before,.header-actions .button:focus-visible::before{opacity:1;filter:blur(8px);}
@keyframes qs88-button-flow{from{background-position:0% 50%;}to{background-position:240% 50%;}}
@media(max-width:550px){.header-actions .button::before{inset:-5px;filter:blur(6px);opacity:.9;}}
@media(prefers-reduced-motion:reduce){.header-actions .button::before,.header-actions .button::after{animation:none;}}

/* Keep mixed text and bold brand names in one inline title flow. */
.section-title{display:block;position:relative;text-align:center;}
.section-title::before,.section-title::after{display:none;}
.section-title .qs88-brand-emphasis,main h1 .qs88-brand-emphasis{white-space:nowrap;}
@media(max-width:550px){.section-title{padding:12px 0;line-height:1.45;overflow-wrap:normal;word-break:normal;}}

/* QS88 mobile layout: presentation only, shared by all page templates. */
@media(max-width:849px){
 .container,.page-grid>article,.sidebar,.footer-grid>div,.card{min-width:0}
 .article-body :is(h1,h2,h3,h4,p,li,figcaption),.breadcrumb,.footer-grid{overflow-wrap:break-word;word-break:normal}
 .article-body :is(h1,h2,h3,h4) strong{display:inline;font-size:inherit;line-height:inherit}
 .article-body .actions{display:flex;flex-wrap:wrap;gap:10px;align-items:stretch}
 .article-body .actions .button{display:block;flex:1 1 145px;min-width:0;max-width:100%;min-height:44px;padding:11px 14px;font-size:13px;line-height:20px;white-space:normal;word-break:normal;overflow-wrap:normal}
 .button strong.qs88-brand-emphasis{display:inline;white-space:nowrap;word-break:normal;overflow-wrap:normal}
 .table-scroll{width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:auto}
 .table-scroll table{min-width:0;width:100%;font-size:14px;line-height:1.55;table-layout:auto}
 .table-scroll th,.table-scroll td{padding:10px;word-break:normal;overflow-wrap:normal;white-space:normal}
 .table-scroll table:has(tr>:nth-child(3)){min-width:540px}
 .table-scroll table:has(tr>:nth-child(4)){min-width:640px}
 .table-scroll table:has(tr>:nth-child(5)){min-width:760px}
 .table-scroll table:not(:has(tr>:nth-child(3))) td,.table-scroll table:not(:has(tr>:nth-child(3))) th{overflow-wrap:anywhere}
 .article-body figure,.article-body .wp-block-image{max-width:100%;height:auto}
 .article-body figure img{max-width:100%;height:auto}
 .article-body input,.article-body textarea,.article-body select{max-width:100%;min-width:0}
 .header-actions .button{white-space:nowrap}
 .navigation a{overflow-wrap:normal;word-break:normal}
}
@media(max-width:550px){
 .article-body .actions .button{flex-basis:140px}
 .article-body h1,main h1{font-size:25px;line-height:1.4}
 .article-body h2{font-size:23px;line-height:1.45}
 .article-body h3{font-size:20px;line-height:1.45}
 .section-title{word-break:normal;overflow-wrap:break-word}
 .home-content>.cards{grid-template-columns:1fr}
 .article-body figcaption{font-size:12px;line-height:1.6}
 .back-top{width:34px;height:34px;right:8px;bottom:8px}
}
