/*
Theme Name: VIGO Media
Theme URI: https://vigomedia.vn
Author: Hoàng Trọng Thuật
Author URI: https://hoangtrongthuat.com
Description: Content hub theme cho VIGO Media — magazine portal tối ưu AdSense, tone navy + gold, font Inter, vibe editorial. Chuẩn SEO + AI Mode.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vigomedia
*/

/* =========================================================
   DESIGN TOKENS — VigoAcademy navy + gold
   ========================================================= */
:root {
  --navy-900: #0A1428;
  --navy-800: #0F1B3C;
  --navy-700: #16264D;
  --navy-600: #23365F;
  --gold: #F5A623;
  --gold-600: #E0940F;
  --gold-soft: #FDF3DF;
  --blue: #2563EB;

  --bg: #FFFFFF;
  --bg-alt: #F5F6FA;
  --surface: #FFFFFF;
  --border: #E7E9F0;
  --border-strong: #D5D9E4;
  --text: #101527;
  --text-mid: #454B5E;
  --text-muted: #7B8196;

  --cat-ai: #2563EB;   --cat-ai-bg: #EAF1FF;
  --cat-auto: #0D9488;  --cat-auto-bg: #E6F6F4;
  --cat-yt: #DC2626;   --cat-yt-bg: #FDECEC;
  --cat-aff: #D97706;  --cat-aff-bg: #FBF0DD;
  --cat-news: #7C3AED; --cat-news-bg: #F1EBFE;
  --cat-default: var(--gold); --cat-default-bg: var(--gold-soft);

  --shadow-sm: 0 1px 2px rgba(15,27,60,.05);
  --shadow: 0 4px 18px rgba(15,27,60,.07);
  --shadow-lg: 0 16px 48px rgba(15,27,60,.12);
  --radius: 14px;
  --radius-sm: 9px;
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --container: 1220px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:#0A1020; --bg-alt:#0E1729; --surface:#111C33; --border:#1E2C48; --border-strong:#29395B;
    --text:#EDF0F7; --text-mid:#AEB6C9; --text-muted:#7C87A0; --gold-soft:#2A2110;
    --cat-ai-bg:#14213D; --cat-auto-bg:#0C2624; --cat-yt-bg:#2A1414; --cat-aff-bg:#2A1F0E; --cat-news-bg:#1E1533;
    --shadow-sm:0 1px 2px rgba(0,0,0,.3); --shadow:0 4px 18px rgba(0,0,0,.35); --shadow-lg:0 16px 48px rgba(0,0,0,.5);
  }
}
:root[data-theme="dark"] {
  --bg:#0A1020; --bg-alt:#0E1729; --surface:#111C33; --border:#1E2C48; --border-strong:#29395B;
  --text:#EDF0F7; --text-mid:#AEB6C9; --text-muted:#7C87A0; --gold-soft:#2A2110;
  --cat-ai-bg:#14213D; --cat-auto-bg:#0C2624; --cat-yt-bg:#2A1414; --cat-aff-bg:#2A1F0E; --cat-news-bg:#1E1533;
  --shadow-sm:0 1px 2px rgba(0,0,0,.3); --shadow:0 4px 18px rgba(0,0,0,.35); --shadow-lg:0 16px 48px rgba(0,0,0,.5);
}

