/* =========================================================================
   NQXTheme — main.css
   All brand values are CSS custom properties set from the Customizer
   (see nqxtheme_dynamic_css() in functions.php). Edit colours there, not here.
   ========================================================================= */

/* If you self-host Geist, drop the files into /assets/fonts and uncomment:
@font-face{
  font-family:'Geist';
  src:url('../fonts/Geist-Variable.woff2') format('woff2');
  font-weight:100 900;
  font-display:swap;
}
*/

:root{
	--nqx-accent:#49099d;
	--nqx-accent-hover:#3a0780;
	--nqx-announce-bg:#5a3dc8;
	--nqx-announce-text:#ffffff;
	--nqx-footer-bg:#08001c;
	--nqx-footer-text:#ffffff;
	--nqx-footer-muted:#b9b3cc;
	--nqx-grad-1:#E335BC;
	--nqx-grad-2:#7311A1;
	--nqx-grad-3:#3D1593;
	--nqx-body-font:'Geist', Arial, sans-serif;
	--nqx-heading-weight:800;
	--nqx-button-radius:8px;
	--nqx-header-bg:#f4f4f4;
	--nqx-header-max:1240px;
	--nqx-header-minh:64px;
	--nqx-nav-size:16px;
	--nqx-social-bg:#ffffff;
	--nqx-social-color:#08001c;

	--nqx-ink:#13111c;
	--nqx-surface:#ffffff;
	--nqx-surface-2:#f4f3f7;
	--nqx-border:#e7e5ee;
	--nqx-icon-bg:#ece9fd;
	--nqx-max:1240px;
}

/* ---------- Base ---------- */
*{box-sizing:border-box;}
body{
	margin:0;
	font-family:var(--nqx-body-font);
	color:var(--nqx-ink);
	background:var(--nqx-surface);
	line-height:1.55;
	-webkit-font-smoothing:antialiased;
}
a{color:var(--nqx-accent);text-decoration:none;}
a:hover{text-decoration:underline;}
img{max-width:100%;height:auto;display:block;}

h1,h2,h3,h4,h5,h6{
	font-family:var(--nqx-body-font);
	font-weight:var(--nqx-heading-weight);
	line-height:1.12;
	letter-spacing:-0.02em;
	margin:0 0 .5em;
}
h1{font-size:clamp(2.2rem,5vw,3.5rem);}
h2{font-size:clamp(1.7rem,3.5vw,2.5rem);}

.nqx-container{max-width:var(--nqx-max);margin-inline:auto;padding-inline:clamp(16px,4vw,40px);}

/* ---------- Gradient headline utility ---------- */
.gradient-headline,
#gradient-headline,
.nqx-gradient{
	font-weight:var(--nqx-heading-weight);
	background:linear-gradient(90deg,var(--nqx-grad-1) 0%,var(--nqx-grad-2) 50%,var(--nqx-grad-3) 100%);
	-webkit-background-clip:text;
	background-clip:text;
	-webkit-text-fill-color:transparent;
	color:transparent;
}

