/*
MagazinesWorld -- main stylesheet.
Designed and developed by Compare SEO.

Design tokens are CSS variables. The Customizer overrides them at runtime
(see mw_inline_css_vars in functions.php): brand colors, body link colors,
H1-H6 / body / menu font sizes, and per-template content widths.
*/

/* ---------- Tokens ---------- */
:root {
  --brand-1: #6D28D9;
  --brand-2: #8B5CF6;
  --brand-3: #2563EB;
  --accent: #F59E0B;
  --grad: linear-gradient(120deg, var(--brand-1), var(--brand-3));
  --bg: #F7F7FA;
  --surface: #FFFFFF;
  --surface-2: #F1F0F6;
  --text: #1E1B2E;
  --text-2: #5B5870;
  --text-3: #8B889C;
  --border: #E7E5EF;
  --radius: 12px;
  --maxw: 1240px;
  --home-w: 92%;
  --post-w: 94%;
  --page-w: 94%;
  --link-color: #2563EB;
  --link-hover: #D97706;
  --fs-h1: 38px;
  --fs-h2: 27px;
  --fs-h3: 22px;
  --fs-h4: 19px;
  --fs-h5: 16px;
  --fs-h6: 14px;
  --fs-body: 17px;
  --fs-menu: 15px;
  --dark-bg: #17132B;
  --nl-grad: linear-gradient(135deg, #241C4D, #1A2A5C);
  --shadow-sm: 0 1px 2px rgba(20,15,45,.05), 0 4px 12px rgba(20,15,45,.05);
  --shadow-md: 0 2px 6px rgba(20,15,45,.07), 0 12px 28px rgba(20,15,45,.08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .45em; line-height: 1.25; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--brand-1); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Containers & per-template widths ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
body.home .container,
body.front-page .container { max-width: min(1700px, var(--home-w)); }
body.single-post .container { max-width: min(1700px, var(--post-w)); }
body.page .container { max-width: min(1700px, var(--page-w)); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 999px; font-weight: 700; font-size: 14px;
  border: 1px solid transparent; cursor: pointer; font-family: var(--font);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); opacity: .95; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 4px 12px rgba(78,52,199,.3); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-sm { padding: 9px 18px; font-size: 13.5px; }

/* ---------- Topbar ---------- */
.topbar { background: var(--dark-bg); color: rgba(255,255,255,.75); font-size: 13px; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 38px; }
.topbar a { color: rgba(255,255,255,.85); }
.topbar-msg { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; overflow: hidden; }
.tb-dot { width: 7px; height: 7px; border-radius: 50%; background: #72BC8F; flex: 0 0 auto; }
.tb-date { color: rgba(255,255,255,.55); margin-left: 10px; }
.topbar-right { display: flex; gap: 14px; flex: 0 0 auto; }
.topbar-right .soc:hover { color: #fff; }

/* ---------- Header ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo {
  display: flex; align-items: center; gap: 11px;
  font-weight: 800; font-size: 21px; letter-spacing: -.02em; color: var(--text);
  flex: 0 0 auto; margin: 0; padding: 0;
}
.logo .custom-logo { max-height: 48px; width: auto; display: block; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 10px; background: var(--grad); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800; box-shadow: 0 4px 10px rgba(109,40,217,.35);
}
.main-nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: nowrap; }
.main-nav a, .main-nav li a {
  display: inline-block; padding: 8px 13px; border-radius: 8px;
  font-size: var(--fs-menu); font-weight: 600; color: var(--text-2); white-space: nowrap;
}
.main-nav a:hover { background: var(--surface-2); color: var(--text); }
.main-nav .current-menu-item > a, .main-nav a.active { background: #EDE6FB; color: var(--brand-1); }
.main-nav li { list-style: none; display: inline-block; }
.header-actions { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--text-2); cursor: pointer; user-select: none;
}
.icon-btn:hover { background: var(--surface-2); }
.hamburger { display: none; }
.switch {
  width: 46px; height: 26px; border-radius: 999px; background: var(--surface-2);
  border: 1px solid var(--border); position: relative; cursor: pointer; flex: 0 0 auto;
}
.switch .knob {
  width: 20px; height: 20px; border-radius: 50%; background: var(--grad);
  position: absolute; top: 2px; left: 2px; transition: left .2s ease;
}
body.dark .switch .knob { left: 22px; }
.mobile-nav { display: none; border-top: 1px solid var(--border); background: var(--surface); padding: 10px 20px 16px; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 10px 8px; font-weight: 600; color: var(--text-2); border-bottom: 1px solid var(--border); font-size: var(--fs-menu); }
.mobile-nav li { list-style: none; }
.mobile-nav ul { padding: 0; margin: 0; }

/* ---------- Search popup ---------- */
.search-pop {
  display: none; position: fixed; inset: 0; background: rgba(23,19,43,.6);
  z-index: 300; backdrop-filter: blur(3px); padding: 90px 20px 0;
}
.search-pop.open { display: block; }
.search-box { max-width: 560px; margin: 0 auto; background: var(--surface); border-radius: 14px; padding: 22px; box-shadow: var(--shadow-md); }
.mw-search-form input[type="text"] {
  width: 100%; padding: 13px 16px; border-radius: 10px; border: 1px solid var(--border);
  font-size: 16px; font-family: var(--font); background: var(--bg); color: var(--text);
}
.search-box .hint { font-size: 12px; color: var(--text-3); margin-top: 10px; text-align: center; }

/* ---------- Reading progress ---------- */
.progress-wrap { position: sticky; top: 72px; z-index: 99; height: 3px; background: transparent; }
.progress-bar { height: 3px; width: 0; background: var(--grad); }

/* ---------- Category tag badges ---------- */
.tag {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: #fff; background: var(--brand-1); margin-bottom: 10px;
}
.tag.on-image { position: absolute; top: 12px; left: 12px; z-index: 2; margin: 0; box-shadow: 0 2px 8px rgba(0,0,0,.25); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
  position: relative;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card .thumb { display: block; position: relative; overflow: hidden; aspect-ratio: 16/10; background: var(--surface-2); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.card:hover .thumb img { transform: scale(1.04); }
.thumb-art { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 42px; }
.meta-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-3); flex-wrap: wrap; }
.meta-row .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-3); display: inline-block; }

/* ---------- Hero ---------- */
.hero-section { padding: 28px 32px 8px; }
.hero-grid { display: grid; grid-template-columns: 1.9fr 1fr; gap: 22px; align-items: stretch; }
.hero-card .thumb { aspect-ratio: 2/1; }
.hero-body { padding: 22px 24px 24px; }
.hero-body h1 { font-size: 28px; letter-spacing: -.015em; margin-bottom: 10px; }
.hero-body h1 a { color: var(--text); }
.hero-body h1 a:hover { color: var(--brand-1); }
.hero-body p { color: var(--text-2); font-size: 15.5px; margin-bottom: 14px; }
.hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: 22px; }
.side-card .thumb { aspect-ratio: 16/9; }
.side-body { padding: 14px 16px 16px; }
.side-body h3 { font-size: 16px; margin-bottom: 8px; }
.side-body h3 a:hover { color: var(--brand-1); }

/* ---------- Category pills strip ---------- */
.cats-strip { padding: 22px 32px 4px; }
.cats-scroll { display: flex; gap: 10px; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--border);
  font-size: 14px; font-weight: 600; color: var(--text-2); transition: all .15s ease;
}
.pill:hover { border-color: var(--brand-1); color: var(--brand-1); }
.pill .count { font-size: 12px; color: var(--text-3); background: var(--surface-2); border-radius: 999px; padding: 1px 8px; }