/* =========================================================
   RESET / BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
h1,h2,h3,h4,h5,h6 { margin: 0; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 3px; }

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.skip-link { position:absolute; left:-9999px; }
.skip-link:focus { left:12px; top:12px; background:var(--gold); color:var(--navy-900); padding:8px 14px; border-radius:8px; z-index:200; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-badge {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--gold), var(--gold-600));
  display: grid; place-items: center; font-weight: 900; color: var(--navy-900);
  font-size: 1.15rem; box-shadow: 0 2px 8px rgba(245,166,35,.35);
}
.logo-text { font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em; color: var(--text); }
.logo-text span { color: var(--text-muted); font-weight: 600; }
.main-nav { display: flex; gap: 2px; margin-left: 6px; }
.main-nav a { padding: 8px 12px; border-radius: 8px; font-size: .9rem; font-weight: 500; color: var(--text-mid); transition: background .15s, color .15s; }
.main-nav a:hover, .main-nav .current-menu-item > a { background: var(--bg-alt); color: var(--text); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.search-toggle {
  display: flex; align-items: center; gap: 7px; padding: 7px 12px;
  border: 1px solid var(--border-strong); border-radius: 9px; color: var(--text-muted);
  font-size: .85rem; background: var(--surface); cursor: pointer; font-family: inherit;
}
.search-toggle svg { width: 15px; height: 15px; }
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 17px; border-radius: 9px; font-weight: 600; font-size: .88rem; cursor: pointer; border: none; transition: transform .12s, box-shadow .15s, background .15s; font-family: inherit; }
.btn-gold { background: var(--gold); color: var(--navy-900); box-shadow: 0 2px 10px rgba(245,166,35,.3); }
.btn-gold:hover { background: var(--gold-600); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border-strong); }
.btn-ghost:hover { background: var(--bg-alt); }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; color: var(--text); }
.menu-toggle svg { width: 24px; height: 24px; }

/* CATEGORY STRIP */
.catstrip { border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.catstrip-inner { display: flex; gap: 8px; padding: 11px 0; overflow-x: auto; scrollbar-width: none; }
.catstrip-inner::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 999px; font-size: .83rem; font-weight: 600; white-space: nowrap; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-mid); transition: border-color .15s, color .15s; }
.chip .d { width: 8px; height: 8px; border-radius: 50%; }
.chip:hover { border-color: var(--text-muted); color: var(--text); }

/* =========================================================
   LAYOUT: main + sidebar
   ========================================================= */
.layout { display: grid; grid-template-columns: 1fr 320px; gap: 38px; padding: 32px 0; align-items: start; }
.layout--full { grid-template-columns: 1fr; }

/* LEAD STORY */
.lead { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 340px; display: flex; flex-direction: column; justify-content: flex-end; padding: 32px; color: #fff; margin-bottom: 30px; background: linear-gradient(160deg, var(--navy-700), var(--navy-900)); isolation: isolate; box-shadow: var(--shadow); }
.lead::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 85% 10%, rgba(245,166,35,.30) 0%, transparent 55%), radial-gradient(90% 80% at 5% 95%, rgba(37,99,235,.28) 0%, transparent 60%); }
.lead.has-thumb::after { content:""; position:absolute; inset:0; z-index:-1; background: linear-gradient(180deg, rgba(10,20,40,.35) 0%, rgba(10,20,40,.85) 100%); }
.lead-bg { position:absolute; inset:0; z-index:-2; object-fit:cover; width:100%; height:100%; }
.badge { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 4px 11px; border-radius: 999px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 14px; background: var(--gold); color: var(--navy-900); }
.lead h1, .lead h2 { font-size: 2.15rem; line-height: 1.13; font-weight: 800; margin-bottom: 12px; }
.lead h1 a:hover, .lead h2 a:hover { color: var(--gold); }
.lead p { color: rgba(255,255,255,.82); font-size: 1rem; max-width: 80%; margin-bottom: 16px; }
.lead .meta { display: flex; gap: 14px; font-size: .82rem; color: rgba(255,255,255,.68); flex-wrap: wrap; }

/* FEED LABEL */
.feed-label { display: flex; align-items: center; gap: 11px; font-size: 1.15rem; font-weight: 800; margin: 8px 0 18px; }
.feed-label .rail { width: 5px; height: 22px; border-radius: 3px; background: var(--gold); }