/* ---------- Buttons ---------- */
.nqx-btn{
	display:inline-flex;align-items:center;gap:.5em;
	font-weight:600;font-size:.95rem;
	padding:.75em 1.4em;
	border-radius:var(--nqx-button-radius);
	border:2px solid transparent;
	cursor:pointer;transition:background .15s ease,color .15s ease,transform .15s ease;
	text-decoration:none;line-height:1;
}
.nqx-btn:hover{text-decoration:none;transform:translateY(-1px);}
.nqx-btn--primary{background:var(--nqx-accent);color:#fff;}
.nqx-btn--primary:hover{background:var(--nqx-accent-hover);color:#fff;}
.nqx-btn--ghost{background:transparent;color:var(--nqx-accent);border-color:var(--nqx-accent);}
.nqx-btn--ghost:hover{background:var(--nqx-accent);color:#fff;}
.nqx-btn__arrow{transition:transform .15s ease;}
.nqx-btn--arrow:hover .nqx-btn__arrow{transform:translateX(4px);}

/* ---------- Announcement bar ---------- */
.nqx-announce{background:var(--nqx-announce-bg);color:var(--nqx-announce-text);font-size:.9rem;}
.nqx-announce__inner{
	max-width:var(--nqx-max);margin-inline:auto;
	padding:.6em clamp(16px,4vw,40px);
	display:flex;align-items:center;justify-content:center;gap:1rem;position:relative;
}
.nqx-announce__text{margin:0;text-align:center;}
.nqx-announce__link{color:inherit;font-weight:700;text-decoration:underline;}
.nqx-announce__close{
	position:absolute;right:clamp(12px,3vw,28px);top:50%;transform:translateY(-50%);
	background:none;border:0;color:inherit;font-size:1.3rem;line-height:1;cursor:pointer;opacity:.85;
}
.nqx-announce__close:hover{opacity:1;}
.nqx-announce.is-hidden{display:none;}

/* ---------- Header ---------- */
.nqx-header{background:var(--nqx-header-bg);border-bottom:1px solid var(--nqx-border);position:relative;z-index:50;}
.nqx-header--sticky{position:sticky;top:0;}
.nqx-header--sticky.is-stuck{box-shadow:0 6px 24px rgba(20,10,50,.10);}
.nqx-header__inner{
	max-width:var(--nqx-header-max);margin-inline:auto;
	padding:.45em clamp(16px,4vw,40px);min-height:var(--nqx-header-minh);
	display:flex;align-items:center;gap:1.5rem;
}
.nqx-header__brand{flex:0 0 auto;}
.nqx-header__brand img,.custom-logo{max-height:42px;width:auto;}
.nqx-wordmark{font-weight:800;font-size:1.6rem;letter-spacing:-.04em;color:var(--nqx-ink);}
.nqx-header__actions{margin-left:auto;display:flex;align-items:center;gap:1rem;flex:0 0 auto;}

/* ---------- Primary nav ---------- */
.nqx-nav{flex:1 1 auto;display:flex;justify-content:center;}
.nqx-menu{list-style:none;display:flex;align-items:center;gap:1.6rem;margin:0;padding:0;}
.nqx-menu>li{position:relative;}
.nqx-nav-link{
	display:inline-flex;align-items:center;gap:.35em;
	color:var(--nqx-ink);font-weight:500;font-size:var(--nqx-nav-size);padding:.4em 0;
	position:relative;text-decoration:none;
}
.nqx-nav-link:hover{color:var(--nqx-accent);text-decoration:none;}
.nqx-menu>li>.nqx-nav-link::after{
	content:"";position:absolute;left:0;right:0;bottom:-3px;height:3px;border-radius:3px;
	background:linear-gradient(90deg,var(--nqx-grad-1) 0%,var(--nqx-grad-2) 50%,var(--nqx-grad-3) 100%);
	transform:scaleX(0);transform-origin:left;transition:transform .2s ease;
}
.nqx-menu>li:hover>.nqx-nav-link::after,
.nqx-menu>li.current-menu-item>.nqx-nav-link::after{transform:scaleX(1);}

.nqx-caret{width:.5em;height:.5em;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin-top:-2px;transition:transform .18s ease;}
.nqx-menu>li:hover .nqx-caret{transform:rotate(225deg);margin-top:2px;}

/* ---------- Dropdowns & Mega menus ---------- */
.nqx-dropdown,.nqx-mega{
	position:absolute;opacity:0;visibility:hidden;transform:translateY(8px);
	transition:opacity .18s ease,transform .18s ease,visibility .18s;
	background:var(--nqx-surface);border:1px solid var(--nqx-border);
	border-radius:14px;box-shadow:0 20px 50px rgba(20,10,50,.16);
	padding:1.4rem;z-index:60;
}
.nqx-dropdown{min-width:240px;margin-top:.6rem;top:100%;}
.nqx-mega{left:0;top:100%;margin-top:.6rem;width:max-content;max-width:min(760px,92vw);}
.nqx-mega--flip{left:auto;right:0;}
.nqx-menu>li:hover>.nqx-dropdown,
.nqx-menu>li:hover>.nqx-mega,
.nqx-menu>li:focus-within>.nqx-dropdown,
.nqx-menu>li:focus-within>.nqx-mega{opacity:1;visibility:visible;transform:translateY(0);}

/* Column layout inside mega panels */
.nqx-mega-grid{display:flex;gap:2.5rem;flex-wrap:wrap;}
.nqx-mega-col{min-width:0;}
.nqx-mega-col__title{
	display:block;font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;
	color:#9a93ad;font-weight:600;margin:.2rem 0 .55rem;
}
.nqx-mega-list,.nqx-dropdown-list{list-style:none;margin:0;padding:0;display:grid;gap:.1rem;}
.nqx-mega-list{min-width:210px;}
.nqx-dropdown-list{min-width:240px;}
.nqx-mega-list--2col{grid-template-columns:repeat(2,minmax(190px,1fr));gap:.1rem 2.5rem;}

/* Legacy walker markup (kept for backwards compatibility) */
.nqx-mega .sub-menu,.nqx-dropdown .sub-menu{
	list-style:none;margin:0;padding:0;
	display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
	gap:.3rem 2.5rem;
}
.nqx-dropdown .sub-menu{grid-template-columns:1fr;}

.mega-col-title{grid-column:1/-1;}
.mega-col-title span{
	display:block;font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;
	color:#9a93ad;font-weight:600;margin:.4rem 0 .2rem;
}

.nqx-mega-link,.nqx-dropdown .nqx-nav-link{
	display:flex;align-items:center;gap:.75rem;
	padding:.55rem .6rem;border-radius:10px;color:var(--nqx-ink);
	text-decoration:none;transition:background .15s ease;
}
/* When an item has sub-text, top-align the icon with the first line instead */
.nqx-mega-link:has(.nqx-link-desc),
.nqx-dropdown .nqx-nav-link:has(.nqx-link-desc){align-items:flex-start;}
.nqx-mega-link:hover,.nqx-dropdown .nqx-nav-link:hover{background:var(--nqx-surface-2);text-decoration:none;}
.nqx-link-label{display:flex;flex-direction:column;font-weight:500;}
.nqx-link-desc{font-weight:400;font-size:.82rem;color:#857e96;margin-top:2px;}

.nqx-mega-icon{
	flex:0 0 auto;width:34px;height:34px;border-radius:9px;
	background:var(--nqx-icon-bg);display:grid;place-items:center;color:var(--nqx-accent);
}
.nqx-mega-icon--circle{border-radius:50%;}
.nqx-mega-icon--square{border-radius:9px;}
.nqx-mega-icon--bare{background:transparent;width:auto;height:auto;}
.nqx-mega-icon .dashicons{color:inherit;font-size:18px;width:18px;height:18px;}

/* Custom-code mega item */
.nqx-mega--custom{padding:1.6rem;}
.nqx-mega-custom-inner{width:100%;}

/* ---------- Language switcher ---------- */
.nqx-lang__btn{
	display:inline-flex;align-items:center;gap:.4rem;
	background:#fff;border:1px solid var(--nqx-border);border-radius:999px;
	padding:.45em .9em;font:inherit;font-weight:500;cursor:pointer;color:var(--nqx-ink);
}
.nqx-lang__globe{width:15px;height:15px;border-radius:50%;border:1.6px solid currentColor;position:relative;}
.nqx-lang__globe::before{content:"";position:absolute;inset:0;border-radius:50%;border-left:1.6px solid currentColor;border-right:1.6px solid currentColor;transform:scaleX(.5);}

/* ---------- Burger (mobile) ---------- */
.nqx-burger{display:none;flex-direction:column;gap:4px;background:none;border:0;cursor:pointer;padding:6px;}
.nqx-burger span{width:22px;height:2px;background:var(--nqx-ink);border-radius:2px;transition:.2s;}

/* ---------- Main / content ---------- */
.nqx-main{min-height:40vh;}
.nqx-main--canvas{padding:0;}
.nqx-posts{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:2rem;padding-block:3rem;}
.nqx-card{border:1px solid var(--nqx-border);border-radius:16px;overflow:hidden;background:#fff;}
.nqx-card__body{padding:1.4rem;}
.nqx-card__title{font-size:1.25rem;}
.nqx-single{max-width:760px;margin-inline:auto;padding-block:3rem;}
.nqx-page{padding-block:clamp(2rem,5vw,3.5rem);}
.nqx-page__content > *{
	max-width:var(--nqx-max);
	margin-inline:auto;
	padding-inline:clamp(16px,4vw,40px);
	box-sizing:border-box;
}
.nqx-page__content > .alignwide{max-width:min(100vw,1480px);}
.nqx-page__content > .alignfull{max-width:none;padding-inline:0;}
/* Pages built with Elementor or the blank canvas template manage their own width. */
body.elementor-page .nqx-page,
body.page-template-template-canvas .nqx-page{padding-block:0;}
body.elementor-page .nqx-page__content > *,
body.page-template-template-canvas .nqx-page__content > *{
	max-width:none;margin-inline:0;padding-inline:0;
}

/* ---------- Footer ---------- */
.nqx-footer{background:var(--nqx-footer-bg);color:var(--nqx-footer-text);}
.nqx-footer__inner{max-width:var(--nqx-max);margin-inline:auto;padding:4rem clamp(16px,4vw,40px) 2.5rem;}
.nqx-footer__cols{display:grid;grid-template-columns:1.7fr 1fr 1fr 1fr;gap:2.5rem;}
.nqx-footer__col .nqx-wordmark{color:#fff;}
.footer-widget__title{font-size:1.05rem;font-weight:700;margin:0 0 1rem;color:#fff;}
.nqx-footer a{color:var(--nqx-footer-muted);}
.nqx-footer a:hover{color:#fff;}
.nqx-footer .footer-widget ul{list-style:none;margin:0;padding:0;display:grid;gap:.55rem;}
.nqx-footer__col--office .nqx-social{margin-top:1.5rem;}
.nqx-social{display:flex;gap:.6rem;flex-wrap:wrap;}
.nqx-social__link{width:36px;height:36px;border-radius:50%;background:var(--nqx-social-bg);display:grid;place-items:center;color:var(--nqx-social-color);}
.nqx-social__link--square{border-radius:9px;}
.nqx-social__link--bare{background:transparent!important;width:auto;height:auto;}
.nqx-social__link .dashicons{color:var(--nqx-social-color);}
.nqx-social__link svg{width:18px;height:18px;fill:currentColor;}
.nqx-social__link:hover{opacity:.85;}
.nqx-footer-logo img{max-height:48px;width:auto;}
.nqx-footer__bottom{
	margin-top:3rem;padding-top:1.4rem;border-top:1px solid rgba(255,255,255,.12);
	display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;font-size:.85rem;color:var(--nqx-footer-muted);
}
.nqx-footer__legal{list-style:none;display:flex;align-items:center;gap:.75rem;margin:0;padding:0;}
.nqx-footer__legal li{display:flex;align-items:center;gap:.75rem;}
.nqx-footer__legal li::before{content:"|";color:currentColor;opacity:.5;}
.nqx-footer__legal a{color:var(--nqx-footer-muted);text-decoration:underline;}
.nqx-footer__legal a:hover{color:#fff;}

/* ---------- Accessibility ---------- */
.screen-reader-text{position:absolute!important;clip:rect(1px,1px,1px,1px);width:1px;height:1px;overflow:hidden;}
.skip-link:focus{position:fixed;top:8px;left:8px;width:auto;height:auto;clip:auto;background:#fff;padding:.6em 1em;z-index:100;border-radius:8px;}

/* ---------- Responsive ---------- */
/* Desktop: mobile-only bits hidden */
.nqx-mobile-actions{display:none;}
.nqx-overlay{display:none;}
.nqx-mcaret{display:none;}

@media (max-width:980px){
	.nqx-header{z-index:1000;}
	.nqx-burger{display:flex;position:relative;z-index:1001;}
	/* burger morphs to an X when the drawer is open */
	.nqx-burger.is-open span:nth-child(1){transform:translateY(6px) rotate(45deg);}
	.nqx-burger.is-open span:nth-child(2){opacity:0;}
	.nqx-burger.is-open span:nth-child(3){transform:translateY(-6px) rotate(-45deg);}

	/* While the drawer is open: hide the announcement and pin the header so the
	   drawer's top offset is exact and never shifts. */
	body.nqx-menu-open .nqx-announce{display:none;}
	body.nqx-menu-open .nqx-header{position:fixed;top:0;left:0;right:0;}

	/* Right-side drawer. Top offset is set in JS to the (pinned) header height. */
	.nqx-nav{
		position:fixed;top:64px;right:0;bottom:0;width:min(88vw,380px);
		background:#fff;z-index:990;box-shadow:-12px 0 40px rgba(20,10,50,.18);
		display:flex;flex-direction:column;padding:0;margin:0;
		transform:translateX(100%);transition:transform .25s ease;overflow:hidden;
	}
	.nqx-nav.is-open{transform:translateX(0);}

	.nqx-overlay{
		display:block;position:fixed;top:64px;left:0;right:0;bottom:0;background:rgba(12,6,28,.45);
		opacity:0;visibility:hidden;transition:opacity .25s ease;z-index:980;
	}
	.nqx-overlay.is-open{opacity:1;visibility:visible;}

	/* The menu list is the scroll region; everything else stays put. */
	.nqx-menu{
		flex:1 1 auto;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;
		flex-direction:column;align-items:stretch;gap:0;width:100%;
	}
	.nqx-menu>li{position:relative;border-bottom:1px solid var(--nqx-border);}
	.nqx-menu>li>.nqx-nav-link{
		display:flex;align-items:center;justify-content:space-between;gap:.75rem;
		width:100%;padding:1.05rem clamp(16px,4vw,28px);font-weight:600;text-align:left;
	}
	.nqx-menu>li>.nqx-nav-link::after{display:none;} /* hide desktop underline */
	/* real caret element, pinned right, rotates on expand */
	.nqx-mcaret{
		display:block;flex:0 0 auto;width:.5em;height:.5em;
		border-right:2px solid #9a93ad;border-bottom:2px solid #9a93ad;
		transform:rotate(45deg);transition:transform .2s ease;
	}
	.nqx-menu>li.is-expanded>.nqx-nav-link .nqx-mcaret{transform:rotate(-135deg);}

	.nqx-dropdown,.nqx-mega{
		position:static;opacity:1;visibility:visible;transform:none;box-shadow:none;border:0;
		padding:.2rem clamp(16px,4vw,28px) .8rem;max-width:none;width:auto;margin:0;display:none;background:#faf9fc;
	}
	.nqx-menu>li.is-expanded>.nqx-dropdown,
	.nqx-menu>li.is-expanded>.nqx-mega{display:block;}
	.nqx-mega-grid{flex-direction:column;gap:1rem;}
	.nqx-mega-list--2col{grid-template-columns:1fr;gap:.1rem;}

	/* CTA pinned at the bottom of the drawer (never scrolls away) */
	.nqx-mobile-actions{
		flex:0 0 auto;display:flex;flex-direction:column;gap:.6rem;
		padding:1.2rem clamp(16px,4vw,28px) calc(1.2rem + env(safe-area-inset-bottom));
		border-top:1px solid var(--nqx-border);background:#fff;
	}
	.nqx-mobile-actions .nqx-btn{width:100%;justify-content:center;padding-block:.9em;}
	.nqx-mobile-actions .nqx-lang{align-self:stretch;}
	.nqx-mobile-actions .nqx-lang__btn{width:100%;justify-content:center;}

	/* hide the desktop-header CTA/lang on mobile (they live in the drawer now) */
	.nqx-header__actions .nqx-lang,.nqx-header__actions .nqx-btn{display:none;}

	.nqx-footer__cols{grid-template-columns:1fr 1fr;gap:2rem;}
	/* iOS-safe scroll lock */
	body.nqx-menu-open{position:fixed;left:0;right:0;width:100%;overflow:hidden;}
}
@media (max-width:560px){
	.nqx-footer__cols{grid-template-columns:1fr;}
}

/* =========================================================================
   Section patterns (mirroring the live NQX industry & newsroom pages)
   Apply these classes to Elementor sections/columns or use the block patterns.
   ========================================================================= */

/* Eyebrow / kicker label above a heading */
.nqx-eyebrow{
	display:inline-block;font-size:.8rem;font-weight:600;letter-spacing:.14em;
	text-transform:uppercase;color:var(--nqx-accent);margin-bottom:.6rem;
}

/* Generic section spacing */
.nqx-section{padding-block:clamp(3rem,7vw,6rem);}

/* Hero with optional background image (set inline or via Elementor) */
.nqx-hero{
	padding:clamp(3rem,8vw,7rem) clamp(16px,4vw,40px);
	max-width:var(--nqx-max);margin-inline:auto;
}
.nqx-hero h1{max-width:14ch;}
.nqx-hero p{max-width:52ch;font-size:1.1rem;color:#4a4459;}

/* Pain-point list ("The Cost of Getting CX Wrong") */
.nqx-painpoints{display:grid;gap:1rem;max-width:var(--nqx-max);margin-inline:auto;padding-inline:clamp(16px,4vw,40px);}
.nqx-painpoints li{
	list-style:none;padding:1.1rem 1.3rem;border:1px solid var(--nqx-border);
	border-left:4px solid var(--nqx-accent);border-radius:12px;background:var(--nqx-surface-2);
}

/* Feature grid ("What We Can Do") */
.nqx-feature-grid-wrap{max-width:var(--nqx-max);margin-inline:auto;padding:clamp(2rem,5vw,4rem) clamp(16px,4vw,40px);}
.nqx-feature-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1rem;}
.nqx-feature-grid h4{
	margin:0;padding:1.3rem;border-radius:14px;background:#fff;border:1px solid var(--nqx-border);
	font-size:1rem;font-weight:600;min-height:100%;
}

/* Numbered steps ("How We Can Work Together") */
.nqx-steps{max-width:var(--nqx-max);margin-inline:auto;padding:clamp(2rem,5vw,4rem) clamp(16px,4vw,40px);}
.nqx-step{position:relative;padding-top:.5rem;}
.nqx-step__num{
	width:48px;height:48px;display:grid;place-items:center;border-radius:50%;
	background:var(--nqx-accent);color:#fff;font-weight:800;font-size:1.2rem;margin:0 0 .8rem;
}

/* CTA band */
.nqx-cta{margin-block:0;}
.nqx-cta--band{background:var(--nqx-accent);color:#fff;}
.nqx-cta--band .nqx-cta__title,.nqx-cta--band .nqx-cta__text{color:#fff;}
.nqx-cta--plain{background:var(--nqx-surface-2);}
.nqx-cta__inner{
	max-width:var(--nqx-max);margin-inline:auto;
	padding:clamp(2.5rem,6vw,4.5rem) clamp(16px,4vw,40px);
	display:flex;flex-direction:column;align-items:center;text-align:center;gap:1.2rem;
}
.nqx-cta__title{margin:0;max-width:24ch;}
.nqx-btn--light{background:#fff;color:var(--nqx-accent);}
.nqx-btn--light:hover{background:#f1edff;color:var(--nqx-accent);}

/* =========================================================================
   Newsroom (Press releases / Media gallery / NQX articles)
   ========================================================================= */
.nqx-newsroom-hero{padding:clamp(2.5rem,6vw,4.5rem) 0 1rem;}
.nqx-newsroom-hero__title{max-width:18ch;}

.nqx-tabs{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:1.6rem;}
.nqx-tab{
	padding:.5em 1.1em;border-radius:999px;border:1px solid var(--nqx-border);
	color:var(--nqx-ink);font-weight:500;font-size:.92rem;text-decoration:none;background:#fff;
}
.nqx-tab:hover{border-color:var(--nqx-accent);color:var(--nqx-accent);text-decoration:none;}
.nqx-tab.is-active{background:var(--nqx-accent);color:#fff;border-color:var(--nqx-accent);}

.nqx-newsroom{display:grid;gap:1.5rem;padding-block:2.5rem;}
.nqx-news-card{
	display:grid;grid-template-columns:minmax(0,280px) 1fr;gap:1.5rem;
	border:1px solid var(--nqx-border);border-radius:16px;overflow:hidden;background:#fff;
}
.nqx-news-card:only-child,.nqx-news-card--noimg{grid-template-columns:1fr;}
.nqx-news-card__media{margin:0;}
.nqx-news-card__media img{height:100%;object-fit:cover;}
.nqx-news-card__body{padding:1.6rem 1.6rem 1.6rem 0;}
.nqx-news-card:not(:has(.nqx-news-card__media)) .nqx-news-card__body{padding-left:1.6rem;}
.nqx-news-card__title{font-size:1.4rem;margin:.4rem 0 .6rem;}
.nqx-news-card__title a{color:var(--nqx-ink);}
.nqx-news-card__title a:hover{color:var(--nqx-accent);text-decoration:none;}
.nqx-news-card__excerpt{color:#5a5468;margin-bottom:1rem;}

.nqx-meta{display:flex;align-items:center;gap:.5rem;font-size:.85rem;color:#857e96;}
.nqx-meta__author{font-weight:600;color:var(--nqx-accent);}
.nqx-noresults{padding-block:3rem;color:#857e96;}
.nqx-404{text-align:center;padding-block:5rem;display:grid;justify-items:center;gap:1rem;}

@media (max-width:680px){
	.nqx-news-card{grid-template-columns:1fr;}
	.nqx-news-card__body{padding:1.4rem;}
}

/* ===== Single post / blog layout ===== */
.nqx-article-wrap{padding-block:clamp(2rem,5vw,3.5rem);}
.nqx-article__head{margin-bottom:1.5rem;}
.nqx-article__eyebrow{display:flex;align-items:center;gap:.5rem;font-size:.85rem;color:#8a8a99;margin:0 0 .4rem;}
.nqx-article__cat{color:var(--nqx-accent);font-weight:700;text-decoration:none;}
.nqx-article__cat:hover{text-decoration:underline;}
.nqx-dot{opacity:.45;}
.nqx-article__title{font-size:clamp(2rem,5vw,3.1rem);font-weight:800;line-height:1.05;letter-spacing:-.02em;color:var(--nqx-ink);margin:.2rem 0 1rem;}
.nqx-article__date{color:#9a9aa7;font-size:.95rem;margin:0 0 1.4rem;}
.nqx-article__meta{display:flex;justify-content:space-between;align-items:center;gap:1.5rem 2rem;flex-wrap:wrap;}
.nqx-article__author{display:flex;align-items:center;gap:.75rem;}
.nqx-article__avatar{width:44px;height:44px;border-radius:50%;object-fit:cover;}
.nqx-article__author-meta{display:flex;flex-direction:column;line-height:1.25;}
.nqx-article__author-label{color:var(--nqx-accent);font-weight:600;font-size:.8rem;}
.nqx-article__author-name{color:var(--nqx-ink);font-weight:600;text-decoration:underline;}
.nqx-share{text-align:right;}
.nqx-share__label{display:block;font-weight:700;color:var(--nqx-ink);margin-bottom:.5rem;font-size:.95rem;}
.nqx-share__links{display:flex;gap:.5rem;justify-content:flex-end;}
.nqx-share__link{width:30px;height:30px;border-radius:6px;display:grid;place-items:center;color:#fff;border:0;cursor:pointer;padding:0;transition:transform .15s ease,opacity .15s ease;}
.nqx-share__link:hover{transform:translateY(-2px);opacity:.92;}
.nqx-share__link svg{width:15px;height:15px;}
.nqx-share__link--fb{background:#1877f2;}
.nqx-share__link--li{background:#0a66c2;}
.nqx-share__link--x{background:#0b0b0b;}
.nqx-share__link--ig{background:linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888);}

.nqx-article__body{display:grid;grid-template-columns:280px minmax(0,1fr);gap:2.5rem;align-items:start;margin-top:2rem;}
.nqx-article__aside{position:sticky;top:90px;display:flex;flex-direction:column;gap:1.25rem;}
.nqx-aside__search .search-form{display:flex;flex-direction:column;gap:.6rem;border:1px solid #e7e7ef;border-radius:12px;padding:1rem;}
.nqx-aside__search .search-field{width:100%;padding:.6rem .75rem;border:1px solid #dcdce6;border-radius:8px;font:inherit;background:#fff;color:var(--nqx-ink);}
.nqx-aside__search .search-submit{padding:.55rem .75rem;border:0;border-radius:8px;background:var(--nqx-accent);color:#fff;font-weight:600;cursor:pointer;}
.nqx-aside__search .search-submit:hover{background:var(--nqx-accent-hover);}
.nqx-toc{border:1px solid #e7e7ef;border-radius:12px;padding:1rem 1.1rem;}
.nqx-toc__title{font-size:1rem;font-weight:700;color:var(--nqx-ink);margin:0 0 .7rem;}
.nqx-toc__list{list-style:none;margin:0;padding:0;max-height:360px;overflow:auto;display:flex;flex-direction:column;gap:.55rem;}
.nqx-toc__item a{color:#41414f;text-decoration:none;font-size:.9rem;line-height:1.35;display:block;border-left:2px solid transparent;padding-left:.6rem;}
.nqx-toc__item a:hover{color:var(--nqx-accent);border-left-color:var(--nqx-accent);}
.nqx-toc__item--l1 a{padding-left:1.4rem;}
.nqx-toc__item--l2 a{padding-left:2.2rem;}

.nqx-article__hero{margin:0 0 2rem;}
.nqx-article__hero img{width:100%;height:auto;border-radius:16px;display:block;}
.nqx-article__content{font-size:1.05rem;line-height:1.75;color:#2c2c38;}
.nqx-article__content > *{margin-block:0 1.1rem;}
.nqx-article__content :is(h2,h3,h4){scroll-margin-top:90px;color:var(--nqx-ink);font-weight:700;line-height:1.25;margin-top:2rem;}
.nqx-article__content h2{font-size:1.6rem;}
.nqx-article__content h3{font-size:1.3rem;}
.nqx-article__content img{max-width:100%;height:auto;border-radius:12px;}
.nqx-article__content a{color:var(--nqx-accent);}

.nqx-related{margin-top:3.5rem;}
.nqx-related__title{font-size:1.5rem;font-weight:800;color:var(--nqx-ink);margin:0 0 .5rem;padding-bottom:.75rem;border-bottom:2px solid #ececf2;}
.nqx-related__list{display:flex;flex-direction:column;}
.nqx-related__item{padding:1.3rem 0;border-bottom:1px solid #ececf2;}
.nqx-related__eyebrow{display:flex;align-items:center;gap:.5rem;font-size:.8rem;color:#8a8a99;margin:0 0 .35rem;}
.nqx-related__name{margin:0;font-size:1.2rem;line-height:1.3;}
.nqx-related__name a{color:var(--nqx-ink);text-decoration:none;font-weight:700;}
.nqx-related__name a:hover{color:var(--nqx-accent);}
.nqx-related__meta{display:flex;align-items:center;gap:.5rem;font-size:.8rem;color:#9a9aa7;margin:.5rem 0 0;}
.nqx-related__author{color:var(--nqx-accent);text-decoration:underline;}

@media (max-width:880px){
	.nqx-article__body{grid-template-columns:1fr;gap:1.75rem;}
	.nqx-article__aside{position:static;order:2;}
	.nqx-article__main{order:1;}
	.nqx-share{text-align:left;}
	.nqx-share__links{justify-content:flex-start;}
	.nqx-article__meta{align-items:flex-start;}
}

/* ===== Blog landing / archive ===== */
.nqx-blog{padding-block:clamp(2rem,5vw,3rem);}
.nqx-blog__layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:2.5rem;align-items:start;}
.nqx-blog__sidebar{position:sticky;top:90px;display:flex;flex-direction:column;gap:1.1rem;}
.nqx-blog__filters-title{font-size:1rem;font-weight:700;color:var(--nqx-ink);margin:0;}
.nqx-blog__topics{border:1px solid #e7e7ef;border-radius:12px;padding:1rem 1.1rem;}
.nqx-blog__topics-title{font-size:1rem;font-weight:700;color:var(--nqx-ink);margin:0 0 .7rem;}
.nqx-blog__topics-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.6rem;}
.nqx-blog__topics-list a{color:var(--nqx-accent);text-decoration:none;font-size:.92rem;font-weight:600;}
.nqx-blog__topics-list a:hover{text-decoration:underline;}
.nqx-blog__topics-list .is-active a{color:var(--nqx-ink);}

/* shared card bits */
.nqx-card__eyebrow{display:flex;align-items:center;gap:.45rem;font-size:.8rem;color:#9a9aa7;margin:0 0 .35rem;flex-wrap:wrap;}
.nqx-card__meta{display:flex;align-items:center;gap:.45rem;font-size:.78rem;color:#9a9aa7;margin:.55rem 0 0;flex-wrap:wrap;}
.nqx-card__author{color:var(--nqx-accent);text-decoration:underline;}

/* featured + latest row */
.nqx-blog__herorow{display:grid;grid-template-columns:1.05fr 1fr;gap:2rem;align-items:start;margin-bottom:2.75rem;}
.nqx-feat__media{display:block;}
.nqx-feat__media img{width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;border-radius:14px;display:block;}
.nqx-feat__body{padding-top:.9rem;}
.nqx-feat__title{font-size:1.35rem;font-weight:800;line-height:1.25;margin:.15rem 0 .5rem;}
.nqx-feat__title a{color:var(--nqx-ink);text-decoration:none;}
.nqx-feat__title a:hover{color:var(--nqx-accent);}
.nqx-feat__excerpt{color:#5b5b68;font-size:.95rem;line-height:1.6;margin:0 0 .6rem;}
.nqx-latest__title{font-size:1.05rem;font-weight:700;color:var(--nqx-ink);padding-bottom:.6rem;border-bottom:2px solid #e7e7ef;margin:0 0 1rem;}
.nqx-latest__list{display:flex;flex-direction:column;}
.nqx-latest__item{padding-bottom:1rem;margin-bottom:1rem;border-bottom:1px solid #eee;}
.nqx-latest__item:last-child{border-bottom:0;margin-bottom:0;padding-bottom:0;}
.nqx-latest__name{font-size:1.05rem;font-weight:700;line-height:1.3;margin:.1rem 0;}
.nqx-latest__name a{color:var(--nqx-ink);text-decoration:none;}
.nqx-latest__name a:hover{color:var(--nqx-accent);}

/* category sections */
.nqx-blog__section{margin-bottom:2.75rem;}
.nqx-blog__section-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;border-bottom:2px solid #e7e7ef;padding-bottom:.6rem;margin-bottom:1.3rem;}
.nqx-blog__section-title{font-size:1.2rem;font-weight:800;color:var(--nqx-ink);margin:0;}
.nqx-blog__more{color:var(--nqx-accent);font-weight:600;text-decoration:none;white-space:nowrap;font-size:.9rem;}
.nqx-blog__more:hover{text-decoration:underline;}

/* card grid */
.nqx-card-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.6rem;}
.nqx-card-grid--archive{margin-bottom:2rem;}
.nqx-card__media{display:block;}
.nqx-card__media img{width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:12px;display:block;}
.nqx-card__media--ph{aspect-ratio:16/10;border-radius:12px;background:linear-gradient(135deg,#ece9fd,#f4f4f8);}
.nqx-card__body{padding-top:.75rem;}
.nqx-card__title{font-size:1.02rem;font-weight:700;line-height:1.3;margin:.15rem 0;}
.nqx-card__title a{color:var(--nqx-ink);text-decoration:none;}
.nqx-card__title a:hover{color:var(--nqx-accent);}
.nqx-card__excerpt{color:#5b5b68;font-size:.88rem;line-height:1.55;margin:.35rem 0 0;}

/* archive header */
.nqx-blog__archive-head{margin-bottom:1.75rem;}
.nqx-blog__archive-title{font-size:clamp(1.8rem,4vw,2.6rem);font-weight:800;color:var(--nqx-ink);margin:.2rem 0 0;line-height:1.05;}
.nqx-blog__archive-desc{color:#5b5b68;margin-top:.6rem;max-width:60ch;}

@media (max-width:1024px){
	.nqx-blog__herorow{grid-template-columns:1fr;gap:1.5rem;}
	.nqx-card-grid{grid-template-columns:repeat(2,1fr);}
}
@media (max-width:880px){
	.nqx-blog__layout{grid-template-columns:1fr;gap:1.75rem;}
	.nqx-blog__sidebar{position:static;}
}
@media (max-width:560px){
	.nqx-card-grid{grid-template-columns:1fr;}
}

/* Blog date filter */
.nqx-blog__datefilter{display:flex;flex-direction:column;gap:.4rem;}
.nqx-blog__date-label{font-size:.85rem;font-weight:600;color:var(--nqx-ink);}
.nqx-blog__date-select{width:100%;padding:.55rem .7rem;border:1px solid #dcdce6;border-radius:8px;font:inherit;background:#fff;color:var(--nqx-ink);cursor:pointer;}
.nqx-blog__date-select:focus{outline:2px solid var(--nqx-accent);outline-offset:1px;}

/* Branded pagination */
.nqx-blog .pagination{margin-top:2.5rem;}
.nqx-blog .pagination .nav-links{display:flex;justify-content:center;align-items:center;gap:.55rem;flex-wrap:wrap;}
.nqx-blog .page-numbers{min-width:42px;height:42px;padding:0 .65rem;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:#eef0fb;color:var(--nqx-accent);font-weight:600;font-size:.95rem;line-height:1;text-decoration:none;border:0;transition:background .15s ease,color .15s ease;}
.nqx-blog a.page-numbers:hover{background:#e2e3f7;}
.nqx-blog .page-numbers.current{background:var(--nqx-accent);color:#fff;}
.nqx-blog .page-numbers.dots{background:#eef0fb;color:#9a9aa7;}
.nqx-blog .page-numbers.next,.nqx-blog .page-numbers.prev{font-size:1.2rem;font-weight:700;}

/* ===== Author archive ===== */
.nqx-eyebrow{color:var(--nqx-accent);font-weight:700;font-size:.85rem;letter-spacing:.02em;margin:0;}
.nqx-authorhero{background:#f3f1fb;}
.nqx-authorhero__inner{display:grid;grid-template-columns:1.3fr .85fr;gap:3rem;align-items:center;padding-block:clamp(2.5rem,5vw,4rem);}
.nqx-authorhero__name{font-size:clamp(2rem,5vw,3rem);font-weight:800;line-height:1.05;color:var(--nqx-ink);margin:.25rem 0 .35rem;}
.nqx-authorhero__role{font-weight:700;color:#5b5b68;margin:0 0 1.1rem;}
.nqx-authorhero__bio{color:#3a3a4a;line-height:1.7;}
.nqx-authorhero__bio p{margin:0 0 .8rem;}
.nqx-authorhero__link{margin-top:1rem;color:#6a6a78;}
.nqx-authorhero__link a{color:var(--nqx-accent);text-decoration:underline;}
.nqx-authorhero__media{display:flex;justify-content:flex-end;}
.nqx-authorhero__avatar{width:100%;max-width:340px;aspect-ratio:1/1;height:auto;border-radius:18px;object-fit:cover;display:block;}

.nqx-author{padding-block:clamp(2rem,5vw,3rem);}
.nqx-authors{margin-top:2.5rem;}
.nqx-authors__grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:1.5rem;}
.nqx-author-card{display:flex;flex-direction:column;border:1px solid #e7e7ef;border-radius:14px;overflow:hidden;background:#fff;text-decoration:none;transition:box-shadow .15s ease,transform .15s ease;}
.nqx-author-card:hover{box-shadow:0 10px 30px rgba(20,10,40,.08);transform:translateY(-2px);}
.nqx-author-card__media{display:grid;place-items:center;background:#ece9fd;aspect-ratio:16/10;}
.nqx-author-card__avatar{width:96px;height:96px;border-radius:50%;object-fit:cover;}
.nqx-author-card__body{padding:1rem 1.1rem;}
.nqx-author-card__name{display:block;font-weight:700;color:var(--nqx-ink);}
.nqx-author-card__role{display:block;color:var(--nqx-accent);font-size:.9rem;margin-top:.2rem;}

@media (max-width:880px){
	.nqx-authorhero__inner{grid-template-columns:1fr;gap:1.75rem;}
	.nqx-authorhero__media{justify-content:flex-start;}
	.nqx-authorhero__avatar{max-width:220px;}
}

/* Topic accordion (hierarchical categories) */
.nqx-topic-tree,.nqx-topic__children{list-style:none;margin:0;padding:0;}
.nqx-topic{display:flex;flex-direction:column;gap:.55rem;}
.nqx-topic__row{display:flex;align-items:center;justify-content:space-between;gap:.5rem;}
.nqx-topic__row > a{color:var(--nqx-accent);text-decoration:none;font-size:.92rem;font-weight:600;}
.nqx-topic__row > a:hover{text-decoration:underline;}
.nqx-topic.is-active > .nqx-topic__row > a{color:var(--nqx-ink);}
.nqx-topic__toggle{background:none;border:0;padding:.25rem;margin:0;cursor:pointer;line-height:0;color:#9a9aa7;}
.nqx-topic__toggle:hover{color:var(--nqx-accent);}
.nqx-topic__caret{display:inline-block;width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg);transition:transform .15s ease;}
.nqx-topic.is-open > .nqx-topic__row .nqx-topic__caret{transform:rotate(45deg);}
.nqx-topic__children{margin-top:.55rem;padding-left:.9rem;border-left:1px solid #e7e7ef;display:none;flex-direction:column;gap:.55rem;}
.nqx-topic.is-open > .nqx-topic__children{display:flex;}
.nqx-topic__children .nqx-topic__row > a{font-weight:500;color:#41414f;}
.nqx-topic__children .nqx-topic__row > a:hover{color:var(--nqx-accent);}
.nqx-topic__children .nqx-topic.is-active > .nqx-topic__row > a{color:var(--nqx-accent);font-weight:600;}

/* Brand gradient on the main blog/topic/post titles */
.nqx-article__title,
.nqx-blog__archive-title,
.nqx-authorhero__name{
	background:linear-gradient(90deg,var(--nqx-grad-1) 0%,var(--nqx-grad-2) 50%,var(--nqx-grad-3) 100%);
	-webkit-background-clip:text;
	background-clip:text;
	-webkit-text-fill-color:transparent;
	color:transparent;
	font-weight:600;
}

/* Read More button on cards */
.nqx-readmore{display:inline-flex;align-items:center;gap:.4rem;margin-top:.7rem;color:var(--nqx-accent);font-weight:600;font-size:.9rem;text-decoration:none;}
.nqx-readmore span{transition:transform .15s ease;}
.nqx-readmore:hover{text-decoration:underline;}
.nqx-readmore:hover span{transform:translateX(3px);}

/* Sort by control */
.nqx-blog__listbar{display:flex;justify-content:flex-end;margin-bottom:1.25rem;}
.nqx-sort{display:inline-flex;align-items:center;gap:.5rem;}
.nqx-sort__label{font-size:.72rem;font-weight:700;letter-spacing:.05em;color:#8a8a99;}
.nqx-sort__select{border:0;background:transparent;color:var(--nqx-accent);font-weight:600;font-size:.95rem;cursor:pointer;padding:.25rem 1.4rem .25rem .25rem;border-radius:8px;
	-webkit-appearance:none;appearance:none;
	background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%2349099d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat:no-repeat;background-position:right .35rem center;}
.nqx-sort__select:hover{background-color:#f3f1fb;}
.nqx-sort__select:focus{outline:2px solid var(--nqx-accent);outline-offset:1px;}
