/*
Theme Name: Tin Khuyến Mãi Hot
Theme URI: https://tinkhuyenmaihot.com/
Author: Tin Khuyến Mãi Hot
Description: Theme tạp chí khuyến mãi và cẩm nang tiêu dùng nhanh, rõ, tối ưu thiết bị di động.
Version: 1.0.1
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: tkmh
*/

:root{--ink:#172033;--muted:#667085;--line:#e6e8ec;--paper:#fff;--soft:#f6f7f9;--brand:#ef3f36;--brand-dark:#c92923;--accent:#ff9f1c;--navy:#102a56;--green:#17855b;--radius:18px;--shadow:0 14px 40px rgba(23,32,51,.08);--container:1180px}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;color:var(--ink);background:var(--paper);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;font-size:16px;line-height:1.7;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
a:hover{color:var(--brand)}
button,input,textarea{font:inherit}
.site-container{width:min(calc(100% - 40px),var(--container));margin-inline:auto}
.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.screen-reader-text:focus{clip:auto!important;width:auto;height:auto;margin:0;padding:12px 18px;left:12px;top:12px;background:#fff;color:#111;z-index:9999}
.topbar{background:var(--navy);color:#dce6f7;font-size:13px}
.topbar-inner{display:flex;min-height:36px;align-items:center;justify-content:space-between;gap:20px}
.topbar a{color:#fff;font-weight:650}
.site-header{position:sticky;top:0;z-index:100;background:rgba(255,255,255,.96);border-bottom:1px solid var(--line);backdrop-filter:blur(12px)}
.header-main{min-height:78px;display:flex;align-items:center;gap:32px}
.site-branding{display:flex;align-items:center;gap:12px;min-width:260px}
.custom-logo-link,.brand-mark{width:54px;height:54px;display:block;flex:0 0 54px}
.custom-logo,.brand-mark img{width:54px;height:54px;object-fit:contain}
.brand-copy{display:flex;flex-direction:column;line-height:1.15}
.brand-copy strong{font-size:18px;letter-spacing:-.3px;color:var(--navy)}
.brand-copy small{font-size:11px;color:var(--muted);margin-top:5px}
.primary-navigation{margin-left:auto}
.primary-navigation ul{display:flex;align-items:center;gap:25px;list-style:none;padding:0;margin:0}
.primary-navigation a{font-size:14px;font-weight:700;color:#263348;display:block;padding:26px 0;white-space:nowrap}
.primary-navigation .current-menu-item>a,.primary-navigation a:hover{color:var(--brand)}
.header-search{width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:var(--soft);font-size:24px;line-height:1;color:var(--navy)}
.menu-toggle{display:none;width:42px;height:42px;border:0;background:var(--soft);border-radius:10px;padding:10px}
.menu-toggle span:not(.screen-reader-text){display:block;height:2px;background:var(--navy);margin:4px 0;border-radius:2px}
.site-main{min-height:58vh}
.page-shell{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:52px;padding-top:44px;padding-bottom:72px}
.single-shell{align-items:start}
.breadcrumbs{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:0 0 25px;color:#7a8495;font-size:13px}
.breadcrumbs a{color:var(--navy);font-weight:650}
.archive-header{border-bottom:1px solid var(--line);padding-bottom:26px;margin-bottom:32px}
.archive-header h1,.entry-header h1{font-size:clamp(34px,4vw,52px);line-height:1.13;letter-spacing:-1.5px;margin:6px 0 14px;color:#111b2d}
.archive-description,.archive-header>p{color:var(--muted);font-size:18px;max-width:720px;margin:0}
.category-count{display:inline-flex;margin-top:18px;padding:7px 12px;border-radius:999px;background:#fff0ee;color:var(--brand-dark);font-size:13px;font-weight:750}
.category-header{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:28px;align-items:center}.category-header-image{width:240px;height:150px;object-fit:cover;border-radius:14px}
.section-kicker{color:var(--brand);font-size:12px;font-weight:800;letter-spacing:1.5px;text-transform:uppercase}
.card-grid{display:grid;gap:26px}
.card-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.card-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.post-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:0 7px 22px rgba(23,32,51,.04);transition:transform .2s ease,box-shadow .2s ease}
.post-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.card-media{display:block;aspect-ratio:1.55;background:#e9edf3;overflow:hidden}
.card-media img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.post-card:hover .card-media img{transform:scale(1.035)}
.card-body{padding:21px}
.post-label{display:inline-block;color:var(--brand-dark);font-size:11px;font-weight:850;letter-spacing:.8px;text-transform:uppercase;margin-bottom:8px}
.card-body h2{font-size:21px;line-height:1.3;letter-spacing:-.35px;margin:0 0 10px}
.card-body h2 a:hover{color:var(--brand)}
.card-body p{font-size:14px;line-height:1.65;color:var(--muted);margin:0 0 18px}
.card-meta{display:flex;justify-content:space-between;gap:12px;font-size:12px;color:#8790a0;border-top:1px solid var(--line);padding-top:14px}
.card-meta a{font-weight:750;color:var(--navy)}
.pagination{margin-top:40px}
.nav-links{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.page-numbers{min-width:40px;height:40px;padding:0 12px;display:grid;place-items:center;border:1px solid var(--line);border-radius:9px;font-weight:700;font-size:13px}
.page-numbers.current{background:var(--navy);color:#fff;border-color:var(--navy)}
.sidebar{display:flex;flex-direction:column;gap:24px;position:sticky;top:110px}
.widget{border:1px solid var(--line);border-radius:15px;background:#fff;padding:22px}
.widget-title{font-size:18px;line-height:1.3;margin:0 0 16px;padding-bottom:12px;border-bottom:2px solid var(--navy)}
.widget ul{list-style:none;padding:0;margin:0}
.widget li{border-bottom:1px solid var(--line);padding:9px 0;font-size:14px}
.widget li:last-child{border-bottom:0;padding-bottom:0}
.widget li a{font-weight:620}
.widget li .count{float:right;color:var(--muted)}
.recent-list li{display:flex!important;flex-direction:column;gap:4px}
.recent-list time{font-size:11px;color:var(--muted)}
.sidebar-note{background:var(--navy);color:#dfe8f7;border:0}
.sidebar-note .section-kicker{color:#ffb24c}
.sidebar-note p{margin:8px 0 0;font-size:14px}
.search-form{display:flex;gap:7px}
.search-form label{flex:1}
.search-field{width:100%;height:44px;border:1px solid #d8dce3;border-radius:9px;padding:0 12px;color:var(--ink)}
.search-submit{border:0;border-radius:9px;background:var(--brand);color:#fff;padding:0 14px;font-weight:750;cursor:pointer}
.entry-header{margin-bottom:28px}
.entry-deck{font-size:20px;line-height:1.55;color:#566075;max-width:790px;margin:0 0 18px}
.entry-meta{display:flex;align-items:center;gap:9px;flex-wrap:wrap;font-size:13px;color:#7a8495}
.entry-meta a{color:var(--navy);font-weight:650}
.entry-hero{margin:0 0 36px;border-radius:22px;overflow:hidden;background:var(--soft)}
.entry-hero img{width:100%;max-height:580px;object-fit:cover}
.prose{font-size:18px;line-height:1.82;color:#2d3748}
.prose>*{max-width:760px;margin-left:auto;margin-right:auto}
.prose h2,.prose h3{color:#172033;line-height:1.25;letter-spacing:-.6px;margin-top:42px;margin-bottom:15px}
.prose h2{font-size:30px}.prose h3{font-size:23px}
.prose p{margin-top:0;margin-bottom:22px}
.prose ul,.prose ol{padding-left:24px;margin-bottom:24px}
.prose li{margin-bottom:8px}
.prose blockquote{border-left:4px solid var(--brand);background:#fff5f2;padding:20px 25px;font-size:20px;font-weight:600;color:#3f4654}
.prose img{border-radius:16px;margin-top:30px;margin-bottom:30px}
.prose a{color:var(--brand-dark);text-decoration:underline;text-underline-offset:3px}
.editor-note{background:#fff8e9;border:1px solid #ffdda7;padding:16px 18px;border-radius:12px;color:#5b4a2f;margin:36px 0 22px}
.tag-list{display:flex;gap:8px;flex-wrap:wrap}.tag-list a{padding:6px 10px;border-radius:999px;background:var(--soft);font-size:12px}
.related-posts{border-top:1px solid var(--line);margin-top:52px;padding-top:38px}
.related-posts>h2{font-size:30px;margin:5px 0 22px}
.related-posts .card-body h2{font-size:17px}.related-posts .card-body p{display:none}.related-posts .card-meta{margin-top:12px}
.front-page-content>.entry-content{overflow:hidden}
.hero{background:#f1f4f8;padding:48px 0}
.hero-grid{display:grid;grid-template-columns:1.02fr .98fr;gap:52px;align-items:center}
.hero-copy h1{font-size:clamp(42px,6vw,72px);line-height:1.02;letter-spacing:-3px;margin:12px 0 20px;color:#101a2b}
.hero-copy h1 em{font-style:normal;color:var(--brand)}
.hero-copy>p{font-size:19px;color:#596579;max-width:610px;margin-bottom:26px}
.eyebrow{display:inline-flex;align-items:center;gap:7px;padding:7px 12px;background:#fff0ee;border-radius:999px;color:var(--brand-dark);font-size:12px;font-weight:850;letter-spacing:.5px;text-transform:uppercase}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:28px}
.button{display:inline-flex;min-height:46px;align-items:center;justify-content:center;padding:0 20px;border-radius:10px;font-weight:800;font-size:14px;border:1px solid transparent}
.button-primary{background:var(--brand);color:#fff}.button-primary:hover{background:var(--brand-dark);color:#fff}
.button-ghost{background:#fff;color:var(--navy);border-color:#d8dfe9}
.button-light{background:#fff;color:var(--navy)}
.trust-list{display:flex;gap:19px;flex-wrap:wrap;color:#5e6a7e;font-size:13px}.trust-list span:before{content:"✓";color:var(--green);font-weight:900;margin-right:6px}
.hero-photo{position:relative}.hero-photo img{width:100%;height:520px;object-fit:cover;border-radius:28px;box-shadow:var(--shadow)}
.deal-badge{position:absolute;left:-24px;bottom:24px;background:#fff;border-radius:14px;padding:14px 18px;box-shadow:var(--shadow);display:flex;gap:12px;align-items:center}.deal-badge strong{font-size:27px;color:var(--brand)}.deal-badge span{font-size:12px;color:var(--muted);max-width:100px;line-height:1.35}
.section{padding:78px 0}
.section-soft{background:var(--soft)}
.section-dark{background:var(--navy);color:#fff}
.section-heading{display:flex;align-items:end;justify-content:space-between;gap:30px;margin-bottom:32px}
.section-heading h2{font-size:clamp(31px,4vw,44px);line-height:1.15;letter-spacing:-1.2px;margin:5px 0 0}
.section-heading p{max-width:530px;color:var(--muted);margin:0}
.text-link{color:var(--navy);font-weight:800;font-size:14px;white-space:nowrap}
.category-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.category-tile{position:relative;min-height:290px;border-radius:17px;overflow:hidden;background:#222}
.category-tile img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0;opacity:.8}
.category-tile:after{content:"";position:absolute;inset:0;background:linear-gradient(transparent 34%,rgba(7,15,30,.88))}
.category-tile-content{position:absolute;inset:auto 20px 20px;z-index:1;color:#fff}.category-tile h3{font-size:21px;margin:0 0 3px}.category-tile p{font-size:12px;margin:0;color:#e4eaf2}
.process-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.process-card{padding:28px;border:1px solid var(--line);border-radius:16px;background:#fff}.process-number{width:42px;height:42px;border-radius:12px;background:#fff0ee;color:var(--brand);display:grid;place-items:center;font-weight:900;margin-bottom:20px}.process-card h3{font-size:21px;margin:0 0 8px}.process-card p{color:var(--muted);margin:0;font-size:15px}
.newsletter-band{display:grid;grid-template-columns:1fr auto;align-items:center;gap:36px;background:var(--brand);color:#fff;padding:38px 44px;border-radius:22px}.newsletter-band h2{font-size:34px;margin:0 0 8px}.newsletter-band p{margin:0;color:#ffe8e5}.newsletter-band .button{min-width:170px}
.fact-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.16);border-radius:18px;overflow:hidden}.fact{background:var(--navy);padding:35px 25px}.fact strong{display:block;font-size:34px;color:#fff}.fact span{font-size:13px;color:#bdcbe0}
.latest-section{background:#fff}
.site-footer{background:#0b1d3b;color:#d8e2f1;padding-top:62px}
.footer-grid{display:grid;grid-template-columns:1.5fr .8fr .8fr 1.2fr;gap:48px;padding-bottom:52px}
.footer-brandline{display:flex;align-items:center;gap:11px;color:#fff;font-size:19px}.footer-brandline img{width:48px;height:48px;object-fit:contain}.footer-brand p{font-size:14px;color:#aab9ce;max-width:300px}
.site-footer h2{color:#fff;font-size:15px;margin:0 0 17px}.site-footer ul{list-style:none;padding:0;margin:0}.site-footer li{margin:8px 0;font-size:13px}.site-footer a{color:#c8d5e7}.site-footer p{color:#aab9ce;font-size:14px;line-height:1.65}.site-footer .button-light{color:var(--navy)}
.footer-bottom{border-top:1px solid rgba(255,255,255,.12);padding:20px 0;color:#b8c5d6;font-size:13px}
.not-found{text-align:center;padding:95px 20px 110px;max-width:680px}.error-code{font-size:110px;font-weight:950;line-height:1;color:#edf0f4;letter-spacing:-7px}.not-found h1{font-size:40px;line-height:1.2;margin:7px 0 15px}.not-found p{color:var(--muted);font-size:18px}.not-found .search-form{max-width:480px;margin:25px auto}.not-found .button{margin-top:10px}
.no-results{padding:34px;border:1px solid var(--line);border-radius:16px;background:var(--soft)}
@media(max-width:1050px){.site-branding{min-width:225px}.primary-navigation ul{gap:15px}.primary-navigation a{font-size:13px}.page-shell{grid-template-columns:minmax(0,1fr) 280px;gap:32px}.category-grid{grid-template-columns:repeat(2,1fr)}.footer-grid{grid-template-columns:1.3fr 1fr 1fr}.footer-grid>div:last-child{grid-column:1/-1}.hero-grid{gap:32px}.hero-photo img{height:460px}}
@media(max-width:860px){.topbar{display:none}.header-main{min-height:68px}.site-header{top:0}.header-search{margin-left:auto}.menu-toggle{display:block;order:3}.primary-navigation{display:none;position:absolute;left:0;right:0;top:68px;background:#fff;border-top:1px solid var(--line);box-shadow:var(--shadow);padding:10px 20px 18px}.primary-navigation.is-open{display:block}.primary-navigation ul{display:block}.primary-navigation a{padding:11px 0;border-bottom:1px solid var(--line)}.page-shell{grid-template-columns:1fr}.sidebar{position:static;display:grid;grid-template-columns:repeat(2,1fr)}.sidebar-note{grid-column:1/-1}.hero{padding:34px 0 48px}.hero-grid{grid-template-columns:1fr}.hero-copy h1{font-size:52px}.hero-photo img{height:420px}.deal-badge{left:18px}.card-grid-3{grid-template-columns:repeat(2,1fr)}.process-grid{grid-template-columns:1fr}.fact-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:620px){.site-container{width:min(calc(100% - 28px),var(--container))}.brand-copy strong{font-size:16px}.brand-copy small{display:none}.site-branding{min-width:0}.custom-logo-link,.brand-mark,.custom-logo,.brand-mark img{width:46px;height:46px;flex-basis:46px}.header-main{gap:10px}.header-search{display:none}.hero-copy h1{font-size:42px;letter-spacing:-2px}.hero-copy>p{font-size:17px}.hero-photo img{height:340px;border-radius:18px}.deal-badge{left:12px;right:12px;bottom:12px}.section{padding:56px 0}.section-heading{display:block}.section-heading .text-link{display:inline-block;margin-top:15px}.category-grid,.card-grid-2,.card-grid-3{grid-template-columns:1fr}.category-tile{min-height:245px}.newsletter-band{grid-template-columns:1fr;padding:28px 24px}.newsletter-band h2{font-size:28px}.fact-grid{grid-template-columns:1fr 1fr}.fact{padding:25px 18px}.fact strong{font-size:27px}.page-shell{padding-top:28px;padding-bottom:56px}.sidebar{grid-template-columns:1fr}.archive-header h1,.entry-header h1{font-size:35px;letter-spacing:-1px}.entry-deck{font-size:18px}.prose{font-size:17px}.prose h2{font-size:27px}.entry-hero{border-radius:14px}.category-header{grid-template-columns:1fr}.category-header-image{width:100%;height:180px}.footer-grid{grid-template-columns:1fr;gap:30px}.footer-grid>div:last-child{grid-column:auto}.not-found{padding-top:70px}.error-code{font-size:85px}}