/* RIVER (post list) */
.river { display: flex; flex-direction: column; }
.post-row { display: grid; grid-template-columns: 168px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.post-row:first-of-type { padding-top: 0; }
.post-thumb { height: 118px; border-radius: 11px; display: grid; place-items: center; font-size: 2.2rem; overflow: hidden; background: var(--bg-alt); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cat-tag { display: inline-block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 3px 9px; border-radius: 5px; margin-bottom: 8px; }
.post-row h3 { font-size: 1.18rem; font-weight: 700; line-height: 1.32; margin-bottom: 7px; }
.post-row:hover h3 a { color: var(--blue); }
.post-row p { font-size: .9rem; color: var(--text-muted); line-height: 1.55; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta { display: flex; align-items: center; gap: 9px; font-size: .78rem; color: var(--text-muted); flex-wrap: wrap; }
.post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-muted); }

.loadmore-wrap { text-align: center; margin-top: 26px; }

/* CARD GRID (category sections on homepage) */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .15s, box-shadow .18s, border-color .15s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.card-thumb { height: 158px; display: grid; place-items: center; font-size: 2.4rem; overflow: hidden; background: var(--bg-alt); }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 16px 17px 18px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.02rem; font-weight: 700; line-height: 1.34; margin: 9px 0 8px; }
.card:hover h3 a { color: var(--blue); }
.card-excerpt { font-size: .87rem; color: var(--text-muted); line-height: 1.55; margin-bottom: 13px; flex: 1; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }

.section-block { padding: 30px 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; gap: 16px; }
.sec-head h2 { font-size: 1.5rem; font-weight: 800; display: flex; align-items: center; gap: 11px; }
.sec-rail { width: 5px; height: 26px; border-radius: 3px; display: inline-block; background: var(--gold); }
.sec-head .more { font-size: .86rem; font-weight: 600; color: var(--text-mid); }
.sec-head .more:hover { color: var(--blue); }

/* =========================================================
   SIDEBAR
   ========================================================= */
.sidebar { position: sticky; top: 82px; display: flex; flex-direction: column; gap: 24px; }
.widget { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.widget-title, .widget h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); font-weight: 700; margin: 0 0 15px; }
.trend { display: flex; gap: 13px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.trend:last-child { border-bottom: none; padding-bottom: 0; }
.trend:first-child { padding-top: 0; }
.trend .rank { font-size: 1.25rem; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; line-height: 1.1; width: 22px; flex-shrink: 0; }
.trend h5 { font-size: .9rem; font-weight: 600; line-height: 1.35; margin: 0; }
.trend:hover h5 a { color: var(--blue); }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget ul li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.widget ul li:last-child { border-bottom: none; }

/* Newsletter widget */
.nl-box { background: linear-gradient(160deg, var(--navy-800), var(--navy-900)); color: #fff; border: none; }
.nl-box h4, .nl-box .widget-title { color: rgba(255,255,255,.55); }
.nl-box p { font-size: .88rem; color: rgba(255,255,255,.78); margin-bottom: 14px; line-height: 1.5; }
.nl-box input { width: 100%; padding: 11px 14px; border-radius: 9px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.1); color: #fff; font-size: .9rem; font-family: inherit; margin-bottom: 10px; }
.nl-box input::placeholder { color: rgba(255,255,255,.55); }
.nl-box .btn-gold { width: 100%; justify-content: center; }

/* =========================================================
   AD SLOTS
   ========================================================= */
.ad-zone { margin: 22px 0; text-align: center; }
.ad-zone--banner { min-height: 100px; }
.ad-zone--sidebar { min-height: 600px; }
.ad-zone .ad-label { font-size: .62rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-muted); font-weight: 600; margin-bottom: 6px; }
.ad-zone .ad-inner { display: grid; place-items: center; border: 1px dashed var(--border-strong); border-radius: var(--radius); background: var(--bg-alt); min-height: inherit; padding: 16px; color: var(--text-muted); font-size: .82rem; }
.ad-zone.is-live .ad-inner { border: none; background: transparent; padding: 0; min-height: 0; }

/* =========================================================
   SINGLE POST
   ========================================================= */
.single-header { max-width: 760px; margin: 0 auto; padding: 36px 0 8px; }
.single-header .cat-tag { margin-bottom: 14px; }
.single-title { font-size: 2.4rem; line-height: 1.15; font-weight: 800; margin-bottom: 16px; }
.single-meta { display: flex; align-items: center; gap: 12px; font-size: .88rem; color: var(--text-muted); flex-wrap: wrap; }
.single-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-muted); }
.author-avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg,var(--gold),var(--gold-600)); display: grid; place-items: center; color: var(--navy-900); font-weight: 800; font-size: .85rem; }
.single-featured { max-width: 900px; margin: 24px auto 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

/* TABLE OF CONTENTS */
.toc-box { max-width: 760px; margin: 26px auto 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-alt); overflow: hidden; }
.toc-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; background: none; border: none; cursor: pointer; font-family: inherit; color: var(--text); }
.toc-title { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; display: flex; align-items: center; gap: 8px; }
.toc-title::before { content: ""; width: 4px; height: 15px; border-radius: 2px; background: var(--gold); display: inline-block; }
.toc-caret { color: var(--text-muted); transition: transform .2s; font-size: .9rem; }
.toc-box.collapsed .toc-caret { transform: rotate(-90deg); }
.toc-list { list-style: none; margin: 0; padding: 4px 18px 16px; display: block; }
.toc-box.collapsed .toc-list { display: none; }
.toc-list li { margin: 0; }
.toc-list a { display: block; padding: 6px 0 6px 14px; font-size: .92rem; color: var(--text-mid); border-left: 2px solid var(--border-strong); line-height: 1.4; transition: color .15s, border-color .15s; }
.toc-list a:hover { color: var(--blue); border-left-color: var(--blue); }
.toc-list .toc-h3 a { padding-left: 30px; font-size: .88rem; color: var(--text-muted); }
.toc-list a.toc-active { color: var(--blue); border-left-color: var(--gold); font-weight: 600; }
.entry-content :is(h2,h3)[id] { scroll-margin-top: 84px; }

