/*
Theme Name: Ecommerce Academia Modern Commerce Lab
Theme URI: https://ecommerceacademia.com/
Author: Ecommerce Academia
Author URI: https://ecommerceacademia.com/
Description: A modern, responsive ecommerce publication theme with editorial layouts, category archives, search, and editable WordPress navigation.
Version: 1.3.7
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, news, education, grid-layout, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
Text Domain: ecommerce-academia
*/

:root {
  --ink: #17201d;
  --muted: #66716d;
  --paper: #f7f8f5;
  --white: #ffffff;
  --lime: #c9f36a;
  --purple: #6252d9;
  --line: #dde3de;
  --orange: #ff805e;
  --font-display: "Avenir Next", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

.site-header {
  height: 82px;
  background: rgba(247,248,245,.96);
  border-bottom: 1px solid rgba(23,32,29,.08);
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 20;
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 16px; letter-spacing: -.3px; }
.custom-logo-link { display: inline-flex; align-items: center; flex: 0 0 auto; }
.custom-logo { display: block; width: auto; max-width: 280px; max-height: var(--logo-height, 48px); object-fit: contain; }
.brand strong { font-weight: 800; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--lime);
  display: grid; place-items: center; font-size: 12px; letter-spacing: -1px;
}
.main-nav { display: flex; align-items: center; gap: 34px; margin-left: 60px; }
.main-nav ul { display: flex; align-items: center; gap: 34px; margin: 0; padding: 0; list-style: none; }
.main-nav li, .footer-links li { list-style: none; }
.main-nav .menu-item-has-children { position: relative; }
.main-nav .menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 0 3px 9px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.main-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: -12px;
  z-index: 40;
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  min-width: 220px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(23,32,29,.12);
}
@media (hover: hover) and (pointer: fine) {
  .main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { display: flex; }
}
.main-nav .sub-menu li { display: block; }
.main-nav .sub-menu a { display: block; padding: 10px 12px; border-radius: 5px; white-space: nowrap; }
.main-nav .sub-menu a:hover, .main-nav .sub-menu a:focus-visible { background: var(--paper); }
.main-nav .sub-menu .sub-menu { top: -8px; left: 100%; }
.submenu-toggle { display: none; }
.main-nav a { font-size: 14px; font-weight: 600; transition: color .2s; }
.main-nav a:hover { color: var(--purple); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-button {
  width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: transparent;
  display: grid; place-items: center; cursor: pointer;
}
.icon-button svg, .search-form svg {
  width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8;
}
.button { display: inline-flex; align-items: center; justify-content: center; background: var(--ink); color: white; border-radius: 6px; font-weight: 700; }
.button-small { height: 42px; padding: 0 18px; font-size: 13px; }
.menu-button { display: none; border: 0; background: none; width: 42px; height: 42px; }
.menu-button span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px auto; }
.mobile-nav-actions { display: none; }