/* ---------- Main layout (content + sidebar) ---------- */
.layout { display: grid; grid-template-columns: 1fr 324px; gap: 36px; padding-top: 26px; padding-bottom: 26px; align-items: start; }

/* ---------- Section heads ---------- */
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.section-head h2 { display: flex; align-items: center; gap: 12px; font-size: 23px; letter-spacing: -.01em; margin: 0; }
.section-head .bar { width: 5px; height: 24px; border-radius: 3px; background: var(--grad); display: inline-block; }
.view-all { font-size: 14px; font-weight: 700; color: var(--brand-1); }
.view-all:hover { color: var(--brand-3); }

/* ---------- Latest Articles grid ---------- */
.grid-3 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.post-card .body { padding: 16px 18px 18px; }
.post-card h3 { font-size: 17.5px; margin-bottom: 8px; }
.post-card h3 a:hover { color: var(--brand-1); }
.post-card .excerpt { font-size: 14px; color: var(--text-2); margin-bottom: 12px; }

/* ---------- Trending Now ---------- */
.trending-section { margin-top: 44px; }
.trend-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.trend-row {
  display: grid; grid-template-columns: auto 108px 1fr; gap: 16px; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
}
.trend-row:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.trend-num {
  font-size: 30px; font-weight: 800; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.trend-thumb { display: block; width: 108px; height: 84px; border-radius: 9px; overflow: hidden; background: var(--surface-2); }
.trend-thumb img, .trend-thumb .thumb-art { width: 100%; height: 100%; object-fit: cover; font-size: 28px; }
.trend-body h4 { font-size: 15.5px; margin-bottom: 6px; }
.trend-body h4 a:hover { color: var(--brand-1); }
.trend-excerpt { font-size: 13px; color: var(--text-2); margin: 0 0 8px; }

/* ---------- Homepage CTA banner ---------- */
.home-cta-wrap { padding-bottom: 44px; }
.cta-banner {
  background: var(--grad); border-radius: 14px; padding: 30px 34px; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  box-shadow: var(--shadow-md); margin: 26px 0;
}
.cta-banner h3 { font-size: 21px; margin-bottom: 4px; color: #fff; }
.cta-banner p { margin: 0; font-size: 14.5px; color: rgba(255,255,255,.88); }
.cta-banner .btn { background: #fff; color: var(--brand-1); flex: 0 0 auto; }

/* ---------- Sidebar & widgets ---------- */
.sidebar, .side-inner { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 92px; }
.widget {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow-sm);
}
.widget > h4, .widget > h5 {
  display: flex; align-items: center; gap: 10px; font-size: 15.5px; margin-bottom: 16px;
}
.widget > h4::before, .widget > h5::before {
  content: ""; width: 4px; height: 18px; border-radius: 2px; background: var(--grad);
}
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.widget li:last-child { border-bottom: none; }
.widget li a { color: var(--text-2); font-weight: 600; }
.widget li a:hover { color: var(--brand-1); }
.pop-row { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--border); }
.pop-row:last-child { border-bottom: none; }
.pop-thumb { width: 64px; height: 52px; border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 20px; background: var(--surface-2); }
.pop-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pop-row h5 { font-size: 13.5px; margin: 0 0 4px; line-height: 1.35; }
.pop-row h5 a:hover { color: var(--brand-1); }
.widget.newsletter-box { background: var(--nl-grad); border: none; color: #fff; }
.widget.newsletter-box > h4 { color: #fff; }
.widget.newsletter-box > h4::before { background: var(--accent); }
.widget.newsletter-box p { font-size: 13.5px; color: rgba(255,255,255,.8); }
.widget.newsletter-box input[type="email"] {
  width: 100%; padding: 11px 14px; border-radius: 8px; border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08); color: #fff; font-size: 14px; margin-bottom: 10px; font-family: var(--font);
}
.widget.newsletter-box input::placeholder { color: rgba(255,255,255,.5); }
.widget.newsletter-box .btn { width: 100%; background: #fff; color: var(--brand-1); border-radius: 8px; }
.ad-slot {
  border: 2px dashed var(--border); border-radius: 10px; padding: 34px 16px;
  text-align: center; color: var(--text-3); font-size: 13px; background: var(--surface-2);
}
.toc-list { list-style: none; padding: 0; margin: 0; }
.toc-list li { border-bottom: none !important; padding: 0 !important; }
.toc-list a {
  display: block; padding: 8px 12px; border-left: 3px solid transparent;
  font-size: 13.5px; color: var(--text-2); font-weight: 600; border-radius: 0 8px 8px 0;
}
.toc-list a:hover { color: var(--brand-1); background: var(--surface-2); }
.toc-list a.active { color: var(--brand-1); border-left-color: var(--brand-1); background: #F4EFFD; }
.toc-list .toc-h3 a { padding-left: 26px; font-weight: 500; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 13px; color: var(--text-3); margin: 20px 0 18px; }
.breadcrumb a { color: var(--text-2); font-weight: 600; }
.breadcrumb a:hover { color: var(--brand-1); }
.breadcrumb span { margin: 0 2px; }

/* ---------- Single post ---------- */
.post-layout { display: grid; grid-template-columns: 1fr 324px; gap: 40px; align-items: start; padding-bottom: 60px; }
.post-layout > main { min-width: 0; }
.post-header { margin-bottom: 20px; }
.post-header h1 { font-size: var(--fs-h1); letter-spacing: -.018em; margin: 8px 0 14px; }
.post-header .meta-row { font-size: 13.5px; gap: 10px; color: var(--text-2); }
.post-header .avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px;
}
.date-badge { background: var(--surface-2); border-radius: 999px; padding: 2px 10px; font-size: 12px; color: var(--text-2); }
.share-inline { display: flex; gap: 8px; margin-top: 16px; }
.share-inline a, .share-rail a {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-2); display: inline-flex; align-items: center;
  justify-content: center; font-size: 13px; font-weight: 700;
}
.share-inline a:hover, .share-rail a:hover { background: var(--brand-1); color: #fff; border-color: var(--brand-1); }
.share-rail { position: fixed; left: 18px; top: 40%; display: flex; flex-direction: column; gap: 8px; z-index: 60; }
.feat-image { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); margin: 4px 0 10px; }
.feat-image img { width: 100%; display: block; }
.img-caption { font-size: 12.5px; color: var(--text-3); text-align: center; margin: 8px 0 0; font-style: italic; }

/* Quick Answer callout */
.callout {
  background: linear-gradient(135deg, #F4EFFD, #EBF1FD);
  border-left: 4px solid; border-image: linear-gradient(180deg, var(--brand-1), var(--brand-3)) 1;
  border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 22px; margin: 24px 0;
}
.callout .eyebrow {
  font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-1); margin-bottom: 6px;
}
.callout .eyebrow::before { content: "\2726  "; }
.callout p { margin: 0; font-size: 15px; color: var(--text); }

/* Content body typography (Customizer-driven) */
.content-body { font-size: var(--fs-body); color: var(--text); }
.content-body h1 { font-size: var(--fs-h1); }
.content-body h2 {
  font-size: var(--fs-h2); margin: 1.7em 0 .7em; padding-bottom: 10px;
  border-bottom: 1px solid var(--border); position: relative;
}
.content-body h2::after {
  content: ""; position: absolute; left: 0; bottom: -1px; width: 56px; height: 3px;
  border-radius: 2px; background: var(--grad);
}
.content-body h3 { font-size: var(--fs-h3); margin: 1.5em 0 .6em; }
.content-body h4 { font-size: var(--fs-h4); margin: 1.4em 0 .5em; }
.content-body h5 { font-size: var(--fs-h5); margin: 1.3em 0 .5em; }
.content-body h6 { font-size: var(--fs-h6); margin: 1.3em 0 .5em; text-transform: uppercase; letter-spacing: .04em; }
.content-body a { color: var(--link-color); text-decoration: underline; text-underline-offset: 2px; }
.content-body a:hover { color: var(--link-hover); }
.content-body img { border-radius: var(--radius); }
.content-body figure { margin: 1.4em 0; }
.content-body figcaption { font-size: 12.5px; color: var(--text-3); text-align: center; margin-top: 8px; }
.content-body blockquote {
  margin: 1.5em 0; padding: 16px 22px; background: var(--surface); border-left: 4px solid var(--brand-1);
  border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--shadow-sm); font-style: italic; color: var(--text-2);
}
.content-body ul, .content-body ol { padding-left: 26px; }
.content-body li { margin-bottom: .45em; }
.content-body code { background: var(--surface-2); border-radius: 5px; padding: 2px 7px; font-size: .88em; }
.content-body pre { background: var(--dark-bg); color: #E8E6F2; border-radius: var(--radius); padding: 18px 20px; overflow-x: auto; font-size: 14px; }
.content-body pre code { background: none; padding: 0; }

/* Beautiful tables */
.content-body table, .mw-table {
  width: 100%; border-collapse: separate; border-spacing: 0; margin: 1.6em 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); font-size: .92em;
}
.content-body table th, .mw-table th {
  background: var(--grad); color: #fff; text-align: left; padding: 12px 16px;
  font-size: .88em; letter-spacing: .03em; border: none;
}
.content-body table td, .mw-table td { padding: 12px 16px; border-top: 1px solid var(--border); }
.content-body table tr:nth-child(even) td { background: var(--surface-2); }

/* Pros & Cons */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 28px 0; }
.pc-box { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm); }
.pc-box h4 { margin: 0; padding: 12px 18px; color: #fff; font-size: 15px; }
.pc-box.pros h4 { background: #2F8A5B; }
.pc-box.pros h4::before { content: "\2713  "; }
.pc-box.cons h4 { background: #E05B4D; }
.pc-box.cons h4::before { content: "\2715  "; }
.pc-box ul { list-style: none; margin: 0; padding: 12px 18px; }
.pc-box li { padding: 7px 0 7px 24px; position: relative; font-size: 14.5px; border-bottom: 1px dashed var(--border); }
.pc-box li:last-child { border-bottom: none; }
.pc-box.pros li::before { content: "\2713"; color: #2F8A5B; position: absolute; left: 0; font-weight: 700; }
.pc-box.cons li::before { content: "\2715"; color: #E05B4D; position: absolute; left: 0; font-weight: 700; }

/* In-content ad */
.ad-inline { margin: 26px 0; }

/* Review box */
.review-box {
  background: var(--nl-grad); color: #fff; border-radius: 14px; padding: 26px 28px;
  display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center;
  margin: 28px 0; box-shadow: var(--shadow-md);
}
.review-score {
  width: 84px; height: 84px; border-radius: 50%; background: var(--grad);
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  font-size: 24px; font-weight: 800; box-shadow: 0 6px 16px rgba(109,40,217,.45);
}
.review-stars { color: var(--accent); font-size: 16px; letter-spacing: 3px; margin-bottom: 6px; }
.review-box p { color: rgba(255,255,255,.85); font-size: 14.5px; margin-bottom: 14px; }
.review-box .btn { background: #fff; color: var(--brand-1); }

/* FAQ accordion */
.faq-section { margin: 34px 0; }
.faq-section > h2 { font-size: var(--fs-h2); margin-bottom: 18px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 12px; overflow: hidden; box-shadow: var(--shadow-sm);
}
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 20px; cursor: pointer; }
.faq-q h3 { font-size: 15.5px; margin: 0; }
.faq-q .plus { font-size: 20px; font-weight: 700; color: var(--brand-1); transition: transform .2s ease; flex: 0 0 auto; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-item.open .faq-q h3 { color: var(--brand-1); }
.faq-a { display: none; padding: 0 20px 16px; color: var(--text-2); font-size: 14.5px; }
.faq-item.open .faq-a { display: block; }

/* Author E-E-A-T box */
.author-box {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; display: grid; grid-template-columns: auto 1fr; gap: 20px;
  margin: 32px 0; box-shadow: var(--shadow-sm);
}
.author-box .avatar {
  width: 64px; height: 64px; border-radius: 50%; background: var(--grad); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800;
}
.author-box h4 { margin: 2px 0 2px; font-size: 17px; }
.author-box .role { font-size: 13px; font-weight: 700; color: var(--brand-1); margin-bottom: 8px; }
.author-box p { font-size: 14px; color: var(--text-2); margin-bottom: 10px; }
.eeat-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.eeat-badge { background: var(--surface-2); border-radius: 999px; padding: 3px 12px; font-size: 11.5px; font-weight: 700; color: var(--text-2); }
.author-box .social-row { display: flex; gap: 8px; }
.author-box .social-row a {
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--text-2);
}
.author-box .social-row a:hover { background: var(--brand-1); color: #fff; border-color: var(--brand-1); }

/* Related posts */
.related-section { margin-top: 36px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-grid .card { padding-bottom: 14px; }
.related-grid .card h4 { font-size: 14.5px; margin: 12px 16px 8px; }
.related-grid .card h4 a:hover { color: var(--brand-1); }
.related-grid .card .meta-row { padding: 0 16px; }

/* ---------- Internal pages ---------- */
.page-hero {
  background: var(--nl-grad); color: #fff; padding: 46px 0 50px; text-align: center;
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; inset: auto -10% -60% -10%; height: 120px;
  background: var(--grad); filter: blur(90px); opacity: .5;
}
.page-hero .breadcrumb { color: rgba(255,255,255,.6); margin: 0 0 12px; }
.page-hero .breadcrumb a { color: rgba(255,255,255,.85); }
.page-hero h1 { font-size: var(--fs-h1); letter-spacing: -.015em; margin: 0 0 8px; color: #fff; }
.page-hero .page-sub { margin: 0 auto; max-width: 640px; color: rgba(255,255,255,.75); font-size: 16px; }
.page-container { padding: 40px 32px 64px; }
.page-container .feat-image { margin-bottom: 28px; }

/* ---------- Archives / search ---------- */
.archive-description { color: var(--text-2); margin-bottom: 20px; max-width: 720px; }
.page-numbers {
  display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px;
  padding: 0 8px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface);
  font-size: 14px; font-weight: 700; color: var(--text-2); margin-right: 6px;
}
.page-numbers.current, .page-numbers:hover { background: var(--grad); color: #fff; border-color: transparent; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark-bg); color: rgba(255,255,255,.78); margin-top: 30px; }
.footer-accent { height: 4px; background: var(--grad); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 44px; padding: 54px 0 42px; }
.f-col h4, .f-col h5 { color: #fff; font-size: 15px; margin-bottom: 18px; }
.f-col p { font-size: 14px; line-height: 1.7; margin: 0 0 18px; color: rgba(255,255,255,.65); }
.f-col ul { list-style: none; margin: 0; padding: 0; }
.f-col li { margin-bottom: 11px; }
.f-col li a, .f-col a { font-size: 14px; color: rgba(255,255,255,.72); }
.f-col li a:hover, .f-col a:hover { color: #fff; }
.f-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: #fff; margin-bottom: 16px; }
.f-logo .mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--grad); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800;
}
.f-logo .custom-logo { max-height: 40px; width: auto; }
.f-socials { display: flex; gap: 10px; }
.f-socials a {
  width: 38px; height: 38px; border-radius: 9px; background: rgba(255,255,255,.09);
  display: inline-flex; align-items: center; justify-content: center; font-size: 14px; color: rgba(255,255,255,.85);
}
.f-socials a:hover { background: var(--brand-1); color: #fff; }
.f-nl input[type="email"] {
  width: 100%; padding: 11px 14px; border-radius: 8px; border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.07); color: #fff; font-size: 14px; margin-bottom: 10px; font-family: var(--font);
}
.f-nl input::placeholder { color: rgba(255,255,255,.45); }
.f-nl .btn { width: 100%; border-radius: 8px; }
.f-contact { font-size: 13.5px; color: rgba(255,255,255,.6); margin-top: 14px; line-height: 1.8; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; }
.footer-bottom .container { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: rgba(255,255,255,.55); gap: 12px; flex-wrap: wrap; }
.footer-bottom a { color: rgba(255,255,255,.75); }
/* Footer widget areas inherit the dark styling */
.f-col .widget { background: transparent; border: none; box-shadow: none; padding: 0; margin-bottom: 22px; }
.f-col .widget > h4::before, .f-col .widget > h5::before { background: var(--accent); }
.f-col .widget li { border-bottom: none; padding: 5px 0; }
.f-col .widget li a { color: rgba(255,255,255,.72); }
.f-col .widget.newsletter-box { background: transparent; }

/* ---------- Back to top / sticky ad ---------- */
.back-top {
  position: fixed; right: 22px; bottom: 22px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 18px; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s ease;
  box-shadow: var(--shadow-md); z-index: 150;
}
.back-top.show { opacity: 1; pointer-events: auto; }
.sticky-mobile-ad {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: var(--surface); border-top: 1px solid var(--border); padding: 10px 16px;
  align-items: center; justify-content: space-between; gap: 12px;
}

/* ---------- Dark mode ---------- */
body.dark {
  --bg: #14111F;
  --surface: #1E1930;
  --surface-2: #292342;
  --text: #EDEBF6;
  --text-2: #B6B2C9;
  --text-3: #8B879F;
  --border: #322B4D;
}
body.dark .site-header, body.dark .mobile-nav { background: #1A1529; }
body.dark .callout { background: linear-gradient(135deg, #2A2344, #22284A); }
body.dark .toc-list a.active { background: #2A2344; }
body.dark .main-nav .current-menu-item > a, body.dark .main-nav a.active { background: #2A2344; }
body.dark .content-body table tr:nth-child(even) td { background: #241E3B; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1.6fr 1fr; }
  .layout, .post-layout { grid-template-columns: 1fr 300px; gap: 26px; }
  .share-rail { display: none; }
}
@media (max-width: 980px) {
  .container { padding: 0 22px; }
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .header-actions { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .layout, .post-layout { grid-template-columns: 1fr; }
  .sidebar, .side-inner { position: static; }
  .trend-list { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .progress-wrap { top: 62px; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .tb-date, .topbar-right { display: none; }
  .header-inner { gap: 12px; height: 62px; }
  .logo { font-size: 17px; }
  .logo-mark { width: 32px; height: 32px; border-radius: 8px; font-size: 12px; }
  .header-actions { gap: 8px; }
  .icon-btn { width: 36px; height: 36px; }
  .switch { display: none; }
  .btn-sm { padding: 8px 13px; font-size: 12.5px; }
  .hero-section, .cats-strip { padding-left: 16px; padding-right: 16px; }
  .hero-side { grid-template-columns: 1fr; }
  .hero-body h1 { font-size: 22px; }
  .grid-3 { grid-template-columns: 1fr; }
  .pros-cons { grid-template-columns: 1fr; }
  .review-box { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .author-box { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .related-grid { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; text-align: center; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
  .trend-row { grid-template-columns: auto 86px 1fr; padding: 13px; }
  .trend-thumb { width: 86px; height: 68px; }
  .post-header h1 { font-size: calc(var(--fs-h1) * .72); }
  .page-hero h1 { font-size: calc(var(--fs-h1) * .78); }
  .content-body h2 { font-size: calc(var(--fs-h2) * .88); }
  .sticky-mobile-ad { display: flex; }
}

/* ---------- Ad zones (v2.1) ---------- */
.ad-zone { text-align: center; margin: 18px auto; }
.ad-zone-header { margin: 14px auto 4px; }
.ad-zone-footer { margin: 10px auto 20px; }
.ad-between { margin: 26px 0; }
.anchor-ad { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--surface); border-top: 1px solid var(--border); padding: 8px 44px 8px 12px; text-align: center; box-shadow: 0 -6px 18px rgba(0,0,0,.08); }
.anchor-ad #anchorAdClose { position: absolute; top: 6px; right: 10px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2); cursor: pointer; font-size: 15px; line-height: 1; }
@media (max-width: 600px) {
  .anchor-ad { display: none; }
}

/* ---------- Accessibility (v2.1) ---------- */
a:focus-visible, button:focus-visible, [role="button"]:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--brand-3); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Print (v2.1) ---------- */
@media print {
  .topbar, .site-header, .mobile-nav, .search-pop, .icon-btn, .switch, .subscribe-btn,
  .ad-zone, .anchor-ad, .sticky-mobile-ad, .share-rail, .back-top, .site-footer,
  .sidebar, .newsletter, .cta-banner, #progressBar { display: none !important; }
  body { background: #fff; color: #000; }
  .layout, .hero-grid { display: block; }
  .container { max-width: 100% !important; padding: 0; }
  .card { box-shadow: none; border: 1px solid #ddd; page-break-inside: avoid; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 11px; color: #555; }
}

/* ---------- "Also read" internal link box (v2.2) ---------- */
.mw-also-read { margin: 26px 0; padding: 16px 18px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); border-left: 4px solid var(--brand-3); }
.mw-also-read .mw-ar-label { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-1); }
.mw-also-read ul { margin: 0; padding: 0; list-style: none; }
.mw-also-read li { position: relative; margin: 0 0 6px; padding-left: 20px; line-height: 1.55; }
.mw-also-read li:last-child { margin-bottom: 0; }
.mw-also-read li::before { content: "\2192"; position: absolute; left: 0; top: 0; color: var(--brand-3); font-weight: 700; }
.mw-also-read a { color: var(--link-color); font-weight: 600; text-decoration: none; border-bottom: 1px solid transparent; }
.mw-also-read a:hover { color: var(--link-hover); border-bottom-color: var(--link-hover); }
.mw-also-read .mw-ar-note { color: var(--text-2); font-weight: 400; }
@media (max-width: 600px) {
  .mw-also-read { padding: 14px; }
}

/* ---------- Share rail overlap guard (v2.2.1) ----------
   The floating rail is fixed to the viewport edge. With wide content widths
   (92-94%) there is no free gutter on normal laptop screens, so only show it
   when the viewport is genuinely wide enough to keep it clear of the article. */
.share-rail { left: max(18px, calc((100vw - var(--post-w, 94%)) / 2 - 58px)); }
@media (max-width: 1500px) {
  .share-rail { display: none; }
}