.entry-content { max-width: 760px; margin: 0 auto; padding: 28px 0 40px; font-size: 1.08rem; line-height: 1.75; color: var(--text-mid); }
.entry-content > * + * { margin-top: 1.3em; }
.entry-content h2 { font-size: 1.6rem; font-weight: 800; color: var(--text); margin-top: 1.8em; }
.entry-content h3 { font-size: 1.28rem; font-weight: 700; color: var(--text); margin-top: 1.5em; }
.entry-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.entry-content strong { color: var(--text); font-weight: 700; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li { margin-top: .5em; }
.entry-content img, .entry-content figure { border-radius: var(--radius); overflow: hidden; }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption { font-size: .82rem; color: var(--text-muted); text-align: center; margin-top: 8px; }
.entry-content blockquote { border-left: 4px solid var(--gold); padding: 4px 0 4px 20px; margin: 1.6em 0; color: var(--text); font-style: italic; }
.entry-content pre { background: var(--navy-900); color: #E8ECF5; padding: 18px 20px; border-radius: var(--radius); overflow-x: auto; font-size: .9rem; line-height: 1.6; }
.entry-content code { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .88em; background: var(--bg-alt); padding: .12em .35em; border-radius: 4px; }
.entry-content pre code { background: none; padding: 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: .95rem; }
.entry-content th, .entry-content td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; }
.entry-content th { background: var(--bg-alt); font-weight: 700; color: var(--text); }
.entry-content table tr:nth-child(even) td { background: var(--bg-alt); }

.single-tags { max-width: 760px; margin: 0 auto; padding: 18px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.single-tags a { font-size: .8rem; padding: 5px 12px; border-radius: 999px; background: var(--bg-alt); color: var(--text-mid); border: 1px solid var(--border); }
.single-tags a:hover { border-color: var(--text-muted); }

.author-box { max-width: 760px; margin: 24px auto; display: flex; gap: 18px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-alt); }
.author-box .av { width: 60px; height: 60px; border-radius: 50%; flex-shrink: 0; background: linear-gradient(135deg,var(--gold),var(--gold-600)); display: grid; place-items: center; color: var(--navy-900); font-weight: 800; font-size: 1.4rem; }
.author-box h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 5px; color: var(--text); }
.author-box p { font-size: .88rem; color: var(--text-muted); line-height: 1.55; }