.hero { padding: 68px 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 72px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: #66716d; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; }
.eyebrow > span { width: 24px; height: 2px; background: var(--lime); }
.hero-copy h1 {
  max-width: 650px; margin: 20px 0 20px; font-family: var(--font-display);
  font-size: clamp(52px, 5.4vw, 78px); line-height: .98; letter-spacing: -5px;
}
.hero-copy h1 em { color: var(--purple); font-style: normal; }
.hero-copy > p { max-width: 530px; color: var(--muted); font-size: 18px; line-height: 1.65; margin: 0 0 28px; }
.search-form {
  max-width: 520px; height: 58px; background: white; border: 1px solid var(--line);
  border-radius: 8px; display: flex; align-items: center; padding: 7px 7px 7px 18px; color-scheme: light;
  box-shadow: 0 10px 30px rgba(23,32,29,.05);
}
.search-form svg { flex: 0 0 auto; color: #86918d; }
.search-form input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; padding: 0 12px; background-color: #fff; color: var(--ink); color-scheme: light; -webkit-appearance: none; appearance: none; }
.search-form button {
  height: 44px; border: 0; border-radius: 6px; background: var(--lime); color: var(--ink);
  padding: 0 18px; font-weight: 800; cursor: pointer;
}

.hero-panel {
  height: 410px; border-radius: 18px; background: #6151d7; position: relative; overflow: hidden;
  color: white; box-shadow: 0 24px 50px rgba(78,65,171,.18);
}
.panel-top { height: 64px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,.16); padding: 0 24px; position: relative; z-index: 3; }
.topic { font-size: 11px; text-transform: uppercase; letter-spacing: 1.3px; font-weight: 800; }
.read-time { font-size: 12px; opacity: .75; }
.orb { position: absolute; border-radius: 50%; filter: blur(.2px); }
.orb-one { width: 310px; height: 310px; right: -90px; top: 30px; background: rgba(167,143,255,.55); }
.orb-two { width: 180px; height: 180px; right: 80px; bottom: -100px; background: rgba(201,243,106,.72); }
.panel-content { position: absolute; left: 42px; bottom: 38px; width: 72%; z-index: 4; }
.panel-label { display: block; color: var(--lime); font-size: 11px; letter-spacing: 1.7px; font-weight: 800; margin-bottom: 12px; }
.panel-content h2 { margin: 0 0 22px; max-width: 390px; font-family: var(--font-display); font-size: 38px; line-height: 1.08; letter-spacing: -2px; }
.panel-content a { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 800; }
.panel-content a span { color: var(--lime); font-size: 20px; }
.mini-chart { position: absolute; right: -102px; bottom: 5px; width: 170px; height: 150px; display: flex; align-items: flex-end; gap: 8px; transform: rotate(-3deg); }
.mini-chart span { flex: 1; max-width: 13px; border-radius: 8px 8px 2px 2px; background: rgba(201,243,106,.9); }

.topic-strip { background: var(--paper); border-bottom: 1px solid var(--line); }
.topic-list { height: auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 24px 0 48px; }
.topic-list a { display: flex; min-height: 176px; flex-direction: column; align-items: flex-start; gap: 12px; border: 1px solid var(--line); border-radius: 12px; background: white; padding: 20px; font-size: 15px; transition: transform .2s, box-shadow .2s; }
.topic-list a:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(23,32,29,.08); }
.topic-list a:first-child { padding-left: 20px; }
.topic-list a:last-child { border-right: 1px solid var(--line); }
.topic-list strong { font-size: 16px; }
.topic-description { color: var(--muted); font-size: 13px; line-height: 1.5; }
.topic-icon { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 800; flex: 0 0 auto; }
.violet { background: #ebe7ff; color: #6252d9; } .mint { background: #daf4e8; color: #247b58; }
.peach { background: #ffe2d8; color: #bb5539; } .blue { background: #dcecf9; color: #3d7199; }
.yellow { background: #f5edb9; color: #7b6a20; }
.topic-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.articles { padding: 84px 0 96px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 34px; }
.section-heading h2 { margin: 12px 0 0; font-family: var(--font-display); font-size: 44px; letter-spacing: -2.5px; }
.insights-tools { display: flex; align-items: center; gap: 22px; margin-bottom: 8px; }
.insights-search { width: min(340px, 30vw); height: 46px; padding: 5px 5px 5px 14px; background-color: #fff; }
.insights-search button { height: 34px; padding: 0 12px; }
.insights-search input { font-size: 13px; background-color: #fff; }
.insights-search input:-webkit-autofill,
.insights-search input:-webkit-autofill:hover,
.insights-search input:-webkit-autofill:focus,
.insights-search input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  -webkit-text-fill-color: var(--ink);
}
.text-link { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; margin-bottom: 8px; }
.text-link span { color: var(--purple); font-size: 18px; }
.article-grid { display: grid; grid-template-columns: 1.18fr .91fr .91fr; gap: 22px; }
.article-card { min-width: 0; }
.card-image { height: 250px; display: block; border-radius: 12px; position: relative; overflow: hidden; }
.featured-card .card-image { height: 290px; }
.card-badge { position: absolute; left: 16px; top: 16px; z-index: 3; border-radius: 30px; padding: 8px 11px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; }
.image-purple { background: #8d82e8; }
.image-coral { background: #f2a18b; }
.image-green { background: #92bea7; }
.card-body { padding-top: 20px; }
.meta { display: flex; align-items: center; gap: 8px; color: #858e8b; font-size: 11px; text-transform: uppercase; letter-spacing: .6px; font-weight: 700; }
.meta span { width: 3px; height: 3px; border-radius: 50%; background: #aab2af; }
.card-body h3 { margin: 10px 0 8px; font-family: var(--font-display); font-size: 21px; line-height: 1.25; letter-spacing: -.7px; }
.featured-card .card-body h3 { font-size: 27px; }
.card-body p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 14px; }

.phone-art { height: 100%; display: flex; align-items: center; justify-content: center; }
.phone { width: 118px; height: 210px; border: 7px solid #252b28; border-bottom-width: 10px; border-radius: 22px; background: #eef8b9; transform: rotate(-8deg) translateY(22px); box-shadow: 16px 16px 0 rgba(62,52,133,.18); }
.phone-screen { height: 100%; border-radius: 13px; padding: 30px 13px 12px; display: flex; flex-direction: column; gap: 9px; }
.phone-screen span { height: 25px; background: #fff; border-radius: 5px; opacity: .85; }
.phone-screen span:nth-child(2) { height: 60px; background: #6252d9; }
.play { width: 54px; height: 54px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; color: var(--ink); font-size: 14px; margin-left: 16px; box-shadow: 0 8px 20px rgba(39,36,83,.16); }
.social-art { height: 100%; position: relative; }
.profile-shape { position: absolute; width: 130px; height: 150px; bottom: -20px; left: 50%; transform: translateX(-50%); background: #6553c9; border-radius: 70px 70px 15px 15px; }
.profile-shape:before { content: ""; position: absolute; width: 74px; height: 74px; border-radius: 50%; background: #f1c69f; left: 28px; top: -42px; }
.bubble { position: absolute; z-index: 3; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: white; color: #6252d9; box-shadow: 0 8px 20px rgba(92,63,52,.12); }
.b1 { left: 24px; top: 70px; }.b2 { right: 28px; top: 48px; color: var(--orange); }
.comparison-art { position: absolute; width: 78%; height: 150px; left: 11%; bottom: 34px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.bar { height: 30px; display: flex; align-items: center; gap: 10px; }
.bar b { width: 30px; height: 30px; border-radius: 50%; background: #f1f7ef; display: grid; place-items: center; font-size: 11px; }
.bar span { height: 16px; border-radius: 10px; background: #315f4b; box-shadow: 45px 0 0 rgba(255,255,255,.35); }
.bar:nth-child(2) span { background: #f2d85e; }.bar:nth-child(3) span { background: #dfead9; }

.newsletter { background: var(--ink); color: white; padding: 52px 0; }
.newsletter-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 70px; }
.eyebrow.light { color: #bac3bf; }.eyebrow.light > span { background: var(--lime); }
.newsletter h2 { margin: 10px 0 0; font-family: var(--font-display); font-size: 36px; letter-spacing: -1.8px; }
.newsletter-form { display: flex; height: 56px; background: white; border-radius: 7px; padding: 6px; }
.newsletter-form input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 0 14px; }
.newsletter-form button { border: 0; border-radius: 5px; background: var(--lime); padding: 0 17px; font-weight: 800; cursor: pointer; }
.newsletter-form button span { margin-left: 8px; }

footer { background: #121815; color: #cdd4d1; padding: 30px 0; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; }
.footer-brand { color: white; }.footer-brand .brand-mark { background: var(--lime); color: var(--ink); }
.footer-grid p { text-align: center; font-size: 12px; }
.footer-contact { text-align: center; }
.footer-contact p { margin: 0 0 7px; }
.footer-email { color: var(--lime); font-size: 12px; font-weight: 700; }
.footer-email:hover { color: white; text-decoration: underline; }
.footer-links { display: flex; justify-content: flex-end; gap: 24px; font-size: 12px; }
.footer-links ul { display: flex; justify-content: flex-end; gap: 24px; margin: 0; padding: 0; list-style: none; }

.search-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(18,24,21,.96); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: .25s; }
.search-overlay.open { opacity: 1; visibility: visible; }
.search-overlay > button { position: absolute; right: 32px; top: 24px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: none; color: white; font-size: 28px; cursor: pointer; }
.overlay-search { width: min(680px, calc(100% - 48px)); display: flex; border-bottom: 2px solid white; }
.overlay-search input { flex: 1; height: 68px; border: 0; background: none; outline: 0; color: white; font-size: 28px; }
.overlay-search button { border: 0; background: none; color: var(--lime); font-weight: 800; cursor: pointer; }

.article-hero { background: var(--white); border-bottom: 1px solid var(--line); padding: 58px 0 48px; }
.breadcrumbs { display: flex; align-items: center; gap: 8px; color: #7b8581; font-size: 12px; margin-bottom: 28px; }
.breadcrumbs a:hover { color: var(--purple); }
.breadcrumbs span { color: #abb3af; }
.article-head { display: grid; grid-template-columns: 1fr 420px; gap: 62px; align-items: end; }
.article-category { display: inline-flex; color: #4d3db2; background: #ebe7ff; border-radius: 30px; padding: 8px 12px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; }
.article-head h1 { max-width: 760px; margin: 18px 0 22px; font-family: var(--font-display); font-size: clamp(44px, 5vw, 68px); line-height: 1.02; letter-spacing: -4px; }
.article-byline { display: flex; align-items: center; gap: 12px; }
.author-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--lime); display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.author-meta { display: flex; flex-direction: column; gap: 2px; font-size: 12px; }.author-meta strong { font-size: 13px; }.author-meta span { color: #858f8b; }
.article-cover { height: 310px; border-radius: 14px; background: #8d82e8; position: relative; overflow: hidden; }
.article-cover:before { content: ""; position: absolute; width: 290px; height: 290px; border-radius: 50%; background: rgba(177,163,246,.72); right: -75px; top: 45px; display: none; }
.article-cover-phone { position: absolute; width: 118px; height: 220px; left: 50%; bottom: -44px; transform: translateX(-50%) rotate(-7deg); border: 7px solid #252b28; border-radius: 22px; background: #eef8b9; box-shadow: 18px 18px 0 rgba(62,52,133,.16); }
.article-cover-phone:before { content: ""; position: absolute; inset: 30px 12px 12px; border-radius: 8px; background: repeating-linear-gradient(to bottom, white 0 23px, #6252d9 23px 74px, white 74px 88px); }

.article-layout { display: grid; grid-template-columns: 170px minmax(0, 690px) 220px; gap: 50px; max-width: 1180px; margin: 0 auto; padding: 58px 24px 100px; }
.share-rail { position: sticky; top: 30px; align-self: start; }
.share-rail span { display: block; color: #909994; font-size: 10px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 10px; }
.share-rail a { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; margin-bottom: 8px; background: white; font-size: 12px; font-weight: 800; }
.article-body { min-width: 0; }
.article-body > p { color: #454f4b; font-size: 18px; line-height: 1.78; margin: 0 0 24px; }
.article-body > p:first-child { font-size: 21px; line-height: 1.65; color: #303936; }
.article-body h2 { margin: 48px 0 16px; font-family: var(--font-display); font-size: 34px; line-height: 1.15; letter-spacing: -1.6px; }
.article-body h3 { margin: 32px 0 12px; font-family: var(--font-display); font-size: 23px; letter-spacing: -.7px; }
.article-body ul { margin: 22px 0; padding: 0; list-style: none; }
.article-body li { position: relative; padding: 15px 18px 15px 48px; margin-bottom: 8px; background: white; border: 1px solid var(--line); border-radius: 8px; font-size: 16px; line-height: 1.55; }
.article-body li:before { content: "→"; position: absolute; left: 18px; color: var(--purple); font-weight: 800; }
.article-body .wp-block-button__link,
.article-body .wp-element-button,
.article-body a.button,
.article-body a.cta,
.article-body button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border: 0;
  border-radius: 6px;
  background: var(--lime) !important;
  color: var(--ink) !important;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.article-body .wp-block-button__link:hover,
.article-body .wp-element-button:hover,
.article-body a.button:hover,
.article-body a.cta:hover,
.article-body button:hover { background: #b6e44d !important; color: var(--ink) !important; }
.article-callout { margin: 32px 0; padding: 26px 28px; background: #eef8dd; border-left: 4px solid var(--lime); border-radius: 0 8px 8px 0; }
.article-callout strong { display: block; margin-bottom: 6px; }.article-callout p { margin: 0; color: #52615a; line-height: 1.6; }
.toc { position: sticky; top: 30px; align-self: start; border-left: 1px solid var(--line); padding-left: 22px; }
.toc strong { display: block; font-size: 11px; letter-spacing: 1.1px; text-transform: uppercase; margin-bottom: 14px; }
.toc a { display: block; color: #717b77; font-size: 13px; line-height: 1.45; margin: 11px 0; }.toc a.active { color: var(--ink); font-weight: 700; }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.article-tags a { background: #edf0ec; border-radius: 30px; padding: 8px 12px; font-size: 12px; }

.page-hero { padding: 64px 0 46px; background: white; border-bottom: 1px solid var(--line); }
.page-hero-grid { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.page-hero h1 { max-width: 760px; margin: 14px 0 0; font-family: var(--font-display); font-size: 58px; line-height: 1; letter-spacing: -3.5px; }
.page-hero h1 em { color: var(--purple); font-style: normal; }
.page-meta { min-width: 150px; color: var(--muted); font-size: 13px; text-align: right; }
.blogs-page { padding: 58px 0 100px; }
.filter-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 34px; overflow-x: auto; }
.filter-bar button { flex: 0 0 auto; height: 38px; border: 1px solid var(--line); border-radius: 30px; background: white; color: var(--muted); padding: 0 14px; cursor: pointer; font-size: 12px; font-weight: 700; }
.filter-bar button.active { background: var(--ink); border-color: var(--ink); color: white; }
.filter-bar .filter-chip { flex: 0 0 auto; height: 38px; border: 1px solid var(--line); border-radius: 30px; background: white; color: var(--muted); padding: 10px 14px 0; cursor: pointer; font-size: 12px; font-weight: 700; }
.filter-bar .filter-chip.active { background: var(--ink); border-color: var(--ink); color: white; }
.blog-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 38px 22px; }
.blog-list-card { min-width: 0; }
.blog-list-card .card-image { height: 210px; }
.blog-featured-image { background: #edf0ec; }
.blog-featured-image img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.blog-featured-image .card-badge { z-index: 2; }
.all-blogs-page .blog-featured-image .card-badge { top: auto; bottom: 16px; }
.search-results-page .blog-featured-image .card-badge { top: auto; bottom: 16px; }
.card-badge.category-ecommerce, .article-category.category-ecommerce { background: #ebe7ff; color: #4d3db2; }
.card-badge.category-dropshipping, .article-category.category-dropshipping { background: #ebe7ff; color: #4d3db2; }
.card-badge.category-affiliate, .article-category.category-affiliate { background: #daf4e8; color: #247b58; }
.card-badge.category-marketing, .article-category.category-marketing { background: #f5edb9; color: #76631a; }
.card-badge.category-resources, .article-category.category-resources { background: #ffe2d8; color: #a8472e; }
.card-badge.category-platforms, .article-category.category-platforms { background: #e4eee0; color: #42633a; }
.card-badge.category-default, .article-category.category-default { background: #e9eeeb; color: #45534c; }
body.category { background-color: var(--paper); }
.blog-list-card h3 { font-size: 20px; }
.blog-pagination { margin-top: 48px; }
.blog-pagination ul.page-numbers { display: flex; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.blog-pagination .page-numbers a, .blog-pagination .page-numbers span { display: grid; min-width: 38px; height: 38px; place-items: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 30px; background: white; font-size: 12px; font-weight: 700; }
.blog-pagination .page-numbers .current { border-color: var(--ink); background: var(--ink); color: white; }

.resources-page { background: var(--paper); }
.resources-hero { padding: 66px 0 54px; background: var(--ink); color: white; overflow: hidden; }
.resources-hero-grid { display: grid; grid-template-columns: 1fr 420px; align-items: center; gap: 60px; }
.resources-hero h1 { max-width: 680px; margin: 14px 0 16px; font-family: var(--font-display); font-size: 62px; line-height: 1; letter-spacing: -4px; }
.resources-hero h1 em { color: var(--lime); font-style: normal; }
.resources-hero p { max-width: 560px; color: #bdc7c2; font-size: 18px; line-height: 1.6; }
.resource-tool { height: 270px; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; background: #202a26; position: relative; overflow: hidden; }
.resource-tool:before { content: ""; position: absolute; width: 190px; height: 190px; border-radius: 50%; background: var(--lime); right: -75px; bottom: -95px; }
.tool-grid { position: absolute; inset: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tool-grid span { border: 1px solid rgba(255,255,255,.12); border-radius: 10px; background: rgba(255,255,255,.04); }
.tool-grid span:first-child { background: #6252d9; }
.resources-section { padding: 76px 0 96px; }
.resource-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.resource-card { min-height: 280px; border: 1px solid var(--line); border-radius: 12px; background: white; padding: 28px; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.resource-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(23,32,29,.08); }
.resource-card .resource-number { width: 44px; height: 44px; border-radius: 50%; background: #ebe7ff; color: var(--purple); display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.resource-card h2 { margin: 42px 0 10px; font-family: var(--font-display); font-size: 24px; letter-spacing: -1px; }
.resource-card p { color: var(--muted); line-height: 1.55; margin: 0 0 24px; }
.resource-card a { margin-top: auto; font-size: 13px; font-weight: 800; }
.resource-card a span { color: var(--purple); margin-left: 8px; }
.resource-card:nth-child(2) .resource-number { background: #daf4e8; color: #247b58; }
.resource-card:nth-child(3) .resource-number { background: #ffe2d8; color: #bb5539; }
.checklist-band { background: #eaf4d6; }
.checklist-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 80px; align-items: center; }
.checklist-band h2 { margin: 10px 0 0; font-family: var(--font-display); font-size: 42px; line-height: 1.08; letter-spacing: -2.4px; }
.checklist-items { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.checklist-items a { background: white; border-radius: 8px; padding: 18px; font-size: 13px; font-weight: 700; }
.checklist-items a span { color: #719d36; margin-right: 8px; }

@media (max-width: 980px) {
  .main-nav { display: none; }
  .menu-button { display: block; }
  .site-header.menu-open .nav-wrap { align-items: center; }
  .site-header.menu-open .main-nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 14px 24px 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 24px rgba(23,32,29,.08);
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }
  .site-header.menu-open .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-header.menu-open .main-nav > li { display: block; width: 100%; }
  .site-header.menu-open .main-nav li a,
  .site-header.menu-open .main-nav > a { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); }
  .site-header.menu-open .main-nav .menu-item-has-children { display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: center; }
  .site-header.menu-open .main-nav .menu-item-has-children > a { min-width: 0; }
  .site-header.menu-open .main-nav .menu-item-has-children > a::after { display: none; }
  .site-header.menu-open .submenu-toggle { display: grid; width: 40px; height: 40px; place-items: center; border: 0; background: transparent; color: var(--ink); font-size: 23px; cursor: pointer; }
  .site-header.menu-open .submenu-toggle:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
  .site-header.menu-open .main-nav .sub-menu,
  .site-header.menu-open .main-nav .sub-menu .sub-menu {
    position: static;
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    padding: 0 0 0 14px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .site-header.menu-open .main-nav .menu-item-has-children.submenu-open > .sub-menu { display: flex; }
  .site-header.menu-open .main-nav .sub-menu a { white-space: normal; }
  .mobile-nav-actions { display: none; }
  .site-header.menu-open .mobile-nav-actions { display: flex; flex-direction: column; gap: 0; align-items: stretch; width: 100%; padding-top: 4px; }
  .mobile-nav-actions .icon-button { width: 100%; height: 46px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0; display: inline-flex; gap: 10px; align-items: center; justify-content: flex-start; }
  .mobile-nav-actions .icon-button svg { width: 17px; }
  .mobile-nav-actions .button { display: flex; width: 100%; height: 46px; margin-top: 12px; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero-copy h1 { font-size: 58px; }
  .topic-list { grid-template-columns: repeat(2, 1fr); height: auto; }
  .topic-list a { min-height: 160px; border: 1px solid var(--line); }
  .article-grid { grid-template-columns: 1fr 1fr; }
  .featured-card { grid-column: 1 / -1; }
  .featured-card .card-image { height: 340px; }
  .article-head { grid-template-columns: 1fr 340px; gap: 32px; }
  .article-layout { grid-template-columns: 54px minmax(0, 690px); max-width: 820px; }
  .toc { display: none; }
  .blog-list { grid-template-columns: repeat(2, 1fr); }
  .resources-hero-grid { grid-template-columns: 1fr 320px; gap: 32px; }
  .resources-hero h1 { font-size: 54px; }
  .resource-grid { grid-template-columns: repeat(2, 1fr); }
  .checklist-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 32px, 1180px); }
  .site-header { height: 68px; }
  .brand { font-size: 14px; }
  .brand-mark { width: 34px; height: 34px; }
  .custom-logo { max-width: 160px; max-height: min(var(--logo-height, 48px), 40px); }
  .nav-actions .button, .nav-actions > .icon-button { display: none; }
  .hero { padding: 42px 0 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: 48px; letter-spacing: -3px; }
  .hero-copy > p { font-size: 16px; }
  .search-form { height: 54px; }
  .search-form button { padding: 0 12px; }
  .hero-panel { height: 360px; }
  .panel-content { left: 28px; bottom: 28px; width: 78%; }
  .panel-content h2 { font-size: 32px; }
  .mini-chart { right: -110px; }
  .topic-list { grid-template-columns: 1fr 1fr; gap: 9px; padding: 16px 0 32px; }
  .topic-list a { min-height: 158px; padding: 14px; gap: 9px; font-size: 14px; }
  .topic-list a:first-child { padding-left: 14px; }
  .topic-list a:last-child { border-right: 1px solid var(--line); }
  .topic-description { font-size: 12px; }
  .articles { padding: 64px 0; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 18px; }
  .section-heading h2 { font-size: 38px; }
  .insights-tools { width: 100%; margin: 0; }
  .insights-search { width: 100%; max-width: none; }
  .insights-tools .text-link { display: none; }
  .article-grid { grid-template-columns: 1fr; }
  .featured-card { grid-column: auto; }
  .card-image, .featured-card .card-image { height: 260px; }
  .article-card { margin-bottom: 18px; }
  .featured-card .card-body h3, .card-body h3 { font-size: 22px; }
  .newsletter-grid { grid-template-columns: 1fr; gap: 24px; }
  .newsletter h2 { font-size: 30px; }
  .newsletter-form { height: 54px; }
  .newsletter-form button { font-size: 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .footer-brand { justify-content: center; }
  .footer-grid p { margin: 0; }
  .footer-links { justify-content: center; }
  .footer-links ul { justify-content: center; flex-wrap: wrap; }
  .article-hero { padding: 34px 0 30px; }
  .breadcrumbs { margin-bottom: 18px; }
  .article-head { grid-template-columns: 1fr; }
  .article-head h1 { font-size: 42px; letter-spacing: -2.6px; }
  .article-cover { height: 250px; }
  .article-layout { grid-template-columns: 1fr; padding: 38px 16px 70px; }
  .share-rail { position: static; display: flex; align-items: center; gap: 8px; }
  .share-rail span { margin: 0 4px 0 0; }.share-rail a { margin: 0; }
  .article-body > p { font-size: 17px; }
  .article-body > p:first-child { font-size: 19px; }
  .article-body h2 { font-size: 29px; }
  .page-hero { padding: 42px 0 34px; }
  .page-hero-grid { display: block; }
  .page-hero h1 { font-size: 44px; letter-spacing: -2.8px; }
  .page-meta { margin-top: 18px; text-align: left; }
  .blogs-page { padding: 38px 0 70px; }
  .blog-list { grid-template-columns: 1fr; }
  .blog-list-card .card-image { height: 250px; }
  .resources-hero { padding: 46px 0 38px; }
  .resources-hero-grid { grid-template-columns: 1fr; }
  .resources-hero h1 { font-size: 46px; letter-spacing: -3px; }
  .resource-tool { height: 220px; }
  .resources-section { padding: 58px 0 68px; }
  .resource-grid { grid-template-columns: 1fr; }
  .resource-card { min-height: 250px; }
  .checklist-grid { gap: 24px; }
  .checklist-band h2 { font-size: 34px; }
  .checklist-items { grid-template-columns: 1fr; }
}