.related { padding: 30px 0; border-top: 1px solid var(--border); }

/* =========================================================
   ARCHIVE HEADER
   ========================================================= */
.archive-hero { padding: 34px 0 8px; }
.archive-hero h1 { font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.archive-hero p { color: var(--text-muted); font-size: .95rem; max-width: 620px; }
.archive-hero .rail { width: 44px; height: 5px; border-radius: 3px; background: var(--gold); margin-bottom: 16px; }

/* PAGINATION */
.pagination { display: flex; gap: 6px; justify-content: center; padding: 30px 0; flex-wrap: wrap; }
.pagination .page-numbers { padding: 8px 14px; border-radius: 9px; border: 1px solid var(--border); font-size: .9rem; font-weight: 600; color: var(--text-mid); background: var(--surface); }
.pagination .page-numbers.current { background: var(--gold); color: var(--navy-900); border-color: var(--gold); }
.pagination a.page-numbers:hover { border-color: var(--text-muted); color: var(--text); }

/* =========================================================
   NEWSLETTER STRIP (full width)
   ========================================================= */
.newsletter { margin: 40px 0; border-radius: 20px; padding: 44px 40px; text-align: center; background: radial-gradient(90% 140% at 15% 0%, rgba(245,166,35,.16), transparent 60%), linear-gradient(135deg, var(--navy-800), var(--navy-900)); color: #fff; box-shadow: var(--shadow-lg); }
.newsletter h2 { font-size: 1.85rem; font-weight: 800; margin-bottom: 10px; }
.newsletter h2 span { color: var(--gold); }
.newsletter p { color: rgba(255,255,255,.8); max-width: 460px; margin: 0 auto 22px; }
.nl-form { display: flex; gap: 10px; max-width: 440px; margin: 0 auto; }
.nl-form input { flex: 1; padding: 12px 16px; border-radius: 10px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.1); color: #fff; font-size: .92rem; font-family: inherit; }
.nl-form input::placeholder { color: rgba(255,255,255,.55); }
.nl-note { font-size: .76rem; color: rgba(255,255,255,.55); margin-top: 14px; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.72); padding: 46px 0 26px; margin-top: 24px; }
.foot-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.1); }
.foot-brand .logo-text { color: #fff; }
.foot-brand p { font-size: .86rem; line-height: 1.6; margin-top: 12px; max-width: 280px; color: rgba(255,255,255,.6); }
.foot-col h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: rgba(255,255,255,.45); margin-bottom: 14px; font-weight: 700; }
.foot-col a { display: block; font-size: .88rem; padding: 5px 0; color: rgba(255,255,255,.72); transition: color .15s; }
.foot-col a:hover { color: var(--gold); }
.foot-bot { padding-top: 22px; display: flex; justify-content: space-between; font-size: .8rem; color: rgba(255,255,255,.5); flex-wrap: wrap; gap: 10px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .widget { flex: 1; min-width: 240px; }
  .ad-zone--sidebar { min-height: 280px; width: 100%; flex-basis: 100%; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-open .main-nav { display: flex; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--border); padding: 12px 24px; gap: 4px; box-shadow: var(--shadow); }
  .mobile-open .main-nav ul { flex-direction: column; }
}
@media (max-width: 620px) {
  .post-row { grid-template-columns: 1fr; }
  .post-thumb { height: 180px; }
  .card-grid { grid-template-columns: 1fr; }
  .lead h1, .lead h2 { font-size: 1.6rem; }
  .lead p { max-width: 100%; }
  .single-title { font-size: 1.7rem; }
  .entry-content { font-size: 1rem; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .search-toggle { display: none; }
  .sidebar { flex-direction: column; }
  .newsletter { padding: 34px 22px; }
  .nl-form { flex-direction: column; }
  .foot-bot { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
