/* ==========================================================================
   NewsHub Modern — theme.css (v4.0.0)
   Barelvii.in design system: blue accent, dark navy nav + footer,
   white cards, 14px radii, soft shadows.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens + reset
   -------------------------------------------------------------------------- */
:root{
  --nh-accent:#2563eb;
  --nh-accent-light:#3b82f6;
  --nh-accent-dark:#1d4ed8;
  --nh-navy:#0f172a;
  --nh-navy-2:#1e293b;
  --nh-navy-3:#334155;
  --nh-bg:#f8fafc;
  --nh-bg-2:#f1f5f9;
  --nh-card:#ffffff;
  --nh-text:#0f172a;
  --nh-body:#475569;
  --nh-muted:#64748b;
  --nh-faint:#94a3b8;
  --nh-line:#e2e8f0;
  --nh-radius:16px;
  --nh-radius-sm:12px;
  --nh-radius-xs:8px;
  --nh-shadow:0 1px 3px rgba(15,23,42,.04), 0 4px 12px rgba(15,23,42,.06);
  --nh-shadow-md:0 4px 16px rgba(15,23,42,.08), 0 8px 24px rgba(15,23,42,.06);
  --nh-shadow-lg:0 8px 24px rgba(15,23,42,.12), 0 16px 48px rgba(15,23,42,.10);
  --nh-shadow-xl:0 12px 32px rgba(15,23,42,.16), 0 24px 64px rgba(15,23,42,.12);
  --nh-max:1240px;
  --nh-grid-columns:3;
  --nh-transition:all .3s cubic-bezier(.4,0,.2,1);

  /* category palette */
  --cat-blue:#2563eb;
  --cat-purple:#7c3aed;
  --cat-orange:#f97316;
  --cat-green:#10b981;
  --cat-red:#ef4444;
  --cat-teal:#0d9488;
  --cat-pink:#db2777;
  --cat-amber:#d97706;
}

*,*::before,*::after{box-sizing:border-box}
html{
  -webkit-text-size-adjust:100%;
  scroll-behavior:smooth;
  overflow-x:clip;
  max-width:100vw;
  width:100%;
}
body{
  margin:0;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  background:var(--nh-bg);
  color:var(--nh-text);
  font-family:"Inter",system-ui,-apple-system,"Segoe UI","Noto Sans Devanagari","Noto Sans",Roboto,Arial,sans-serif;
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:clip;
  max-width:100vw;
  width:100%;
  position:relative;
}
img,picture,video,canvas,svg{display:block;max-width:100%;height:auto}
a{color:inherit;text-decoration:none}
a:hover{color:var(--nh-accent)}
button,input,select,textarea{font:inherit;color:inherit}
ul,ol{margin:0;padding:0;list-style:none}
h1,h2,h3,h4{margin:0;font-weight:800;line-height:1.25;letter-spacing:-.02em}
p{margin:0}
svg{display:block;flex:0 0 auto}

/* --------------------------------------------------------------------------
   2. Icons
   -------------------------------------------------------------------------- */
.nh-icon{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.nh-icon--sm{width:15px;height:15px}
.nh-icon--lg{width:24px;height:24px}
.nh-icon--flip{transform:rotate(180deg)}

/* --------------------------------------------------------------------------
   3. Buttons + badges
   -------------------------------------------------------------------------- */
.nh-btn{
  display:inline-flex;align-items:center;gap:8px;
  padding:11px 20px;border-radius:999px;border:1px solid transparent;
  font-size:14px;font-weight:700;line-height:1.2;cursor:pointer;
  transition:transform .18s ease,background-color .18s ease,color .18s ease,box-shadow .18s ease;
}
.nh-btn:hover{transform:translateY(-2px)}
.nh-btn--primary{background:var(--nh-accent);color:#fff}
.nh-btn--primary:hover{background:#1d4ed8;color:#fff;box-shadow:0 8px 20px rgba(37,99,235,.35)}
.nh-btn--light{background:#fff;color:var(--nh-navy)}
.nh-btn--light:hover{background:var(--nh-accent);color:#fff}
.nh-btn--ghost{background:rgba(255,255,255,.08);color:#fff;border-color:rgba(255,255,255,.25)}
.nh-btn--ghost:hover{background:#fff;color:var(--nh-navy)}
.nh-btn--block{display:flex;width:100%;justify-content:center}

.nh-badge{
  display:inline-flex;align-items:center;gap:5px;
  background:var(--cat-color,var(--nh-accent));color:#fff;
  padding:4px 11px;border-radius:6px;
  font-size:11.5px;font-weight:700;line-height:1.4;
  text-transform:uppercase;letter-spacing:.03em;
}
.nh-badge:hover{filter:brightness(1.08);color:#fff}

/* --------------------------------------------------------------------------
   4. Layout helpers
   -------------------------------------------------------------------------- */
.nh-container{width:min(var(--nh-max),calc(100% - 40px));margin-inline:auto}
.nh-container--narrow{max-width:860px}
.nh-container--wide{max-width:1000px}
.nh-main{flex:1 0 auto;padding-bottom:20px}

.nh-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:26px;align-items:start}
.nh-layout--full{grid-template-columns:minmax(0,1fr)}
.nh-layout--article{grid-template-columns:minmax(0,1fr) 300px}
.nh-sidebar{
  display:flex;flex-direction:column;gap:22px;position:sticky;top:64px;align-self:start;
  height:fit-content;width:100%;max-width:300px;min-width:0;box-sizing:border-box;
}
.admin-bar .nh-sidebar{top:96px}
.nh-sidebar .nh-widget,
.nh-sidebar .nh-panel,
.nh-sidebar .widget,
.nh-sidebar section{
  width:100%;max-width:100%;min-width:0;box-sizing:border-box;
  overflow:hidden;word-wrap:break-word;word-break:break-word;
}
.nh-sidebar .nh-ad-slot,
.nh-sidebar .nh-ad-wrap,
.nh-sidebar ins.adsbygoogle,
.nh-sidebar iframe,
.nh-sidebar img,
.nh-sidebar video{
  max-width:100% !important;box-sizing:border-box !important;
}
.nh-sidebar ins.adsbygoogle{
  display:block !important;margin-inline:auto !important;text-align:center;
}
.nh-sidebar .alignwide,
.nh-sidebar .alignfull,
.nh-sidebar .wp-block-navigation,
.nh-sidebar ul,
.nh-sidebar ol{
  max-width:100% !important;margin-left:0 !important;margin-right:0 !important;width:auto !important;
}
.nh-panel--sticky-ad{position:sticky;top:64px;z-index:15;background:transparent !important;border:none !important;border-radius:0 !important;padding:0 !important;box-shadow:none !important;text-align:center;width:100%}
.admin-bar .nh-panel--sticky-ad{top:96px}
.nh-panel--sticky-ad .nh-ad-slot__label{display:none !important}
.nh-panel--sticky-ad .nh-ad-slot__content{display:flex;justify-content:center;align-items:center;min-height:0 !important;width:100%;overflow:hidden}

.nh-panel{background:var(--nh-card);border-radius:var(--nh-radius);padding:22px;box-shadow:var(--nh-shadow)}
.nh-panel__title{font-size:19px;margin-bottom:16px;display:flex;align-items:center;gap:8px}
.nh-panel__title::before{content:"";width:4px;height:20px;border-radius:2px;background:var(--nh-accent)}

/* skip link */
.nh-skip-link{
  position:absolute;left:-999px;top:8px;z-index:10000;
  background:var(--nh-navy);color:#fff;padding:10px 16px;border-radius:8px;font-weight:600;
}
.nh-skip-link:focus{left:8px;color:#fff}

/* --------------------------------------------------------------------------
   6. Header (logo + nav inline)
   -------------------------------------------------------------------------- */
.nh-header{background:#fff;border-bottom:1px solid var(--nh-line);position:relative;z-index:90}
body.nh-menu-open .nh-header{position:relative;z-index:100000 !important}
body.nh-menu-open .nh-cat-bar{z-index:1 !important}
.nh-drawer-backdrop{
  position:fixed;inset:0;background:rgba(15,23,42,.55);
  backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);
  z-index:99990;opacity:0;visibility:hidden;
  transition:opacity .3s ease,visibility .3s ease;pointer-events:none;
}
body.nh-menu-open .nh-drawer-backdrop{opacity:1;visibility:visible;pointer-events:auto}
.nh-header__inner{
  width:min(var(--nh-max),calc(100% - 40px));margin-inline:auto;
  display:flex;align-items:center;gap:12px;padding:6px 0;min-height:48px;
}
.nh-brand{display:flex;align-items:center;min-width:0}
.nh-brand__link{display:flex;align-items:center}
.nh-brand__logo{height:32px;max-height:34px;width:auto;display:block}
.nh-brand .custom-logo{max-height:34px;width:auto}
.nh-menu-toggle{display:none}
.nh-header__actions{display:flex;align-items:center;gap:10px;margin-left:auto;flex:0 0 auto}
.nh-icon-btn{
  width:36px;height:36px;border-radius:50%;border:1px solid var(--nh-line);
  background:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;
  transition:background-color .18s ease,color .18s ease,border-color .18s ease;
}
.nh-icon-btn:hover{background:var(--nh-bg-2);border-color:var(--nh-faint);color:var(--nh-navy)}
.nh-icon-btn.nh-search-toggle{
  width:var(--nh-search-btn-size, 36px);
  height:var(--nh-search-btn-size, 36px);
  color:var(--nh-search-icon-color, var(--nh-navy,#0f172a));
  background-color:var(--nh-search-icon-bg, #ffffff);
  border-radius:var(--nh-search-icon-radius, 50%);
  border:var(--nh-search-icon-border, 1px solid var(--nh-line));
}
.nh-icon-btn.nh-search-toggle svg{
  width:var(--nh-search-icon-size, 20px);
  height:var(--nh-search-icon-size, 20px);
}
.nh-icon-btn.nh-search-toggle:hover{
  color:var(--nh-search-icon-hover-color, var(--nh-accent,#2563eb));
  background-color:var(--nh-search-icon-hover-bg, var(--nh-bg-2,#f1f5f9));
}

/* Navigation — centered in the header on desktop */
.nh-nav{margin:0 auto;min-width:0;flex:1;background-color:#ffffff}
.nh-nav__header{display:none !important}
@media (min-width:768px){.nh-nav__header{display:none !important}}
.nh-nav__menu{display:flex;align-items:center;justify-content:center;gap:0;list-style:none;padding:0;margin:0;overflow-x:auto;scrollbar-width:none}
.nh-nav__menu::-webkit-scrollbar{display:none}
.nh-nav__menu .menu-item{position:relative;white-space:nowrap}
.nh-nav__menu .menu-item > a{
  display:block;padding:8px 12px;border-radius:8px;color:var(--nh-navy);
  font-size:13.5px;font-weight:600;transition:background-color .18s ease,color .18s ease;
}
.nh-nav__menu .menu-item > a:hover{background:var(--nh-bg-2);color:var(--nh-accent)}
.nh-nav__menu .current-menu-item > a,.nh-nav__menu .current-menu-ancestor > a{background:var(--nh-accent);color:#fff}
.nh-nav__menu .sub-menu{
  position:absolute;left:0;top:100%;min-width:220px;padding:8px;
  background:#fff;border-radius:12px;box-shadow:var(--nh-shadow-lg);border:1px solid var(--nh-line);
  opacity:0;visibility:hidden;transform:translateY(8px);transition:all .2s ease;
}
.nh-nav__menu .menu-item:hover > .sub-menu,
.nh-nav__menu .menu-item:focus-within > .sub-menu{opacity:1;visibility:visible;transform:translateY(4px)}
.nh-nav__menu .sub-menu a{display:block;padding:9px 14px;border-radius:8px;font-size:13.5px;color:var(--nh-body)}
.nh-nav__menu .sub-menu a:hover{background:var(--nh-bg-2);color:var(--nh-accent)}
.nh-nav__menu .menu-item-has-children > a::after{content:"⌄";margin-left:6px;opacity:.7;font-size:11px}

/* Search panel */
.nh-search-panel{
  position:fixed;inset:0;z-index:9000;
  background:rgba(15,23,42,.65);backdrop-filter:blur(8px);
  display:flex;justify-content:center;align-items:flex-start;padding-top:14vh;
}
.nh-search-panel[hidden]{display:none}
.nh-search-panel__inner{width:min(720px,calc(100% - 32px));position:relative}
.nh-search-form{
  display:flex;align-items:center;gap:12px;background:#fff;
  padding:8px 10px 8px 20px;border-radius:18px;box-shadow:0 12px 36px rgba(15,23,42,.18);
  border:1px solid #e2e8f0;position:relative;transition:all .2s ease;
}
.nh-search-form:focus-within{
  border-color:var(--nh-accent);box-shadow:0 14px 40px rgba(37,99,235,.2);
}
.nh-search-form__icon{color:var(--nh-accent);display:inline-flex}
.nh-search-form__icon svg{width:20px;height:20px}
.nh-search-form input{
  flex:1;min-width:0;border:0;outline:0;background:transparent;font-size:17px;padding:12px 0;
  color:#0f172a;font-weight:550;
}
.nh-search-spinner{
  width:20px;height:20px;border:2.5px solid #e2e8f0;border-top-color:var(--nh-accent);
  border-radius:50%;animation:nhSpin .65s linear infinite;margin-right:6px;flex-shrink:0;
}
@keyframes nhSpin{to{transform:rotate(360deg)}}
.nh-search-form__submit{
  padding:11px 22px;border:0;border-radius:12px;background:var(--nh-accent);color:#fff;
  font-weight:750;font-size:14px;cursor:pointer;transition:all .18s ease;box-shadow:0 2px 8px rgba(37,99,235,.25);
}
.nh-search-form__submit:hover{background:#1d4ed8;transform:translateY(-1px)}
.nh-search-panel__close{
  position:absolute;right:0;top:-48px;width:38px;height:38px;border-radius:50%;
  border:0;background:#fff;color:var(--nh-navy);cursor:pointer;
  display:flex;align-items:center;justify-content:center;box-shadow:var(--nh-shadow);
  transition:all .18s ease;
}
.nh-search-panel__close:hover{background:var(--nh-accent);color:#fff}

/* Live Ajax Search Dropdown & Card List */
.nh-search-results{
  position:absolute;top:calc(100% + 12px);left:0;right:0;
  background:#fff;border-radius:18px;border:1px solid #e2e8f0;
  box-shadow:0 24px 50px -10px rgba(15,23,42,.25), 0 0 0 1px rgba(15,23,42,.04);
  overflow:hidden;max-height:min(580px,65vh);display:flex;flex-direction:column;
  z-index:9002;animation:nhFadeDown .2s cubic-bezier(0.16,1,0.3,1);
}
@keyframes nhFadeDown{
  from{opacity:0;transform:translateY(-8px)}
  to{opacity:1;transform:translateY(0)}
}
.nh-search-results__head{
  padding:12px 20px;background:#f8fafc;border-bottom:1px solid #f1f5f9;
  display:flex;align-items:center;justify-content:space-between;
  font-size:12px;font-weight:750;color:#64748b;text-transform:uppercase;letter-spacing:.06em;
}
.nh-search-results__count{
  background:color-mix(in srgb,var(--nh-accent) 12%,transparent);
  color:var(--nh-accent);padding:2px 8px;border-radius:999px;font-size:11.5px;
}
.nh-search-results__list{
  list-style:none;margin:0;padding:8px;overflow-y:auto;overscroll-behavior:contain;
  max-height:420px;-webkit-overflow-scrolling:touch;
}
.nh-search-results__item{
  border-radius:12px;transition:all .18s ease;margin-bottom:3px;
}
.nh-search-results__item:last-child{margin-bottom:0}
.nh-search-results__item.is-selected,
.nh-search-results__item:hover{
  background:#f1f5f9;transform:translateX(3px);
}
.nh-search-results__link{
  display:flex;align-items:center;gap:14px;padding:10px 12px;text-decoration:none;
}
.nh-search-results__thumb{
  width:64px;height:64px;border-radius:10px;object-fit:cover;flex-shrink:0;
  background:#e2e8f0;box-shadow:0 1px 3px rgba(0,0,0,.08);
}
.nh-search-results__thumb-placeholder{
  width:64px;height:64px;border-radius:10px;background:#f1f5f9;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;color:#94a3b8;
}
.nh-search-results__thumb-placeholder svg{width:22px;height:22px}
.nh-search-results__content{min-width:0;flex:1}
.nh-search-results__meta-top{
  display:flex;align-items:center;gap:8px;font-size:11px;font-weight:700;margin-bottom:4px;
}
.nh-search-results__cat{
  padding:2px 7px;border-radius:4px;font-size:10.5px;text-transform:uppercase;
  letter-spacing:.04em;color:#fff;
}
.nh-search-results__title{
  margin:0 0 4px;font-size:14.5px;font-weight:750;color:var(--nh-navy);
  line-height:1.35;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;
  -webkit-line-clamp:2;-webkit-box-orient:vertical;
}
.nh-search-results__title mark{
  background:rgba(254,240,138,.65);color:inherit;padding:1px 3px;border-radius:3px;
  font-weight:800;
}
.nh-search-results__meta-bottom{
  display:flex;align-items:center;gap:8px;font-size:12px;color:#64748b;font-weight:550;
}
.nh-search-results__footer{
  padding:12px 20px;background:#f8fafc;border-top:1px solid #e2e8f0;
  display:flex;align-items:center;justify-content:space-between;
}
.nh-search-results__all-link{
  display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:750;
  color:var(--nh-accent);text-decoration:none;transition:all .18s ease;
}
.nh-search-results__all-link:hover{transform:translateX(3px);color:#b91c1c}
.nh-search-results__all-link svg{width:14px;height:14px}
.nh-search-results__empty{
  padding:36px 20px;text-align:center;color:#64748b;
}
.nh-search-results__empty-icon{
  width:44px;height:44px;border-radius:50%;background:#f1f5f9;color:#94a3b8;
  display:flex;align-items:center;justify-content:center;margin:0 auto 12px;
}
.nh-search-results__empty-icon svg{width:22px;height:22px}
.nh-search-results__empty-title{font-size:15px;font-weight:750;color:var(--nh-navy);margin:0 0 6px}
.nh-search-results__empty-text{font-size:13px;margin:0}

/* Mobile Search Optimization */
@media (max-width:767px){
  .nh-search-panel{padding-top:10vh}
  .nh-search-panel__inner{width:calc(100% - 24px)}
  .nh-search-form{padding:6px 8px 6px 14px;border-radius:14px}
  .nh-search-form input{font-size:15px;padding:10px 0}
  .nh-search-form__submit{padding:9px 14px;font-size:13px}
  .nh-search-results{max-height:75vh}
  .nh-search-results__thumb{width:54px;height:54px}
  .nh-search-results__title{font-size:13.5px}
}

/* page-embedded search form */
.nh-search-form--page{width:100%;max-width:560px;margin:20px auto 0}

/* --------------------------------------------------------------------------
   9. Hero (carousel 65% + side 35%)
   -------------------------------------------------------------------------- */
.nh-hero{
  width:min(var(--nh-max),calc(100% - 40px));margin:26px auto 0;
  display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:20px;
}
.nh-hero__main{min-width:0;position:relative}

.nh-carousel{
  position:relative;border-radius:var(--nh-radius);overflow:hidden;
  background:var(--nh-navy-2);box-shadow:var(--nh-shadow-lg);
  height:clamp(360px,44vw,520px);
}
.nh-carousel__slide{
  position:absolute;inset:0;opacity:0;visibility:hidden;
  transition:opacity .6s ease,visibility 0s linear .6s;
}
.nh-carousel__slide.is-active{opacity:1;visibility:visible;transition:opacity .6s ease,visibility 0s linear 0s}

/* CSS-only fallback: rotates the slides with no JS, then the script takes over
   by stripping the .no-js flag. Guarantees motion if the bundle never runs. */
@keyframes nh-carousel-fallback{
  0%{opacity:1;visibility:visible}
  16.66%{opacity:1;visibility:visible}
  20%,100%{opacity:0;visibility:hidden}
}
.nh-carousel.no-js .nh-carousel__slide{
  opacity:0;visibility:hidden;
  animation:nh-carousel-fallback 30s linear infinite;
}
.nh-carousel.no-js .nh-carousel__slide:nth-child(1){animation-delay:0s}
.nh-carousel.no-js .nh-carousel__slide:nth-child(2){animation-delay:-24s}
.nh-carousel.no-js .nh-carousel__slide:nth-child(3){animation-delay:-18s}
.nh-carousel.no-js .nh-carousel__slide:nth-child(4){animation-delay:-12s}
.nh-carousel.no-js .nh-carousel__slide:nth-child(5){animation-delay:-6s}
.nh-carousel__media{position:absolute;inset:0;display:block;overflow:hidden}
.nh-carousel__media img{width:100%;height:100%;object-fit:cover;transition:transform 6s ease}
.nh-carousel__slide.is-active .nh-carousel__media img{transform:scale(1.06)}
.nh-carousel__scrim{
  position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(90deg,rgba(15,23,42,.88) 0%,rgba(15,23,42,.5) 45%,rgba(15,23,42,.05) 70%),
             linear-gradient(0deg,rgba(15,23,42,.85) 0%,transparent 52%);
}
.nh-carousel__content{
  position:absolute;z-index:2;left:0;right:0;bottom:0;
  padding:clamp(22px,4vw,52px);color:#fff;
  max-width:min(820px,100%);
}
.nh-carousel__title{font-size:clamp(24px,3.6vw,46px);line-height:1.18;letter-spacing:-.5px;margin:12px 0 12px}
.nh-carousel__title a{color:#fff}
.nh-carousel__title a:hover{color:#bfdbfe}
.nh-carousel__excerpt{font-size:clamp(14px,1.35vw,17px);color:rgba(255,255,255,.85);max-width:660px;margin-bottom:18px}
.nh-carousel__bottom{display:flex;align-items:center;gap:20px;flex-wrap:wrap}
.nh-carousel__bottom .nh-meta{color:#cbd5e1}

.nh-carousel__arrow{
  position:absolute;top:50%;transform:translateY(-50%);z-index:10;pointer-events:auto;
  width:44px;height:44px;border-radius:50%;border:0;cursor:pointer;
  background:rgba(255,255,255,.2);color:#fff;
  display:flex;align-items:center;justify-content:center;
  backdrop-filter:blur(8px);transition:background-color .18s ease,transform .18s ease;
}
.nh-carousel__arrow:hover{background:#fff;color:var(--nh-navy);transform:translateY(-50%) scale(1.08)}
.nh-carousel__arrow--prev{left:16px}
.nh-carousel__arrow--next{right:16px}
.nh-carousel__dots{position:absolute;bottom:18px;right:22px;z-index:10;pointer-events:auto;display:flex;gap:7px}
.nh-carousel__dot{
  width:9px;height:9px;border-radius:50%;border:0;cursor:pointer;
  background:rgba(255,255,255,.4);transition:all .2s ease;padding:0;
}
.nh-carousel__dot.is-active{background:#fff;width:26px;border-radius:5px}

/* side featured cards */
.nh-hero__side{display:grid;grid-template-rows:repeat(4,minmax(0,1fr));gap:14px;min-width:0}
.nh-hero-side-card{
  display:grid;grid-template-columns:104px minmax(0,1fr);gap:13px;align-items:center;
  background:#fff;border-radius:12px;padding:10px;box-shadow:var(--nh-shadow);
  transition:transform .18s ease,box-shadow .18s ease;
}
.nh-hero-side-card:hover{transform:translateY(-3px);box-shadow:var(--nh-shadow-lg)}
.nh-hero-side-card__media{display:block;border-radius:9px;overflow:hidden;aspect-ratio:1/1;background:var(--nh-bg-2)}
.nh-hero-side-card__media img{width:100%;height:100%;object-fit:cover}
.nh-hero-side-card__body{min-width:0;display:flex;flex-direction:column;gap:6px}
.nh-hero-side-card__title{font-size:14.5px;line-height:1.35;font-weight:700;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.nh-hero-side-card__title a:hover{color:var(--nh-accent)}
.nh-hero-side-card__date{font-size:11px;color:var(--nh-faint)}

/* --------------------------------------------------------------------------
   10. Category tabs (mobile strip)
   -------------------------------------------------------------------------- */
.nh-cat-tabs{display:flex;gap:9px;overflow-x:auto;padding:16px 0 4px;scrollbar-width:none}
.nh-cat-tabs::-webkit-scrollbar{display:none}
.nh-cat-tabs__item{
  flex:0 0 auto;padding:8px 16px;border-radius:999px;
  background:#fff;border:1px solid var(--nh-line);color:var(--nh-body);
  font-size:13px;font-weight:650;transition:all .18s ease;
}
.nh-cat-tabs__item:hover{border-color:var(--nh-accent);color:var(--nh-accent)}
.nh-cat-tabs__item.is-active{background:var(--cat-color,var(--nh-accent));border-color:var(--cat-color,var(--nh-accent));color:#fff}

/* --------------------------------------------------------------------------
   11. Category icons
   -------------------------------------------------------------------------- */
/* Horizontal category & icons bar (sticky at top on scroll, desktop & mobile) */
.nh-cat-bar{
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(226,232,240,.9);
  position:sticky !important;
  top:0 !important;
  z-index:99 !important;
  display:block;
  box-shadow:0 2px 10px rgba(15,23,42,.04),0 1px 2px rgba(15,23,42,.03);
  padding:5px 0;
}
.admin-bar .nh-cat-bar{top:32px !important}
@media (max-width:782px){.admin-bar .nh-cat-bar{top:46px !important}}
@media (max-width:600px){.admin-bar .nh-cat-bar{top:0 !important}}

/* Desktop nav: hide cat-icons in nav (they're in cat-bar) */
@media (min-width:861px){
  .nh-header .nh-nav > .nh-cat-icons{display:none}
}
/* Mobile nav: hide WP menu, show cat-icons in drawer */
@media (max-width:860px){
  .nh-nav > .nh-nav__menu{display:none}
  .nh-nav > .nh-cat-icons{display:block}
}
.nh-cat-bar__inner{
  width:min(var(--nh-max),calc(100% - 32px));margin-inline:auto;
  display:flex;align-items:center;gap:10px;position:relative;
}
.nh-cat-arrow{
  display:none;
  width:32px;height:32px;border-radius:50%;border:1px solid #e2e8f0;
  background:#fff;color:var(--nh-navy);align-items:center;justify-content:center;
  cursor:pointer;flex-shrink:0;z-index:2;box-shadow:0 1px 4px rgba(15,23,42,.08);
  transition:all .18s ease;padding:0;
}
@media (min-width:861px){
  .nh-cat-arrow{display:flex}
}
.nh-cat-arrow:hover{
  background:var(--nh-accent,#2563eb);color:#fff;border-color:var(--nh-accent,#2563eb);transform:scale(1.08);
}
.nh-cat-arrow:disabled,
.nh-cat-arrow[aria-disabled="true"]{
  opacity:0.35;cursor:default;pointer-events:none;transform:none;
}
[data-theme="dark"] .nh-cat-arrow{
  background:#1e293b;border-color:#334155;color:#cbd5e1;box-shadow:0 1px 4px rgba(0,0,0,.3);
}
[data-theme="dark"] .nh-cat-arrow:hover{
  background:var(--nh-accent,#2563eb);color:#fff;border-color:var(--nh-accent,#2563eb);
}
.nh-cat-bar__track-wrap{
  flex:1;min-width:0;position:relative;overflow:hidden;
}
.nh-cat-bar .nh-cat-icons{
  width:100%;margin:0;
  display:flex;align-items:center;gap:8px;padding:3px 0;
  overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;
  scroll-behavior:smooth;
  -webkit-user-select:none;
  user-select:none;
}
.nh-cat-bar .nh-cat-icons.is-dragging{
  scroll-behavior:auto;
}
.nh-cat-bar .nh-cat-icons::-webkit-scrollbar{display:none}
.nh-cat-bar .nh-cat-icons__title{display:none}
.nh-cat-bar .nh-cat-icons__arrow{display:none}

/* Modern Chip / Capsule Pill Item */
.nh-cat-bar .nh-cat-icons__item{
  display:inline-flex;align-items:center;gap:8px;white-space:nowrap;flex-shrink:0;
  padding:5px 14px 5px 6px;border-radius:999px;text-decoration:none;
  background:#f8fafc;border:1px solid #e2e8f0;
  color:var(--nh-navy);font-size:13px;font-weight:650;
  box-shadow:0 1px 2px rgba(15,23,42,.03);
  transition:all .2s cubic-bezier(.16,1,.3,1);
}
.nh-cat-bar .nh-cat-icons__item:hover{
  background:color-mix(in srgb,var(--cat-color,#2563eb) 12%,#fff);
  border-color:color-mix(in srgb,var(--cat-color,#2563eb) 35%,transparent);
  color:var(--cat-color,#2563eb);
  transform:translateY(-1px);
  box-shadow:0 3px 8px color-mix(in srgb,var(--cat-color,#2563eb) 16%,transparent);
}
.nh-cat-bar .nh-cat-icons__icon{
  width:26px;height:26px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  background:color-mix(in srgb,var(--cat-color,#2563eb) 16%,#fff);
  color:var(--cat-color,#2563eb);flex-shrink:0;
  transition:transform .2s ease;
  box-shadow:0 1px 2px rgba(0,0,0,.04);
}
.nh-cat-bar .nh-cat-icons__icon svg{width:14px;height:14px}
.nh-cat-bar .nh-cat-icons__item:hover .nh-cat-icons__icon{
  transform:scale(1.1);
}

@media (max-width:860px){
  .nh-cat-bar{padding:4px 0}
  .nh-cat-bar__inner{width:100% !important;max-width:100% !important;margin:0 !important;padding:0 !important;gap:0 !important;display:block !important}
  .nh-cat-bar__track-wrap{width:100% !important;max-width:100% !important;margin:0 !important;padding:0 !important;overflow:visible !important}
  .nh-cat-arrow,
  .nh-hide-on-mobile,
  #nh-cat-prev-btn,
  #nh-cat-next-btn{
    display:none !important;
    visibility:hidden !important;
    pointer-events:none !important;
    width:0 !important;
    height:0 !important;
    min-width:0 !important;
    max-width:0 !important;
    margin:0 !important;
    padding:0 !important;
    border:none !important;
    background:transparent !important;
    background-color:transparent !important;
    box-shadow:none !important;
    position:absolute !important;
    left:-9999px !important;
    top:-9999px !important;
  }
  .nh-cat-bar .nh-cat-icons{
    width:100% !important;padding:2px 10px !important;gap:6px !important;
    -webkit-overflow-scrolling:touch !important;
    overflow-x:auto !important;
  }
  .nh-cat-bar .nh-cat-icons__item{
    padding:4px 11px 4px 5px;font-size:12px;
  }
  .nh-cat-bar .nh-cat-icons__icon{
    width:24px;height:24px;
  }
  .nh-cat-bar .nh-cat-icons__icon svg{
    width:13px;height:13px;
  }
}



/* --------------------------------------------------------------------------
   12. Sections
   -------------------------------------------------------------------------- */
.nh-section{margin:28px 0}
.nh-main > .nh-section:last-child{margin-bottom:0}
.nh-section--latest{padding:4px 0 0}
.nh-section-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:20px}
.nh-section-head:empty{display:none!important;margin:0!important;padding:0!important}
.nh-section-head__title{font-size:clamp(20px,2vw,26px);display:flex;align-items:center;gap:10px}
.nh-section-head__title:empty{display:none!important;margin:0!important;padding:0!important}
.nh-section-head__title::before{content:"";width:4px;height:24px;border-radius:2px;background:var(--nh-accent)}
.nh-section-head__title:empty::before{display:none!important}
.nh-section-head__icon-wrap{display:inline-flex;align-items:center;flex-shrink:0}
.nh-section-head__title svg{color:var(--nh-accent)}
.nh-section-head--dark .nh-section-head__title{color:#fff}
.nh-section-head--dark .nh-section-head__title::before{background:#fff}
.nh-section-head__link{display:inline-flex;align-items:center;gap:5px;font-size:13px;font-weight:700;color:var(--nh-accent);white-space:nowrap}
.nh-section-head--dark .nh-section-head__link{color:#93c5fd}
.nh-section-head__link:hover{gap:9px}

/* ==========================================================================
   13. Card grid — Modern, polished, smooth transitions
   ========================================================================== */
.nh-card-grid{display:grid;grid-template-columns:repeat(var(--nh-grid-columns),minmax(0,1fr));gap:24px}
.nh-grid-single{grid-template-columns:1fr!important}
.nh-grid--grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:24px}
.nh-grid--overlay{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:24px}
.nh-grid--horizontal,
.nh-grid--list{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:20px;
}
.nh-grid--compact{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:16px;
}
.nh-grid--lead-wrap{display:grid!important;grid-template-columns:1fr!important;gap:24px}

@media (max-width:1100px){
  .nh-grid--compact{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px}
}
@media (max-width:860px){
  .nh-grid--grid,
  .nh-grid--overlay{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px}
  .nh-grid--horizontal,
  .nh-grid--list{grid-template-columns:1fr!important;gap:16px}
  .nh-grid--compact{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px}
}
@media (max-width:540px){
  .nh-grid--grid,
  .nh-grid--overlay,
  .nh-grid--horizontal,
  .nh-grid--list,
  .nh-grid--compact{grid-template-columns:1fr!important;gap:14px}
}
.nh-grid-cols-1{--nh-grid-columns:1}
.nh-grid-cols-2{--nh-grid-columns:2}
.nh-grid-cols-3{--nh-grid-columns:3}
.nh-grid-cols-4{--nh-grid-columns:4}

/* Base card — modern design with hover glow */
.nh-card{
  position:relative;background:var(--nh-card);border-radius:var(--nh-radius);
  overflow:hidden;box-shadow:var(--nh-shadow);
  border:1px solid rgba(226,232,240,.5);
  transition:var(--nh-transition);
  display:flex;flex-direction:column;
}
.nh-card::before{
  content:'';position:absolute;inset:0;border-radius:var(--nh-radius);
  box-shadow:inset 0 0 0 0 var(--nh-accent);
  transition:var(--nh-transition);
  pointer-events:none;z-index:5;
}
.nh-card:hover{transform:translateY(-6px);box-shadow:var(--nh-shadow-xl);border-color:transparent}
.nh-card:hover::before{box-shadow:inset 0 0 0 2px var(--nh-accent)}
.nh-card__media{display:block;overflow:hidden;background:var(--nh-bg-2);position:relative}
.nh-card__media::after{
  content:'';position:absolute;inset:0;
  background:linear-gradient(to bottom,transparent 60%,rgba(15,23,42,.15) 100%);
  opacity:0;transition:opacity .3s ease;
}
.nh-card:hover .nh-card__media::after{opacity:1}
.nh-card__media img{width:100%;height:100%;object-fit:cover;transition:transform .5s cubic-bezier(.4,0,.2,1)}
.nh-card:hover .nh-card__media img{transform:scale(1.08)}
.nh-card__media-wrap{position:relative;display:block;overflow:hidden;background:var(--nh-bg-2)}
.nh-card__scrim{
  position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(to top,rgba(15,23,42,.85) 0%,rgba(15,23,42,.4) 55%,transparent 85%);
}
.nh-card__scrim--strong{background:linear-gradient(to top,rgba(10,15,30,.92) 0%,rgba(10,15,30,.5) 50%,rgba(10,15,30,.06) 80%)}

/* Category Badge — pill shape matching reference */
.nh-card__badge{position:absolute;left:14px;top:14px;z-index:3;transition:var(--nh-transition)}
.nh-card:hover .nh-card__badge{transform:scale(1.04)}
.nh-card__badge .nh-badge{
  background:var(--cat-color,var(--nh-accent));color:#fff;
  border-radius:6px;padding:4px 11px;
  box-shadow:0 2px 6px rgba(0,0,0,.18);
  font-size:11px;font-weight:700;letter-spacing:.3px;
  line-height:1.3;display:inline-flex;align-items:center;
}
.nh-card__badge--inline{position:static;display:inline-flex}
.nh-card__badge--hide-desktop{display:none}

/* Bookmark button on top-right of image (matches reference image #1, #2, #3, #10, #17) */
.nh-card__bookmark{
  position:absolute;right:12px;top:12px;z-index:4;
  width:32px;height:32px;border-radius:8px;border:0;
  background:rgba(15,23,42,.35);color:#fff;backdrop-filter:blur(6px);
  display:flex;align-items:center;justify-content:center;cursor:pointer;
  transition:all .18s ease;padding:0;
}
.nh-card__bookmark:hover{background:#fff;color:var(--nh-navy);transform:scale(1.08);box-shadow:0 3px 10px rgba(0,0,0,.15)}
.nh-card__bookmark.is-saved{background:#f59e0b!important;color:#fff!important;box-shadow:0 4px 14px rgba(245,158,11,.45)!important}
.nh-card__bookmark.is-saved svg,
.nh-card__bookmark.is-saved svg path{fill:currentColor}
.nh-card__bookmark--inline{position:static;background:none;color:var(--nh-faint);width:26px;height:26px;margin-left:auto}
.nh-card__bookmark--inline:hover{background:var(--nh-bg-2);color:var(--nh-accent);box-shadow:none}
.nh-card__bookmark--inline.is-saved{background:rgba(245,158,11,.15)!important;color:#f59e0b!important}

/* Card Body */
.nh-card__body{padding:18px 20px 20px;display:flex;flex-direction:column;gap:10px;flex:1;min-width:0}
.nh-card__topline{display:flex;align-items:center;justify-content:space-between;gap:8px}
.nh-card__title{font-size:17px;line-height:1.38;font-weight:800;color:var(--nh-text);transition:color .2s ease}
.nh-card__title--2{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:16.5px}
.nh-card__title a{color:inherit}
.nh-card__title a:hover{color:var(--nh-accent)}
.nh-card__excerpt{font-size:13px;line-height:1.65;color:var(--nh-body);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.nh-card__body > .nh-meta{margin-top:auto;padding-top:12px;border-top:1px solid var(--nh-line)}

/* Meta row (views, comments, date matching reference) */
.nh-meta{display:flex;align-items:center;gap:13px;flex-wrap:wrap;color:var(--nh-muted);font-size:11.5px;font-weight:600}
.nh-meta-item{display:inline-flex;align-items:center;gap:4.5px;color:inherit;white-space:nowrap}
.nh-meta-item svg{width:13px;height:13px;color:var(--nh-faint);flex-shrink:0}
.nh-meta-item:hover{color:var(--nh-accent)}
.nh-meta-item:hover svg{color:var(--nh-accent)}

/* ==========================================================================
   14. THE 5 MODERN CARDS SYSTEM (Clean, Distinct, Responsive)
   ========================================================================== */

/* Card 1: Modern Magazine Card (Card #1 / #3 in reference) */
.nh-card--grid,
.nh-card--classic,
.nh-card--editorial,
.nh-card--standard{
  position:relative;display:flex;flex-direction:column;
  background:#fff;border-radius:14px;border:1px solid var(--nh-line);
  box-shadow:var(--nh-shadow-sm);overflow:hidden;
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}
.nh-card--grid:hover,
.nh-card--classic:hover,
.nh-card--editorial:hover{
  transform:translateY(-3px);box-shadow:var(--nh-shadow-hover);
  border-color:rgba(37,99,235,.25);
}
.nh-card--grid .nh-card__media-wrap{position:relative;aspect-ratio:16/10;overflow:hidden;background:var(--nh-bg-2)}
.nh-card--grid .nh-card__media img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s ease}
.nh-card--grid:hover .nh-card__media img{transform:scale(1.05)}
.nh-card--grid .nh-card__body{padding:16px 18px 18px;display:flex;flex-direction:column;gap:8px;flex:1}
.nh-card--grid .nh-card__title{font-size:16px;line-height:1.35;font-weight:750;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:var(--nh-navy)}
.nh-card--grid .nh-card__title a{color:inherit}
.nh-card--grid .nh-card__title a:hover{color:var(--nh-accent)}
.nh-card--grid .nh-card__excerpt{font-size:13px;line-height:1.55;color:var(--nh-muted);margin:0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.nh-card--grid .nh-meta{margin-top:auto;padding-top:10px;border-top:1px solid var(--nh-line);gap:12px;font-size:11.5px}

/* Card 2: Spotlight Overlay Card (Card #2 / #5 in reference) */
.nh-card--overlay{
  min-height:430px;position:relative;border-radius:16px;overflow:hidden;
  border:1px solid var(--nh-line);box-shadow:var(--nh-shadow-sm);
  display:flex;flex-direction:column;justify-content:flex-end;
  transition:transform .2s ease,box-shadow .2s ease;
}
.nh-card--overlay:hover{transform:translateY(-3px);box-shadow:var(--nh-shadow-hover)}
.nh-card--overlay .nh-card__media{position:absolute;inset:0;height:100%}
.nh-card--overlay .nh-card__media img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .4s ease}
.nh-card--overlay:hover .nh-card__media img{transform:scale(1.06)}
.nh-card--overlay .nh-card__scrim{
  position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(15,23,42,0.55) 0%,rgba(15,23,42,0.06) 28%,rgba(15,23,42,0.65) 58%,rgba(15,23,42,0.97) 100%);
  pointer-events:none;z-index:1;
}
.nh-card--overlay .nh-card__badge--overlay{position:absolute;top:16px;left:16px;z-index:3}
.nh-card--overlay .nh-card__bookmark{position:absolute;top:16px;right:16px;z-index:3}
.nh-card--overlay .nh-card__body--overlay{
  position:relative;z-index:2;display:flex;flex-direction:column;
  flex:0 0 auto!important;align-self:stretch;
  padding:20px 22px 20px;color:#fff;margin-top:auto!important;gap:6px;
}
.nh-card--overlay .nh-card__title--overlay{
  color:#fff;font-size:17.5px;font-weight:800;line-height:1.35;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:0;
}
.nh-card--overlay .nh-card__title--overlay a{color:#fff}
.nh-card--overlay .nh-card__title--overlay a:hover{color:#93c5fd}
.nh-card--overlay .nh-card__excerpt--overlay{
  color:rgba(255,255,255,.88);font-size:12.5px;line-height:1.45;margin:0;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.nh-card--overlay .nh-card__bottom-row{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  margin-top:8px!important;border-top:1px solid rgba(255,255,255,.2);padding-top:12px;
}
.nh-card--overlay .nh-meta{color:rgba(255,255,255,.9);border:0;padding:0;margin:0;font-size:11.5px}
.nh-card--overlay .nh-meta-item svg{color:rgba(255,255,255,.75)}
.nh-card__arrow--red{
  width:36px;height:36px;border-radius:50%;background:#ef4444;color:#fff;
  display:flex;align-items:center;justify-content:center;box-shadow:0 4px 14px rgba(239,68,68,.4);
  transition:all .18s ease;flex-shrink:0;margin-left:auto;
}
.nh-card__arrow--red:hover{background:#dc2626;transform:scale(1.1);box-shadow:0 6px 18px rgba(239,68,68,.55);color:#fff}

/* Card 3: Horizontal Split Card (Card #7 / #8 in reference) */
.nh-card--horizontal,
.nh-card--list{
  display:flex;flex-direction:row;align-items:stretch;padding:0;
  background:#fff;border-radius:14px;border:1px solid var(--nh-line);
  box-shadow:var(--nh-shadow-sm);overflow:hidden;
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}
.nh-card--horizontal:hover,
.nh-card--list:hover{
  transform:translateY(-2px);box-shadow:var(--nh-shadow-hover);
  border-color:rgba(37,99,235,.25);
}
.nh-card--horizontal .nh-card__media-wrap{position:relative;flex:0 0 160px;width:160px;align-self:stretch;margin:0;padding:0;overflow:hidden;background:var(--nh-bg-2);border-radius:14px 0 0 14px}
.nh-card--horizontal .nh-card__media{display:block;width:100%;height:100%;border-radius:14px 0 0 14px;overflow:hidden}
.nh-card--horizontal .nh-card__media img{width:100%;height:100%;object-fit:cover;display:block;border-radius:14px 0 0 14px;transition:transform .3s ease}
.nh-card--horizontal:hover .nh-card__media img{transform:scale(1.05)}
.nh-card--horizontal .nh-card__badge--overlay{position:absolute;top:8px;left:8px;z-index:2}
.nh-card--horizontal .nh-card__badge--overlay .nh-badge{font-size:10px;font-weight:750;padding:2.5px 8px;border-radius:4px;text-transform:uppercase;letter-spacing:.3px;box-shadow:0 2px 6px rgba(0,0,0,.35)}
.nh-card--horizontal .nh-card__body--horizontal{padding:14px 18px;gap:8px;flex:1;min-width:0;display:flex;flex-direction:column;justify-content:center}
.nh-card--horizontal .nh-card__title--horizontal{font-size:15px;line-height:1.38;font-weight:750;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:var(--nh-navy)}
.nh-card--horizontal .nh-card__title--horizontal a{color:inherit}
.nh-card--horizontal .nh-card__title--horizontal a:hover{color:var(--nh-accent)}
.nh-card--horizontal .nh-card__excerpt--horizontal{font-size:12.5px;line-height:1.48;color:var(--nh-muted);margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.nh-card--horizontal .nh-meta{border-top:0;padding-top:0;margin-top:auto;gap:12px;font-size:11px}

/* Card 4: Compact News Strip (Card #6 in reference) — Distinct, Dense & Small */
.nh-card--compact,
.nh-card--minimal{
  display:flex;flex-direction:column;background:#fff;border-radius:10px;
  border:1px solid var(--nh-line);box-shadow:0 1px 3px rgba(15,23,42,.05);
  overflow:hidden;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}
.nh-card--compact:hover,
.nh-card--minimal:hover{
  transform:translateY(-2px);box-shadow:var(--nh-shadow-hover);
  border-color:rgba(37,99,235,.25);
}
.nh-card--compact .nh-card__media-wrap,
.nh-card--minimal .nh-card__media-wrap{position:relative;aspect-ratio:16/9;overflow:hidden;background:var(--nh-bg-2)}
.nh-card--compact .nh-card__media img,
.nh-card--minimal .nh-card__media img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s ease}
.nh-card--compact:hover .nh-card__media img{transform:scale(1.05)}
.nh-card--compact .nh-card__badge--overlay{position:absolute;top:6px;left:6px;z-index:2}
.nh-card--compact .nh-card__badge--overlay .nh-badge{font-size:9.5px;padding:2px 6px}
.nh-card--compact .nh-card__body--compact,
.nh-card--minimal .nh-card__body{padding:10px 12px 12px;display:flex;flex-direction:column;gap:5px;flex:1}
.nh-card--compact .nh-card__title--compact{font-size:13.5px;line-height:1.35;font-weight:700;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:var(--nh-navy)}
.nh-card--compact .nh-card__title--compact a{color:inherit}
.nh-card--compact .nh-card__title--compact a:hover{color:var(--nh-accent)}
.nh-card--compact .nh-card__excerpt--compact{font-size:11px;line-height:1.4;color:var(--nh-muted);margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.nh-card--compact .nh-meta{border-top:1px solid #f1f5f9;padding-top:5px;margin-top:auto;gap:8px;font-size:10.5px}

/* Card 5: Editorial Lead Feature Card (Card #16 Split Lead) */
.nh-card--lead,
.nh-card--split,
.nh-card--featured{
  display:flex;flex-direction:row;align-items:stretch;background:#fff;
  border-radius:16px;border:1px solid var(--nh-line);box-shadow:var(--nh-shadow-sm);
  overflow:hidden;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}
.nh-card--lead:hover,
.nh-card--split:hover,
.nh-card--featured:hover{
  transform:translateY(-3px);box-shadow:var(--nh-shadow-hover);
  border-color:rgba(37,99,235,.25);
}
.nh-card--lead .nh-card__media-wrap--lead,
.nh-card--split .nh-card__media-wrap{flex:0 0 46%;min-height:300px;position:relative;overflow:hidden;background:var(--nh-bg-2)}
.nh-card--lead .nh-card__media--lead,
.nh-card--split .nh-card__media{display:block;width:100%;height:100%}
.nh-card--lead .nh-card__media--lead img,
.nh-card--split .nh-card__media img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .35s ease}
.nh-card--lead:hover .nh-card__media--lead img{transform:scale(1.05)}
.nh-card--lead .nh-card__body--lead,
.nh-card--split .nh-card__body{flex:1;min-width:0;padding:26px 30px;display:flex;flex-direction:column;justify-content:center;gap:12px}
.nh-card--lead .nh-card__title--lead{font-size:clamp(19px,2.1vw,24px);line-height:1.32;font-weight:850;margin:0;color:var(--nh-navy);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.nh-card--lead .nh-card__title--lead a{color:inherit}
.nh-card--lead .nh-card__title--lead a:hover{color:var(--nh-accent)}
.nh-card--lead .nh-card__excerpt--lead{font-size:14px;line-height:1.6;color:#475569;margin:0;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.nh-card--lead .nh-card__footer-row{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:auto;padding-top:14px;border-top:1px solid var(--nh-line)}
.nh-card--lead .nh-card__footer-row .nh-meta{border-top:0;padding-top:0;margin-top:0}
.nh-card__read-more{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:700;color:var(--nh-accent);white-space:nowrap;transition:gap .18s ease}
.nh-card__read-more:hover{gap:9px}

.nh-grid--lead-wrap{display:grid;grid-template-columns:1fr!important;gap:24px}
@media (max-width:860px){
  .nh-card--lead,
  .nh-card--split{flex-direction:column}
  .nh-card--lead .nh-card__media-wrap--lead,
  .nh-card--split .nh-card__media-wrap{flex:0 0 auto;aspect-ratio:16/9;min-height:0}
  .nh-card--lead .nh-card__body--lead,
  .nh-card--split .nh-card__body{padding:18px 20px}
}
/* --- New Card Designs (Modern) --- */

/* mini */
.nh-mini-card{display:grid;grid-template-columns:96px minmax(0,1fr);gap:13px;align-items:center}
.nh-mini-card__media{display:block;border-radius:10px;overflow:hidden;aspect-ratio:1.1/1;background:var(--nh-bg-2)}
.nh-mini-card__media img{width:100%;height:100%;object-fit:cover}
.nh-mini-card__copy{min-width:0;display:flex;flex-direction:column;gap:5px}
.nh-mini-card__title{font-size:14px;line-height:1.4;font-weight:700;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.nh-mini-card__title a:hover{color:var(--nh-accent)}
.nh-mini-card__date{font-size:11px;color:var(--nh-faint)}
.nh-mini-list{display:grid;gap:15px}

/* --------------------------------------------------------------------------
   14. Meta row
   -------------------------------------------------------------------------- */
.nh-meta{display:flex;align-items:center;gap:14px;flex-wrap:wrap;color:var(--nh-muted);font-size:12px;font-weight:600}
.nh-meta-item{display:inline-flex;align-items:center;gap:5px;min-width:0;white-space:nowrap}
.nh-meta-item svg{width:14px;height:14px}

/* --------------------------------------------------------------------------
   15. Image placeholders
   -------------------------------------------------------------------------- */
.nh-img-ph{
  display:block;width:100%;height:100%;min-height:180px;
  background:linear-gradient(135deg,#e2e8f0,#cbd5e1);
}
.nh-img-ph--dark{background:linear-gradient(135deg,#1e293b,#334155);min-height:340px}

/* --------------------------------------------------------------------------
   16. Breadcrumbs (Responsive: Full on Desktop, Swipeable on Mobile)
   -------------------------------------------------------------------------- */
.nh-breadcrumbs{padding:14px 0 10px}
.nh-breadcrumbs__list{
  display:flex;align-items:center;gap:6px;font-size:12.5px;
  margin:0;padding:2px 0;list-style:none;flex-wrap:wrap;
}
.nh-breadcrumbs__item{display:inline-flex;align-items:center;gap:6px;color:#64748b}
.nh-breadcrumbs__item a{
  display:inline-flex;align-items:center;gap:5px;color:#475569;font-weight:600;
  padding:3px 9px;border-radius:6px;background:#f8fafc;border:1px solid #e2e8f0;
  transition:all .18s ease;text-decoration:none;
}
.nh-breadcrumbs__item a:hover{color:var(--nh-accent);border-color:var(--nh-accent);background:#fff}
.nh-breadcrumbs__item a svg{width:13px;height:13px;color:var(--nh-accent)}
.nh-breadcrumbs__item:not(:first-child)::before{content:"/";color:#cbd5e1;font-size:11px;font-weight:400;margin:0 1px}
.nh-breadcrumbs__item.is-current{
  color:var(--nh-navy);font-weight:600;padding:3px 6px;line-height:1.45;
  max-width:none;white-space:normal;overflow:visible;word-break:break-word;
}
.nh-breadcrumbs__item.is-current span{
  display:inline;max-width:none;white-space:normal;overflow:visible;word-break:break-word;
}
@media (max-width:767px){
  .nh-breadcrumbs__list{
    flex-wrap:nowrap;white-space:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;
    scrollbar-width:none;padding-bottom:2px;
  }
  .nh-breadcrumbs__list::-webkit-scrollbar{display:none}
  .nh-breadcrumbs__item{flex-shrink:0}
  .nh-breadcrumbs__item.is-current{
    max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  }
  .nh-breadcrumbs__item.is-current span{
    max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block;
  }
}

/* --------------------------------------------------------------------------
   17. Archive head
   -------------------------------------------------------------------------- */
.nh-archive-head{padding:22px 0 26px;border-bottom:1px solid var(--nh-line);margin-bottom:26px}
.nh-archive-head__title{font-size:clamp(26px,3.4vw,40px);letter-spacing:-.6px}
.nh-archive-head__desc{margin-top:8px;color:var(--nh-body);max-width:720px;font-size:15px}
.nh-archive-head__count{margin-top:10px;font-size:13px;font-weight:700;color:var(--nh-accent)}

/* --------------------------------------------------------------------------
   18. Trending band (dark)
   -------------------------------------------------------------------------- */
.nh-trending{background:var(--nh-navy);color:#fff;padding:36px 0 38px;margin-top:44px}
.nh-trending__list{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;
}
.nh-trending__item{
  display:grid;grid-template-columns:44px minmax(0,1fr);gap:13px;align-items:start;
  background:var(--nh-navy-2);border-radius:12px;padding:14px;
  transition:transform .18s ease,background-color .18s ease;
}
.nh-trending__item:hover{transform:translateY(-3px);background:var(--nh-navy-3)}
.nh-trending__rank{
  width:44px;height:44px;border-radius:11px;flex:0 0 auto;
  background:linear-gradient(135deg,var(--nh-accent),#1d4ed8);color:#fff;
  font-size:19px;font-weight:900;display:flex;align-items:center;justify-content:center;
}
.nh-trending__item:nth-child(n+5) .nh-trending__rank{background:rgba(255,255,255,.1);color:#e2e8f0;font-size:15px}
.nh-trending__body{min-width:0;display:flex;flex-direction:column;gap:7px}
.nh-trending__title{font-size:14.5px;line-height:1.4;font-weight:700;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.nh-trending__title a{color:#f1f5f9}
.nh-trending__title a:hover{color:#fff}
.nh-trending__date{font-size:11px;color:#94a3b8}
.nh-trending__media{display:none}

/* --------------------------------------------------------------------------
   19. Article (Modern Single Post UI)
   -------------------------------------------------------------------------- */
.nh-article{
  background:#fff;border-radius:20px;padding:clamp(22px,3.5vw,44px);
  box-shadow:0 4px 20px rgba(15,23,42,.05);border:1px solid rgba(226,232,240,.8);
}
.nh-article--page{padding:clamp(22px,3.5vw,48px)}

/* Header & Title */
.nh-article__header{margin-bottom:18px}
.nh-article__meta-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.nh-article__bookmark{
  width:36px;height:36px;border-radius:50%;border:1px solid var(--nh-line);
  background:#f8fafc;color:var(--nh-navy);display:flex;align-items:center;justify-content:center;
  cursor:pointer;transition:all .18s ease;padding:0;
}
.nh-article__bookmark:hover{border-color:#f59e0b;color:#f59e0b;background:#fff}
.nh-article__bookmark.is-saved{background:#fef3c7;border-color:#f59e0b;color:#d97706}
.nh-article__title{
  font-size:clamp(24px,3.4vw,38px);line-height:1.24;font-weight:850;
  letter-spacing:-.02em;color:var(--nh-navy);margin:0 0 14px;
}
.nh-article__deck{
  font-size:clamp(15.5px,1.4vw,18px);line-height:1.62;color:#475569;font-weight:500;
  margin:0 0 16px;border-left:3px solid var(--nh-accent);padding:8px 16px;
  background:rgba(37,99,235,.03);border-radius:0 10px 10px 0;
}

/* App-style Featured Image Frame */
.nh-article__figure{margin:0 0 20px}
.nh-article__media-frame{
  position:relative;overflow:hidden;border-radius:16px;
  box-shadow:0 8px 24px rgba(15,23,42,.06),0 1px 3px rgba(15,23,42,.04);
  border:1px solid rgba(226,232,240,.9);background:var(--nh-bg-2);
  aspect-ratio:16/9;
}
.nh-article__image{
  width:100%;height:100%;object-fit:cover;display:block;
  transition:transform .35s ease;
}
.nh-article__figure:hover .nh-article__image{transform:scale(1.015)}
.nh-article__caption{
  margin-top:8px;font-size:12.5px;color:var(--nh-muted);text-align:center;font-style:italic;
}

/* Reading Progress Bar (Pinned Top) */
.nh-reading-progress{
  position:fixed;top:0;left:0;height:3px;
  background:var(--nh-accent);z-index:99999;
  width:0%;transition:width .08s linear;
  pointer-events:none;box-shadow:0 1px 4px rgba(220,38,38,.4);
}

/* Meta Strip (DIRECTLY BELOW THE IMAGE) */
.nh-article__meta-strip{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:10px 16px;background:#f8fafc;border-radius:12px;border:1px solid #e2e8f0;
  margin-bottom:24px;flex-wrap:wrap;
}
.nh-article__meta-strip .nh-meta{
  display:flex;align-items:center;gap:16px;flex-wrap:wrap;font-size:13px;color:#64748b;font-weight:550;
}
.nh-article__meta-strip .nh-meta-item{
  display:inline-flex;align-items:center;gap:6px;color:#64748b;
}
.nh-article__meta-strip .nh-meta-item--author a{
  color:var(--nh-navy);font-weight:700;text-decoration:none;
}
.nh-article__meta-strip .nh-meta-item--author a:hover{
  color:var(--nh-accent);
}
.nh-article__meta-strip .nh-meta-item--views{
  color:var(--nh-accent);font-weight:650;
}
.nh-article__meta-strip .nh-meta-item--comments{
  color:#64748b;text-decoration:none;
}
.nh-article__meta-strip .nh-meta-item--comments:hover{
  color:var(--nh-accent);
}
.nh-article__meta-strip .nh-icon{
  width:14px;height:14px;
}

/* Article Font Resizer (A- / A / A+) */
.nh-font-resizer{
  display:inline-flex;align-items:center;gap:6px;
  background:#fff;padding:3px 8px;border-radius:8px;border:1px solid #e2e8f0;
}
.nh-font-resizer__label{
  display:inline-flex;align-items:center;gap:4px;font-size:11.5px;font-weight:600;color:#64748b;
  margin-right:2px;
}
.nh-font-resizer__label svg{width:13px;height:13px;color:var(--nh-accent)}
.nh-font-resizer__group{display:inline-flex;align-items:center;gap:3px}
.nh-font-resizer__btn{
  background:transparent;border:1px solid transparent;border-radius:5px;
  padding:2px 7px;font-size:12px;font-weight:700;color:#475569;cursor:pointer;
  line-height:1.2;transition:all .15s ease;
}
.nh-font-resizer__btn:hover{background:#f1f5f9;color:var(--nh-accent)}
.nh-font-resizer__btn.is-active{
  background:var(--nh-accent);color:#fff;border-color:var(--nh-accent);
}
body[data-font-size="sm"] .nh-article__content{font-size:16px;line-height:1.8}
body[data-font-size="md"] .nh-article__content{font-size:18px;line-height:1.9}
body[data-font-size="lg"] .nh-article__content{font-size:20.5px;line-height:1.95}

/* --------------------------------------------------------------------------
   Audio Player / Text-To-Speech (Web Speech API)
   -------------------------------------------------------------------------- */
.nh-audio-player-wrapper{margin-bottom:26px}
.nh-audio-player{
  background:#fff;border:1px solid #e2e8f0;border-left:4px solid var(--nh-accent);
  border-radius:14px;padding:16px 20px;
  box-shadow:0 2px 10px rgba(15,23,42,.04);transition:all .25s ease;
}
.nh-audio-player.is-playing{
  border-color:#cbd5e1;border-left-color:var(--nh-accent);
  box-shadow:0 8px 24px rgba(37,99,235,.09);
}
.nh-audio-player__top-row{
  display:flex;align-items:flex-start;justify-content:space-between;gap:16px;
  margin-bottom:14px;
}
.nh-audio-player__info{display:flex;align-items:center;gap:12px;min-width:0}
.nh-audio-player__icon-wrap{
  position:relative;width:44px;height:44px;border-radius:12px;
  background:#f1f5f9;display:flex;align-items:center;justify-content:center;
  color:var(--nh-accent);flex-shrink:0;transition:all .25s ease;
}
.nh-audio-player.is-playing .nh-audio-player__icon-wrap{
  background:var(--nh-accent);color:#fff;
  box-shadow:0 4px 12px rgba(37,99,235,.25);
}
.nh-audio-player__icon svg{width:20px;height:20px}
.nh-audio-player__wave{
  display:none;align-items:flex-end;gap:2.5px;height:16px;position:absolute;
}
.nh-audio-player.is-playing .nh-audio-player__icon{display:none}
.nh-audio-player.is-playing .nh-audio-player__wave{display:inline-flex}
.nh-audio-player__wave i{
  width:2.5px;background:#fff;border-radius:1px;
  animation:nhWaveAnim 1s ease-in-out infinite;
}
.nh-audio-player__wave i:nth-child(1){height:6px;animation-delay:.1s}
.nh-audio-player__wave i:nth-child(2){height:16px;animation-delay:.3s}
.nh-audio-player__wave i:nth-child(3){height:10px;animation-delay:.15s}
.nh-audio-player__wave i:nth-child(4){height:14px;animation-delay:.45s}
.nh-audio-player__wave i:nth-child(5){height:8px;animation-delay:.25s}

@keyframes nhWaveAnim{
  0%,100%{transform:scaleY(.35)}
  50%{transform:scaleY(1)}
}

.nh-audio-player__meta{min-width:0;line-height:1.3}
.nh-audio-player__tag-line{display:flex;align-items:center;gap:6px;font-size:11px;font-weight:700;margin-bottom:3px}
.nh-audio-player__tag{
  background:color-mix(in srgb,var(--nh-accent) 12%,transparent);
  color:var(--nh-accent);padding:2px 6px;border-radius:4px;letter-spacing:.05em;
}
.nh-audio-player__dot{color:#94a3b8}
.nh-audio-player__status{color:#64748b;font-weight:600}
.nh-audio-player.is-playing .nh-audio-player__status{color:var(--nh-accent);font-weight:700}
.nh-audio-player__title{
  margin:0;font-size:14px;font-weight:700;color:var(--nh-navy);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:440px;
}

.nh-audio-player__actions{display:flex;align-items:center;gap:6px;flex-shrink:0}
.nh-audio-player__action-btn{
  border:1px solid #e2e8f0;background:#f8fafc;border-radius:8px;
  padding:6px 10px;display:inline-flex;align-items:center;gap:5px;
  font-size:12px;font-weight:650;color:#64748b;cursor:pointer;
  transition:all .18s ease;line-height:1;
}
.nh-audio-player__action-btn svg{width:13px;height:13px}
.nh-audio-player__action-btn:hover{background:#fff;border-color:var(--nh-accent);color:var(--nh-accent)}
.nh-audio-player__action-btn--close{padding:7px;border-radius:8px}
.nh-audio-player__action-btn--close:hover{background:#fee2e2;border-color:#fca5a5;color:#dc2626}

/* Timeline Progress Bar */
.nh-audio-player__progress-wrap{margin:10px 0 14px}
.nh-audio-player__progress-bar{
  width:100%;height:5px;background:#e2e8f0;border-radius:999px;
  overflow:hidden;position:relative;cursor:pointer;
}
.nh-audio-player__progress-fill{
  height:100%;background:linear-gradient(90deg,var(--nh-accent),#b91c1c);
  border-radius:999px;transition:width .2s ease;
}
.nh-audio-player__progress-labels{
  display:flex;align-items:center;justify-content:space-between;
  margin-top:6px;font-size:11.5px;color:#64748b;font-weight:600;
}
.nh-audio-player__progress-voice{
  font-size:11px;font-weight:600;color:#475569;background:#f1f5f9;
  padding:2px 7px;border-radius:6px;
}

/* Controls */
.nh-audio-player__bottom-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.nh-audio-player__controls{display:flex;align-items:center;gap:8px}
.nh-audio-player__btn{
  border:0;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;
  border-radius:10px;transition:all .18s ease;line-height:1;
}
.nh-audio-player__btn--play{
  width:42px;height:42px;background:var(--nh-accent);color:#fff;
  border-radius:50%;box-shadow:0 3px 8px rgba(37,99,235,.28);
}
.nh-audio-player__btn--play:hover{transform:scale(1.06);filter:brightness(1.08)}
.nh-audio-player__btn--play svg{width:18px;height:18px}
.nh-audio-player__pause-icon{display:none}
.nh-audio-player.is-playing .nh-audio-player__play-icon{display:none}
.nh-audio-player.is-playing .nh-audio-player__pause-icon{display:inline-block}

.nh-audio-player__btn--skip{
  width:32px;height:32px;background:#f8fafc;border:1px solid #e2e8f0;
  color:#64748b;border-radius:8px;
}
.nh-audio-player__btn--skip:hover{background:#fff;border-color:var(--nh-accent);color:var(--nh-accent)}
.nh-audio-player__btn--skip svg{width:14px;height:14px}

.nh-audio-player__btn--stop{
  width:32px;height:32px;background:#f8fafc;border:1px solid #e2e8f0;
  color:#64748b;border-radius:8px;
}
.nh-audio-player__btn--stop:hover{color:#dc2626;border-color:#fca5a5;background:#fff5f5}
.nh-audio-player__btn--stop svg{width:13px;height:13px}

.nh-audio-player__speed{
  background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;
  padding:6px 10px;font-size:12px;font-weight:750;color:#475569;
  cursor:pointer;transition:all .15s ease;
}
.nh-audio-player__speed:hover{background:#fff;color:var(--nh-accent);border-color:var(--nh-accent)}

/* Audio Sponsor In-Player Ad */
.nh-audio-player__ad{
  margin-top:14px;padding-top:12px;border-top:1px dashed #e2e8f0;
}
.nh-audio-player__ad-label{
  display:block;font-size:10px;text-transform:uppercase;letter-spacing:.08em;
  font-weight:700;color:#94a3b8;margin-bottom:6px;
}
.nh-audio-player__ad-content{
  display:flex;align-items:center;justify-content:center;
  background:#f8fafc;border-radius:8px;padding:8px;min-height:50px;overflow:hidden;
}
.nh-audio-player__ad-content img{max-width:100%;height:auto;border-radius:6px}

/* Reopen Pill */
.nh-audio-player-pill{margin-bottom:20px}
.nh-audio-player-pill__btn{
  display:inline-flex;align-items:center;gap:10px;background:#fff;
  border:1px solid #e2e8f0;border-left:3px solid var(--nh-accent);
  padding:8px 16px;border-radius:999px;font-size:13px;font-weight:700;
  color:var(--nh-navy);cursor:pointer;box-shadow:0 2px 8px rgba(15,23,42,.04);
  transition:all .2s ease;
}
.nh-audio-player-pill__btn:hover{
  border-color:var(--nh-accent);box-shadow:0 4px 14px rgba(37,99,235,.12);
  transform:translateY(-1px);
}
.nh-audio-player-pill__icon{color:var(--nh-accent);display:inline-flex}
.nh-audio-player-pill__icon svg{width:16px;height:16px}
.nh-audio-player-pill__label small{color:#64748b;font-weight:550;margin-left:4px}
.nh-audio-player-pill__play-btn{
  width:22px;height:22px;border-radius:50%;background:var(--nh-accent);
  color:#fff;display:inline-flex;align-items:center;justify-content:center;
}
.nh-audio-player-pill__play-btn svg{width:10px;height:10px}

@media (max-width:640px){
  .nh-audio-player{padding:14px 14px}
  .nh-audio-player__title{max-width:200px;font-size:13px}
  .nh-audio-player__btn-text{display:none}
  .nh-audio-player__btn--play{width:38px;height:38px}
}

/* Real-Time Article Reading Highlight (Karaoke / Focus) */
.nh-tts-highlight{
  background: linear-gradient(120deg, rgba(254, 240, 138, 0.42), rgba(253, 224, 71, 0.22)) !important;
  border-left: 4px solid var(--nh-accent) !important;
  padding: 10px 16px !important;
  border-radius: 8px !important;
  transition: all .28s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.08) !important;
  transform: translateX(3px) !important;
}

/* Article Content & Reading Typography */
.nh-article__content{
  font-size:18px;line-height:1.9;color:#1e293b;overflow-wrap:anywhere;letter-spacing:-.004em;
}
.nh-article__content > * + *{margin-top:1.2em}
.nh-article__content > p:first-of-type{
  font-size:19.5px;line-height:1.82;color:#0f172a;font-weight:500;
}
.nh-article__content h2{
  font-size:1.45em;line-height:1.35;font-weight:800;color:var(--nh-navy);
  margin-top:1.8em;margin-bottom:.6em;letter-spacing:-.4px;position:relative;padding-left:14px;
}
.nh-article__content h2::before{
  content:"";position:absolute;left:0;top:4px;bottom:4px;width:4px;border-radius:2px;background:var(--nh-accent);
}
.nh-article__content h3{
  font-size:1.22em;line-height:1.35;font-weight:750;color:var(--nh-navy);
  margin-top:1.5em;margin-bottom:.5em;
}
.nh-article__content a{color:var(--nh-accent);text-decoration:underline;text-underline-offset:3px}
.nh-article__content a:hover{color:#1d4ed8}
.nh-article__content blockquote{
  margin:1.8em 0;padding:16px 24px;border-left:4px solid var(--nh-accent);
  background:linear-gradient(to right,rgba(37,99,235,.05),#f8fafc);
  border-radius:0 12px 12px 0;font-size:1.05em;font-style:italic;color:#1e293b;line-height:1.75;
}
.nh-article__content img,
.entry-content img,
.wp-block-image img,
figure.wp-block-image img,
.wp-block-image,
figure.wp-block-image {
  max-width: 100% !important;
  height: auto !important;
  display: block;
  margin: 16px auto;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(15,23,42,.06);
}
.nh-article__content iframe,
.entry-content iframe,
.wp-block-embed iframe {
  max-width: 100% !important;
  width: 100% !important;
  aspect-ratio: 16/9;
  height: auto !important;
  border-radius: 12px;
  display: block;
  margin: 18px auto;
}
.nh-article__content table,
.entry-content table {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  border-collapse: collapse;
  margin: 1.5em 0;
  border-radius: 10px;
}
.nh-article__content pre,
.entry-content pre {
  max-width: 100% !important;
  overflow-x: auto !important;
  white-space: pre-wrap !important;
  word-break: break-word !important;
  background: var(--nh-navy);
  color: #e2e8f0;
  padding: 18px 20px;
  border-radius: 12px;
  font-size: .85em;
}
.nh-article__content code,
.entry-content code {
  background: var(--nh-bg-2);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: .88em;
  word-break: break-word;
}
.nh-article__content pre code,
.entry-content pre code {
  background: none;
  padding: 0;
  word-break: normal;
}
.nh-article__content th,.nh-article__content td{border:1px solid var(--nh-line);padding:11px 15px;text-align:left}
.nh-article__content th{background:#f8fafc;font-weight:750;color:var(--nh-navy)}
.nh-page-links{display:flex;flex-wrap:wrap;gap:8px;padding-top:20px}
.nh-page-links a,.nh-page-links span{padding:8px 14px;border-radius:8px;background:var(--nh-bg-2);font-weight:700;font-size:14px}

/* Article Footer: Tags & Share cleanly separated on Desktop & Mobile */
.nh-article__footer{
  display:flex;flex-direction:column;gap:0;
  margin-top:34px;padding-top:24px;padding-bottom:0;border-top:1px solid var(--nh-line);width:100%;
}
.nh-tags-box{width:100%;display:flex;justify-content:center;margin-bottom:0;}
.nh-tags{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;width:100%}
.nh-tags__label{display:inline-flex;align-items:center;gap:5px;font-size:12.5px;font-weight:750;color:var(--nh-muted);text-transform:uppercase;letter-spacing:0.04em;margin-right:4px}
.nh-tags__tag{padding:6px 14px;border-radius:999px;background:#f8fafc;border:1px solid #e2e8f0;font-size:13px;font-weight:600;color:var(--nh-navy);transition:all .18s ease;text-decoration:none}
.nh-tags__tag:hover{background:var(--nh-accent);border-color:var(--nh-accent);color:#fff;transform:translateY(-1px)}
[data-theme="dark"] .nh-tags__tag{background:#1e293b;border-color:#334155;color:#cbd5e1}

/* Clean, Single Centered Share Pill straddling Container Bottom Border */
.nh-share-wrap{
  width:100%;display:flex;justify-content:center;align-items:center;
  margin:28px auto -26px auto;padding:0 16px;box-sizing:border-box;
  position:relative;z-index:20;
}
.nh-share{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;margin:0 auto;
  padding:7px 18px;background:#ffffff;border:1px solid #cbd5e1;border-radius:999px;
  box-shadow:0 4px 18px rgba(15,23,42,.12);box-sizing:border-box;max-width:calc(100% - 20px);position:relative;
  white-space:nowrap;
}
[data-theme="dark"] .nh-share{background:#131c2e;border-color:#1e293b;box-shadow:0 4px 18px rgba(0,0,0,.4)}
.nh-share__label{
  font-size:13px;font-weight:750;color:var(--nh-navy);display:inline-flex;align-items:center;gap:5px;margin:0;flex-shrink:0;white-space:nowrap;
}
[data-theme="dark"] .nh-share__label{color:#f1f5f9}
.nh-share__btns{display:inline-flex;align-items:center;gap:8px;flex-wrap:nowrap;flex-shrink:0}
.nh-share__btn{
  width:36px;height:36px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;
  color:#fff;transition:transform .18s ease,opacity .18s ease,box-shadow .18s ease;border:0;cursor:pointer;flex-shrink:0;text-decoration:none;
}
.nh-share__btn:hover{transform:translateY(-2px);box-shadow:0 4px 10px rgba(0,0,0,.15);color:#fff}
.nh-share__btn:active{transform:scale(0.92)}
.nh-share__btn svg{width:16px;height:16px}
.nh-share__btn--native{background:linear-gradient(135deg,var(--nh-accent),#b91c1c);display:none}
.nh-share__btn--wa{background:#25d366}
.nh-share__btn--tg{background:#229ed9}
.nh-share__btn--x{background:#000}
.nh-share__btn--fb{background:#1877f2}
.nh-share__btn--copy{background:#0f172a}
[data-theme="dark"] .nh-share__btn--copy{background:#334155}
.nh-share__btn.is-copied{background:#10b981}
.nh-share__copied{
  position:absolute;bottom:calc(100% + 8px);left:50%;transform:translateX(-50%) translateY(4px);
  background:var(--nh-navy,#0f172a);color:#fff;font-size:11px;font-weight:700;padding:4px 10px;
  border-radius:6px;pointer-events:none;opacity:0;transition:all .18s ease;white-space:nowrap;
  box-shadow:0 2px 8px rgba(0,0,0,.18);z-index:30;
}
.nh-share__copied.is-visible{opacity:1;transform:translateX(-50%) translateY(0)}

/* Post Navigation (Prev / Next Article Cards) */
.nh-post-nav{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:28px 0}
.nh-post-nav__side{
  background:#fff;border-radius:14px;padding:16px 20px;box-shadow:0 2px 8px rgba(15,23,42,.04);
  border:1px solid #e2e8f0;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.nh-post-nav__side:hover{transform:translateY(-3px);box-shadow:0 8px 24px rgba(37,99,235,.08);border-color:var(--nh-accent)}
.nh-post-nav__side a{display:block;font-weight:750;font-size:14.5px;line-height:1.42;color:var(--nh-navy);text-decoration:none}
.nh-post-nav__side a:hover{color:var(--nh-accent)}
.nh-post-nav__hint{display:block;font-size:11px;font-weight:750;text-transform:uppercase;letter-spacing:.08em;color:var(--nh-faint);margin-bottom:6px}
.nh-post-nav__side--next{text-align:right}

/* --------------------------------------------------------------------------
   21. Related + author box
   -------------------------------------------------------------------------- */
.nh-related{margin-top:34px}
.nh-author-box{
  display:grid;grid-template-columns:84px minmax(0,1fr);gap:18px;align-items:center;
  background:#fff;border-radius:var(--nh-radius);padding:24px;margin-top:28px;box-shadow:var(--nh-shadow);
}
.nh-author-box__avatar img{width:84px;height:84px;border-radius:50%;border:3px solid var(--nh-bg-2)}
.nh-author-box__label{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--nh-faint)}
.nh-author-box__name{font-size:19px;margin:3px 0 6px}
.nh-author-box__name a:hover{color:var(--nh-accent)}
.nh-author-box__bio{font-size:13.5px;line-height:1.6;color:var(--nh-body)}
.nh-author-box__stats{font-size:12px;color:var(--nh-muted);font-weight:600;margin-top:4px}

/* --------------------------------------------------------------------------
   22. Comments
   -------------------------------------------------------------------------- */
.nh-comments-area{margin-top:36px}
.nh-comments{background:#fff;border-radius:var(--nh-radius);padding:26px;box-shadow:var(--nh-shadow);border:1px solid #f1f5f9}
.nh-comments__title{font-size:20px;font-weight:800;color:var(--nh-navy);margin-bottom:20px;display:flex;align-items:center;gap:8px}
.nh-comments__title svg{color:var(--nh-accent);width:20px;height:20px}
.nh-comments__closed{color:var(--nh-muted);font-weight:600;padding:14px;background:var(--nh-bg);border-radius:10px}
.nh-comment-list{list-style:none;padding:0;margin:0 0 36px 0;display:grid;gap:18px}
.nh-comment-list .comment{padding:18px 22px;background:#fff;border-radius:14px;border:1px solid #e2e8f0;box-shadow:0 2px 8px rgba(15,23,42,.04);transition:all .18s ease}
.nh-comment-list .comment:hover{border-color:#cbd5e1;box-shadow:0 4px 14px rgba(15,23,42,.07)}
.nh-comment-list .comment.depth-1{background:#fff}
.nh-comment-list .children{list-style:none;padding-left:22px;margin-top:16px;border-left:2px solid #e2e8f0;display:grid;gap:14px}
.nh-comment-list .avatar{width:44px;height:44px;border-radius:50%;float:left;margin:0 14px 6px 0;border:2px solid #e2e8f0}
.nh-comment-list .comment-header,.nh-comment-list .comment-meta{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;padding-bottom:10px;border-bottom:1px solid #f1f5f9;margin-bottom:12px}
.nh-comment-list .comment-author{font-weight:750;font-size:14.5px;color:var(--nh-navy)}
.nh-comment-list .comment-author .fn{font-style:normal}
.nh-comment-list .comment-meta,.nh-comment-list .comment-metadata{font-size:12px;color:var(--nh-faint)}
.nh-comment-list .comment-meta a,.nh-comment-list .comment-metadata a{color:inherit;text-decoration:none}
.nh-comment-list .comment-content{font-size:15px;line-height:1.7;color:#334155;clear:both}
.nh-comment-list .comment-content p{margin:0 0 10px}
.nh-comment-list .comment-content p:last-child{margin-bottom:0}
.nh-comment-list .reply{margin-top:14px;padding-top:10px;border-top:1px solid #f1f5f9;display:flex;justify-content:flex-end}
.nh-comment-list .reply a,.nh-comment-list .comment-reply-link{
  display:inline-flex;align-items:center;gap:4px;font-size:12px;font-weight:700;
  color:var(--nh-accent);padding:5px 12px;border-radius:6px;background:rgba(37,99,235,.08);
  text-decoration:none;transition:all .18s ease;
}
.nh-comment-list .reply a:hover,.nh-comment-list .comment-reply-link:hover{background:var(--nh-accent);color:#fff}

/* Comment Respond / Reply Box Form */
.comment-respond{
  margin-top:42px;padding-top:32px;border-top:2px dashed #e2e8f0;position:relative;
}
.comment-reply-title{
  font-size:20px;font-weight:800;color:var(--nh-navy);margin:0 0 12px 0;
  display:flex;align-items:center;flex-wrap:wrap;gap:10px;line-height:1.35;
}
.comment-reply-title::before{
  content:"";width:4px;height:20px;border-radius:2px;background:var(--nh-accent);
}
.comment-reply-title small{font-size:12px;font-weight:600;margin-left:auto}
#cancel-comment-reply-link{
  display:inline-flex;align-items:center;gap:4px;color:#dc2626;background:#fee2e2;
  padding:4px 10px;border-radius:6px;text-decoration:none;transition:all .15s ease;
}
#cancel-comment-reply-link:hover{background:#fecaca}

.comment-notes,.nh-comment-form__note{
  font-size:12.5px;color:var(--nh-faint);margin:0 0 20px 0;line-height:1.5;
}

/* Comment Form Fields Layout */
.comment-form,.nh-comment-form{
  display:grid;gap:16px;
}
.comment-form-author,.comment-form-email,.comment-form-url,
.comment-form-comment,.nh-comment-form__field{
  margin:0;
}
.comment-form label,.nh-comment-form__field label{
  display:block;font-size:13px;font-weight:700;color:var(--nh-navy);margin-bottom:6px;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.nh-comment-form__field input,
.nh-comment-form__field textarea{
  width:100%;padding:12px 16px;border:1px solid #cbd5e1;border-radius:10px;
  background:#f8fafc;outline:0;font-family:inherit;font-size:14px;color:#0f172a;
  box-sizing:border-box;transition:all .18s ease;
}
.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus,
.nh-comment-form__field input:focus,
.nh-comment-form__field textarea:focus{
  border-color:var(--nh-accent);background:#fff;
  box-shadow:0 0 0 3px rgba(37,99,235,.15);
}

.comment-form-cookies-consent{
  display:flex;align-items:flex-start;gap:10px;margin:4px 0 8px;font-size:13px;
  color:#64748b;line-height:1.5;cursor:pointer;
}
.comment-form-cookies-consent input{margin-top:3px;accent-color:var(--nh-accent);cursor:pointer}
.comment-form-cookies-consent label{cursor:pointer}

.nh-req{color:#ef4444}
.comment-form .form-submit,.nh-comment-form .form-submit{margin-top:8px}
.comment-form .form-submit input[type="submit"],
.nh-comment-form .nh-btn--primary{
  cursor:pointer;display:inline-flex;align-items:center;justify-content:center;
  padding:12px 28px;border-radius:10px;background:var(--nh-accent);color:#fff;
  border:0;font-weight:750;font-size:14.5px;box-shadow:0 4px 14px rgba(37,99,235,.25);
  transition:all .18s ease;
}
.comment-form .form-submit input[type="submit"]:hover,
.nh-comment-form .nh-btn--primary:hover{
  opacity:.92;transform:translateY(-2px);box-shadow:0 6px 20px rgba(37,99,235,.35);
}

/* --------------------------------------------------------------------------
   23. Pagination
   -------------------------------------------------------------------------- */
.nh-pagination{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:32px;flex-wrap:wrap}
.nh-pagination .page-numbers{
  display:inline-flex;align-items:center;justify-content:center;min-width:42px;padding:10px 14px;
  border-radius:10px;background:#fff;border:1px solid var(--nh-line);font-weight:700;font-size:14px;
  transition:all .18s ease;
}
.nh-pagination .page-numbers:hover{border-color:var(--nh-accent);color:var(--nh-accent)}
.nh-pagination .page-numbers.current{background:var(--nh-accent);border-color:var(--nh-accent);color:#fff}
.nh-pagination .page-numbers.dots{border:0;background:none;color:var(--nh-faint)}

/* --------------------------------------------------------------------------
   24. Sidebar widgets
   -------------------------------------------------------------------------- */
.nh-widget{background:#fff;border-radius:var(--nh-radius);padding:22px;box-shadow:var(--nh-shadow);margin-bottom:22px}
.nh-widget:last-child{margin-bottom:0}
.nh-widget__title{font-size:18px;margin-bottom:16px;display:flex;align-items:center;gap:8px}
.nh-widget__title::before{content:"";width:4px;height:19px;border-radius:2px;background:var(--nh-accent)}
.nh-cat-cloud{display:flex;flex-wrap:wrap;gap:8px}
.nh-cat-cloud ul{display:contents}
.nh-cat-cloud li a{display:block;padding:7px 12px;border-radius:8px;background:var(--nh-bg-2);font-size:13px;font-weight:650;color:var(--nh-body)}
.nh-cat-cloud li a:hover{background:var(--nh-accent);color:#fff}

/* --------------------------------------------------------------------------
   25. Empty / no results
   -------------------------------------------------------------------------- */
.nh-empty{padding:44px 20px;text-align:center;color:var(--nh-muted);font-size:15px;background:#fff;border-radius:var(--nh-radius);box-shadow:var(--nh-shadow)}

/* --------------------------------------------------------------------------
   26. 404
   -------------------------------------------------------------------------- */
.nh-error{text-align:center;max-width:660px;margin:30px auto;padding:60px 20px}
.nh-error__code{font-size:110px;font-weight:900;line-height:1;color:var(--nh-accent);letter-spacing:-4px}
.nh-error__title{font-size:30px;margin:12px 0 10px}
.nh-error__text{color:var(--nh-muted);font-size:15px;margin-bottom:8px}
.nh-error__links{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-top:22px}

/* --------------------------------------------------------------------------
   27. Footer (white, clean)
   -------------------------------------------------------------------------- */
.nh-footer{background:#fff;color:var(--nh-body);padding:20px 0;margin-top:auto;border-top:1px solid var(--nh-line)}
.nh-footer__bottom{
  width:min(var(--nh-max),calc(100% - 40px));margin-inline:auto;
  display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;
  padding-right:60px;box-sizing:border-box;
}
.nh-footer__copyright{font-size:13px;color:var(--nh-muted)}
.nh-footer__legal{display:flex;gap:18px}
.nh-footer__legal a{font-size:13px;color:var(--nh-muted)}
.nh-footer__legal a:hover{color:var(--nh-accent)}

/* --------------------------------------------------------------------------
   28. Mobile nav drawer (white, side panel)
   -------------------------------------------------------------------------- */
.nh-nav__close{display:none}

/* --------------------------------------------------------------------------
   29. Responsive
   -------------------------------------------------------------------------- */
@media (max-width:1180px){
  .nh-hero{grid-template-columns:minmax(0,1fr) 320px}
  .nh-trending__list{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:1023px){
  .nh-layout,.nh-layout--article{grid-template-columns:minmax(0,1fr)}
  .nh-sidebar{position:static;grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:820px){
  .nh-hero{grid-template-columns:1fr}
  .nh-hero__side{grid-template-rows:none;grid-template-columns:1fr 1fr;gap:10px}
  .nh-hero-side-card{padding:8px}
  .nh-carousel{height:clamp(320px,60vw,440px)}
  .nh-card-grid{gap:14px}
  .nh-sidebar--hide-mobile{display:none!important}
}
@media (max-width:860px){
  body{font-size:15px}
  .nh-container{width:calc(100% - 30px)}
  .nh-header__inner{
    position:relative;
    width:calc(100% - 24px);
    padding:6px 0;
    min-height:50px;
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:10px;
  }
  .nh-menu-toggle{
    display:flex !important;
    align-items:center;
    justify-content:center;
    width:var(--nh-menu-btn-size, 36px);
    height:var(--nh-menu-btn-size, 36px);
    border-radius:var(--nh-menu-icon-radius, 50%);
    border:var(--nh-menu-icon-border, 1px solid var(--nh-line));
    background:var(--nh-menu-icon-bg, transparent);
    color:var(--nh-menu-icon-color, #0f172a);
    cursor:pointer;
    flex:0 0 auto;
    padding:0;
    outline:none;
    z-index:3;
    transition:transform .18s ease,opacity .18s ease,background-color .18s ease,color .18s ease,border-color .18s ease;
  }
  .nh-menu-toggle:active{transform:scale(.92);opacity:.8}
  .nh-menu-toggle:hover{
    color:var(--nh-menu-icon-hover-color, #2563eb);
    background-color:var(--nh-menu-icon-hover-bg, var(--nh-bg-2, #f1f5f9));
    border-color:var(--nh-line);
  }
  .nh-menu-toggle svg{width:var(--nh-menu-icon-size, 20px);height:var(--nh-menu-icon-size, 20px)}

  .nh-brand{
    position:static;
    left:auto;
    top:auto;
    transform:none;
    display:flex;
    align-items:center;
    justify-content:flex-start;
    flex:0 1 auto;
    min-width:0;
    max-width:none;
    margin-right:auto;
    margin-left:4px;
    z-index:2;
    pointer-events:auto;
  }
  .nh-brand__link{
    display:flex;
    align-items:center;
    justify-content:flex-start;
    text-decoration:none;
  }
  .nh-brand__logo,
  .nh-brand .custom-logo{
    height:33px;
    max-height:33px;
    width:auto;
    max-width:175px;
    object-fit:contain;
    display:block;
  }

  .nh-header__actions{
    display:flex;
    align-items:center;
    gap:8px;
    flex:0 0 auto;
    margin-left:auto;
    z-index:3;
  }
  .nh-header__actions .nh-icon-btn{
    width:36px;
    height:36px;
    border-radius:50%;
    border:1px solid var(--nh-line);
    background:transparent;
    color:#0f172a;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
    transition:background-color .18s ease,color .18s ease,border-color .18s ease,transform .18s ease;
  }
  .nh-header__actions .nh-icon-btn:hover{
    color:var(--nh-accent, #2563eb);
    background:var(--nh-bg-2, #f1f5f9);
  }
  .nh-header__actions .nh-icon-btn svg,
  .nh-header__actions .nh-theme-icon{
    width:20px;
    height:20px;
  }
  .nh-hide-on-mobile{
    display:none !important;
  }
  .nh-icon-btn.nh-search-toggle{
    width:var(--nh-search-btn-size, 36px);height:var(--nh-search-btn-size, 36px);
    border-radius:var(--nh-search-icon-radius, 50%);border:var(--nh-search-icon-border, 1px solid var(--nh-line));
    background:var(--nh-search-icon-bg, transparent);color:var(--nh-search-icon-color, #0f172a);
    cursor:pointer;display:flex;align-items:center;justify-content:center;
    padding:0;outline:none;
    transition:transform .18s ease,opacity .18s ease,background-color .18s ease,color .18s ease,border-color .18s ease;
  }
  .nh-icon-btn.nh-search-toggle:active{transform:scale(.92);opacity:.8}
  .nh-icon-btn.nh-search-toggle:hover{
    color:var(--nh-search-icon-hover-color, #2563eb);
    background-color:var(--nh-search-icon-hover-bg, var(--nh-bg-2, #f1f5f9));
  }
  .nh-icon-btn.nh-search-toggle svg{width:var(--nh-search-icon-size, 20px);height:var(--nh-search-icon-size, 20px)}

  @media (max-width:380px){
    .nh-header__inner{gap:6px}
    .nh-brand__logo,
    .nh-brand .custom-logo{max-width:130px;height:28px;max-height:28px}
    .nh-header__actions{gap:5px}
    .nh-header__actions .nh-icon-btn,
    .nh-menu-toggle{width:33px;height:33px}
    .nh-header__actions .nh-icon-btn svg,
    .nh-header__actions .nh-theme-icon,
    .nh-menu-toggle svg{width:18px;height:18px}
  }

  /* Nav drawer — premium app side panel, slides in from left */
  .nh-nav{
    display:block;position:fixed;top:0;left:0;bottom:0;z-index:100000;
    width:320px;max-width:86vw;
    background-color:#ffffff !important;
    box-shadow:10px 0 40px rgba(15,23,42,.22);
    border-radius:0 20px 20px 0;
    transform:translateX(-100%);
    transition:transform .32s cubic-bezier(.16,1,.3,1);
    padding:0;overflow-y:auto;overscroll-behavior:contain;
  }
  .nh-nav.is-open{transform:translateX(0)}

  /* Drawer Top Header */
  .nh-nav__header{
    display:flex;align-items:center;justify-content:space-between;
    padding:16px 18px;border-bottom:1px solid var(--nh-line);
    background:#ffffff;position:sticky;top:0;z-index:10;
  }
  .nh-nav__brand{display:flex;align-items:center}
  .nh-nav__brand img{height:24px;width:auto;display:block}
  .nh-nav__close{
    display:flex;align-items:center;justify-content:center;
    width:34px;height:34px;border-radius:50%;border:1px solid var(--nh-line);
    background:#f8fafc;color:var(--nh-navy);cursor:pointer;
    transition:all .18s ease;position:static;
  }
  .nh-nav__close:hover{background:#fee2e2;color:#ef4444;border-color:#fca5a5}
  .nh-nav__close svg{width:16px;height:16px}

  /* Drawer Navigation Links */
  .nh-nav__menu{
    flex-direction:column;align-items:stretch;gap:3px;
    padding:14px 12px 10px;overflow:visible;
  }
  .nh-nav__menu .menu-item > a{
    padding:10px 14px;border-radius:10px;font-size:14px;color:var(--nh-navy);
    border-bottom:0;background:transparent;
    transition:all .18s ease;font-weight:650;
    display:flex;align-items:center;justify-content:space-between;
  }
  .nh-nav__menu .menu-item > a:hover{
    background:#f1f5f9;color:var(--nh-accent);padding-left:18px;
  }
  .nh-nav__menu .current-menu-item > a,.nh-nav__menu .current-menu-ancestor > a{
    background:var(--nh-accent);color:#fff;
  }
  .nh-nav__menu .sub-menu{
    position:static;opacity:1;visibility:visible;transform:none;
    background:#f8fafc;box-shadow:none;border-radius:10px;
    padding:4px 8px;margin:4px 8px 8px;border:1px solid var(--nh-line);
  }
  .nh-nav__menu .sub-menu a{
    color:var(--nh-body);font-size:13.5px;font-weight:550;padding:8px 12px;border-radius:8px;
  }
  .nh-nav__menu .sub-menu a:hover{color:var(--nh-accent);background:#ffffff}
  .nh-nav__menu .menu-item-has-children > a::after{content:"›";float:right;margin-left:12px;font-size:17px;opacity:.5;color:var(--nh-faint)}

  /* Inside mobile nav drawer: Topics / Category list */
  .nh-nav .nh-cat-icons{
    display:flex;flex-direction:column;gap:6px;
    padding:12px 12px 28px;border-top:0 !important;margin-top:0;
    background:#ffffff;
  }
  .nh-nav .nh-cat-icons__title{
    display:block;font-size:11px;font-weight:750;text-transform:uppercase;letter-spacing:.08em;
    color:var(--nh-faint);padding:6px 6px 4px;margin:0 0 2px;
    border:0 !important;
  }
  .nh-nav .nh-cat-icons__item{
    display:flex;align-items:center;gap:12px;
    padding:9px 12px;border-radius:12px;text-decoration:none;color:var(--nh-navy);
    font-size:14px;font-weight:650;
    background:#f8fafc;border:1px solid rgba(226,232,240,.7) !important;
    border-bottom:1px solid rgba(226,232,240,.7) !important;
    transition:all .18s ease;
  }
  .nh-nav .nh-cat-icons__item:hover{
    background:color-mix(in srgb,var(--cat-color,#2563eb) 10%,#fff);
    border-color:color-mix(in srgb,var(--cat-color,#2563eb) 35%,transparent) !important;
    color:var(--cat-color,#2563eb);
    padding-left:16px;
  }
  .nh-nav .nh-cat-icons__icon{
    width:34px;height:34px;border-radius:9px;display:flex;align-items:center;justify-content:center;
    background:color-mix(in srgb,var(--cat-color,#2563eb) 16%,#fff);
    color:var(--cat-color,#2563eb);flex-shrink:0;
    box-shadow:0 1px 3px rgba(0,0,0,.04);
  }
  .nh-nav .nh-cat-icons__icon svg{width:17px;height:17px}
  .nh-nav .nh-cat-icons__arrow{
    display:flex;margin-left:auto;font-size:17px;color:#94a3b8;font-weight:400;line-height:1;
    transition:transform .18s ease,color .18s ease;
  }
  .nh-nav .nh-cat-icons__item:hover .nh-cat-icons__arrow{
    transform:translateX(2px);color:var(--cat-color,#2563eb);
  }

  /* Body lock when drawer open */
  body.nh-menu-open{overflow:hidden}

  /* Footer — compact & perfectly centered on mobile */
  .nh-footer{padding:18px 0 22px;margin-top:28px;text-align:center}
  .nh-footer__bottom{
    width:calc(100% - 32px) !important;
    max-width:440px !important;
    margin:0 auto !important;
    padding:0 !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:center !important;
    text-align:center !important;
    gap:8px !important;
  }
  .nh-footer__copyright{
    font-size:12px;
    text-align:center !important;
    width:100% !important;
    margin:0 auto !important;
    line-height:1.5;
    color:var(--nh-muted);
  }
  .nh-footer__legal{
    display:flex !important;
    justify-content:center !important;
    align-items:center !important;
    gap:16px !important;
    width:100% !important;
    margin:0 auto !important;
  }
  .nh-footer__legal a{
    font-size:12px;
    color:var(--nh-muted);
  }

  .nh-hero{margin-top:16px;gap:12px}
  .nh-hero-side-card{grid-template-columns:78px minmax(0,1fr);gap:10px}
  .nh-hero-side-card__title{font-size:12.5px;-webkit-line-clamp:2}
  .nh-carousel__content{padding:18px}
  .nh-carousel__title{font-size:clamp(20px,5.6vw,28px)}
  .nh-carousel__excerpt{font-size:13px}
  .nh-carousel__arrow{width:36px;height:36px}
  .nh-carousel__arrow--prev{left:10px}
  .nh-carousel__arrow--next{right:10px}

  .nh-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .nh-card--compact{padding:0}
  .nh-card--compact .nh-card__media{aspect-ratio:16/9}
  .nh-card--compact .nh-card__body{padding:10px 12px 12px;gap:6px}
  .nh-card--compact .nh-card__title{font-size:13.5px;-webkit-line-clamp:2}
  .nh-card--mini .nh-card__media{aspect-ratio:4/3}
  .nh-card--mini .nh-card__body{padding:10px 12px 12px;gap:4px}
  .nh-card--mini .nh-card__title{font-size:12px;-webkit-line-clamp:2}
  .nh-card--small .nh-card__body{padding:12px 14px 14px;gap:8px}
  .nh-card--small .nh-card__title{font-size:14px}
  .nh-card--horizontal .nh-card__media-wrap{flex:0 0 115px;width:115px}
  .nh-card--list .nh-card__media-wrap{flex:0 0 105px;width:105px}
  .nh-card--horizontal .nh-card__body--horizontal{padding:10px 14px 10px 12px;gap:6px}
  .nh-card--list .nh-card__body--list{padding:10px 14px 10px 12px;gap:5px}
  .nh-card--horizontal .nh-card__title{font-size:14px;-webkit-line-clamp:2}
  .nh-card__title{font-size:15px}
  .nh-card__excerpt{font-size:12.5px;-webkit-line-clamp:2}
  .nh-card__body{padding:13px}
  .nh-card .nh-meta{font-size:10.5px;gap:9px}
  .nh-mini-card{grid-template-columns:76px minmax(0,1fr)}
  .nh-mini-card__title{font-size:12.5px}

  .nh-article{padding:16px 12px;border-radius:14px}
  .nh-article__title{font-size:clamp(22px,6.2vw,30px);line-height:1.28;margin-bottom:10px}
  .nh-article__deck{font-size:14.5px;padding:6px 12px;margin-bottom:14px}
  .nh-article__media-frame{border-radius:12px;aspect-ratio:16/9.5;width:100%}
  .nh-article__meta-strip{padding:8px 12px;margin-bottom:18px}
  .nh-article__meta-strip .nh-meta{gap:10px;font-size:12px}
  .nh-comments{padding:18px 14px}
  .nh-comment-list .children{padding-left:10px}
  .nh-article__content{font-size:16.5px;line-height:1.8}
  .nh-article__content > p:first-of-type{font-size:17.5px;line-height:1.75}
  .nh-article__footer{flex-direction:column;align-items:flex-start;gap:14px}
  .nh-post-nav{grid-template-columns:1fr;gap:10px}
  .nh-trending__list{grid-template-columns:1fr}
  .nh-trending__item{grid-template-columns:36px minmax(0,1fr)}
  .nh-trending__rank{width:36px;height:36px;font-size:15px}

  .nh-sidebar{grid-template-columns:1fr}
  .nh-section{margin:24px 0}
  .nh-archive-head{padding-bottom:18px;margin-bottom:18px}
  .nh-error__code{font-size:80px}
  .nh-author-box{grid-template-columns:64px minmax(0,1fr);gap:14px}
  .nh-author-box__avatar img{width:64px;height:64px}
}
@media (max-width:430px){
  .nh-card-grid{grid-template-columns:1fr}
  .nh-hero__side{grid-template-columns:1fr}
  .nh-card--horizontal .nh-card__media-wrap{flex:0 0 100px;width:100px}
  .nh-card--list .nh-card__media-wrap{flex:0 0 92px;width:92px}
  .nh-card--horizontal .nh-card__body--horizontal{padding:8px 12px 8px 10px}
  .nh-card--list .nh-card__body--list{padding:8px 12px 8px 10px}
  .nh-card--horizontal .nh-card__title--horizontal,
  .nh-card--list .nh-card__title--list{font-size:13.5px}
  .nh-card--horizontal .nh-card__excerpt--horizontal,
  .nh-card--list .nh-card__excerpt--list{display:none}
}

/* --------------------------------------------------------------------------
   30. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}
  .nh-carousel__slide{transition:opacity .01ms!important}
  .nh-carousel__media img{transition:none!important}
}


/* --------------------------------------------------------------------------
   31. Footer widget columns
   -------------------------------------------------------------------------- */
.nh-footer__widgets{border-bottom:1px solid var(--nh-line);padding:36px 0}
.nh-footer__cols{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:32px}
@media (max-width:1023px){.nh-footer__cols{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:599px){.nh-footer__cols{grid-template-columns:1fr}}
.nh-footer__col .nh-widget{box-shadow:none;padding:0;background:transparent;margin-bottom:0}
.nh-footer__col .nh-widget__title{font-size:16px;color:var(--nh-navy)}

/* --------------------------------------------------------------------------
   35. Category tabs section (nh-section--cat-tabs)
   -------------------------------------------------------------------------- */
.nh-cat-section-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px;padding-bottom:4px;border-bottom:2px solid var(--nh-line)}
.nh-cat-section-tabs__btn{
  padding:8px 18px;border-radius:999px;border:1px solid var(--nh-line);
  background:#fff;color:var(--nh-body);font-size:13px;font-weight:650;cursor:pointer;
  transition:all .18s ease;
}
.nh-cat-section-tabs__btn:hover{border-color:var(--nh-accent);color:var(--nh-accent)}
.nh-cat-section-tabs__btn.is-active{background:var(--nh-accent);border-color:var(--nh-accent);color:#fff;box-shadow:0 4px 12px rgba(37,99,235,.25)}
.nh-cat-section-panel{display:none}
.nh-cat-section-panel.is-active{display:block}
@media (max-width:767px){
  .nh-cat-section-tabs{gap:6px}
  .nh-cat-section-tabs__btn{padding:7px 14px;font-size:12px}
}

/* --------------------------------------------------------------------------
   36. Toast notification (Bookmark / user actions)
   -------------------------------------------------------------------------- */
.nh-toast{
  position:fixed;bottom:24px;left:50%;transform:translateX(-50%) translateY(24px);
  background:#0f172a;color:#fff;padding:11px 22px;border-radius:30px;
  font-size:13.5px;font-weight:600;box-shadow:0 12px 32px rgba(15,23,42,.35);
  z-index:999999;display:flex;align-items:center;gap:10px;opacity:0;
  transition:transform .24s cubic-bezier(.2,.9,.3,1.2),opacity .22s ease;
  pointer-events:none;
}
.nh-toast.is-visible{opacity:1;transform:translateX(-50%) translateY(0)}
.nh-toast__icon{
  display:inline-flex;align-items:center;justify-content:center;
  width:20px;height:20px;border-radius:50%;background:#10b981;color:#fff;font-size:11px;font-weight:700;
}
.nh-toast--removed .nh-toast__icon{background:#ef4444}

/* --------------------------------------------------------------------------
   37. Scroll to Top Floating Button
   -------------------------------------------------------------------------- */
.nh-scroll-top{
  position:fixed;
  right:26px;
  bottom:26px;
  z-index:999;
  width:46px;
  height:46px;
  border-radius:50%;
  border:0;
  background:var(--nh-navy,#0f172a);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow:0 4px 16px rgba(15,23,42,.28);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(14px) scale(.92);
  transition:opacity .25s ease,visibility .25s ease,transform .25s cubic-bezier(.16,1,.3,1),background-color .2s ease,box-shadow .2s ease,bottom .15s ease-out;
}
.nh-scroll-top.is-visible{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateY(0) scale(1);
}
.nh-scroll-top:active{
  transform:translateY(0) scale(.95);
}
@media (hover:hover) and (pointer:fine){
  .nh-scroll-top:hover{
    background:var(--nh-accent,#2563eb);
    color:#fff;
    transform:translateY(-3px) scale(1.05);
    box-shadow:0 8px 24px rgba(37,99,235,.35);
  }
  .nh-scroll-top:hover .nh-icon{
    transform:translateY(-2px);
  }
}
.nh-scroll-top:focus{outline:none}
.nh-scroll-top:focus:not(:focus-visible){
  background:var(--nh-navy,#0f172a);
}
.nh-scroll-top .nh-icon{
  width:20px;
  height:20px;
  transition:transform .2s ease;
}
@media (max-width:767px){
  .nh-scroll-top{
    right:16px;
    bottom:20px;
    width:42px;
    height:42px;
    box-shadow:0 4px 14px rgba(15,23,42,.24);
  }
  .nh-scroll-top .nh-icon{
    width:18px;
    height:18px;
  }
}

/* --------------------------------------------------------------------------
   36. Heading Anchor Clearance for Sticky Navigation
   -------------------------------------------------------------------------- */
.nh-article__content h1,
.nh-article__content h2,
.nh-article__content h3,
.nh-article__content h4,
.nh-article__content h5,
.nh-article__content h6 {
  scroll-margin-top: 85px;
}

/* --------------------------------------------------------------------------
   37. Table of Contents (TOC)
   -------------------------------------------------------------------------- */
.nh-toc{
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-left:4px solid var(--nh-accent,#2563eb);
  border-radius:14px;
  margin:24px 0;
  padding:0;
  overflow:hidden;
  box-shadow:0 2px 8px rgba(15,23,42,.04);
  transition:all .2s ease;
}
.nh-toc__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 18px;
  cursor:pointer;
  user-select:none;
  background:transparent;
  transition:background .18s ease;
}
.nh-toc__header:hover{
  background:rgba(226,232,240,.45);
}
.nh-toc__title{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:15px;
  font-weight:750;
  color:var(--nh-navy,#0f172a);
}
.nh-toc__title svg{
  color:var(--nh-accent,#2563eb);
  width:17px;
  height:17px;
  flex-shrink:0;
}
.nh-toc__toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:22px;
  height:22px;
  background:transparent;
  border:none;
  padding:0;
  color:#64748b;
  flex-shrink:0;
  transition:transform .22s cubic-bezier(.4,0,.2,1),color .18s ease;
}
.nh-toc__header:hover .nh-toc__toggle{
  color:var(--nh-accent,#2563eb);
}
.nh-toc__toggle-icon{
  width:16px;
  height:16px;
  transition:transform .22s cubic-bezier(.4,0,.2,1);
}
.nh-toc--collapsed .nh-toc__toggle-icon{
  transform:rotate(-180deg);
}
.nh-toc__body{
  padding:0 18px 14px 18px;
  border-top:1px dashed rgba(203,213,225,.7);
  margin-top:0;
  padding-top:12px;
}
.nh-toc__list{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.nh-toc__item{
  position:relative;
}
.nh-toc__item--h2{
  font-weight:600;
  font-size:14px;
}
.nh-toc__item--h3{
  margin-left:18px;
  padding-left:12px;
  border-left:2px solid #cbd5e1;
  font-size:13px;
  font-weight:500;
}
.nh-toc__link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:#334155;
  text-decoration:none;
  padding:3px 6px;
  border-radius:6px;
  transition:all .15s ease;
  line-height:1.45;
}
.nh-toc__link:hover{
  color:var(--nh-accent,#2563eb);
  background:rgba(37,99,235,.06);
  transform:translateX(3px);
}
.nh-toc__bullet{
  display:inline-block;
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--nh-accent,#2563eb);
  flex-shrink:0;
  opacity:.75;
  transition:transform .15s ease,background .15s ease;
}
.nh-toc__link:hover .nh-toc__bullet{
  transform:scale(1.3);
}
.nh-toc__item--h3 .nh-toc__bullet{
  width:4px;
  height:4px;
  background:#94a3b8;
}

/* --------------------------------------------------------------------------
   38. Ad Placements (Homepage & Single Post)
   -------------------------------------------------------------------------- */
.nh-ad-wrap{
  margin:18px auto;
  clear:both;
  width:100%;
  max-width:100%;
  text-align:center;
  box-sizing:border-box;
}
.nh-ad-slot{
  position:relative;
  text-align:center;
  margin:0 auto;
  max-width:100%;
  background:transparent !important;
  border:none !important;
  border-radius:0 !important;
  padding:0 !important;
  box-shadow:none !important;
  box-sizing:border-box;
}
.nh-ad-slot__label{
  display:none !important;
}
.nh-ad-slot__content{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  max-width:100%;
  min-height:0 !important;
  overflow:hidden;
  box-sizing:border-box;
}
.nh-ad-slot__content img{
  max-width:100%;
  height:auto;
  border-radius:4px;
}
.nh-ad-slot--article{
  margin:18px auto;
}
@media (max-width:767px){
  .nh-ad-wrap{margin:14px auto}
  .nh-ad-slot{padding:0 !important;border:none !important;background:transparent !important}
  .nh-toc{
    padding:0 !important;
    margin:14px 0 !important;
    border-radius:10px !important;
    border-left-width:3.5px !important;
  }
  .nh-toc__header{
    padding:8px 12px !important;
    gap:8px !important;
  }
  .nh-toc__title{
    font-size:13.5px !important;
    gap:6px !important;
  }
  .nh-toc__title svg{
    width:14px !important;
    height:14px !important;
  }
  .nh-toc__toggle{
    width:20px !important;
    height:20px !important;
  }
  .nh-toc__toggle-icon{
    width:14px !important;
    height:14px !important;
  }
  .nh-toc__body{
    padding:0 12px 10px 12px !important;
    padding-top:8px !important;
  }
  .nh-toc__list{
    gap:4px !important;
  }
  .nh-toc__item--h2{
    font-size:13px !important;
    line-height:1.4 !important;
  }
  .nh-toc__item--h3{
    font-size:12px !important;
    margin-left:12px !important;
    padding-left:8px !important;
    line-height:1.4 !important;
  }
  .nh-toc__link{
    padding:2px 4px !important;
    font-size:13px !important;
    gap:6px !important;
  }
  .nh-toc__bullet{
    width:5px !important;
    height:5px !important;
  }
  .nh-article__content h1,
  .nh-article__content h2,
  .nh-article__content h3,
  .nh-article__content h4,
  .nh-article__content h5,
  .nh-article__content h6{scroll-margin-top:60px}
}

/* --------------------------------------------------------------------------
   32. Clean Print Stylesheet (Ctrl + P / Paper / PDF)
   -------------------------------------------------------------------------- */
@media print{
  body{background:#fff !important;color:#000 !important;font-size:12pt !important}
  .nh-header,.nh-nav,.nh-cat-bar,.nh-footer,.nh-sidebar,.nh-share,.nh-post-nav,
  .nh-comments-area,.nh-reading-progress,.nh-font-resizer,.nh-audio-player,.nh-ad-wrap,.nh-ad-slot,
  .nh-toc,.nh-scroll-top,.nh-breadcrumbs,.nh-ticker{display:none !important}
  .nh-container,.nh-layout,.nh-layout__main,.nh-article{
    width:100% !important;max-width:100% !important;margin:0 !important;padding:0 !important;
  }
  .nh-article__title{font-size:24pt !important;color:#000 !important;margin-bottom:12pt !important}
  .nh-article__content{font-size:11.5pt !important;line-height:1.65 !important;color:#111 !important}
  .nh-article__content a{color:#000 !important;text-decoration:underline !important}
  img{max-width:100% !important;page-break-inside:avoid}
  h1,h2,h3,h4{page-break-after:avoid}
}

/* --------------------------------------------------------------------------
   33. Dark Mode / Night Mode Engine
   -------------------------------------------------------------------------- */
[data-theme="dark"] {
  --nh-bg: #090d16;
  --nh-bg-2: #0f172a;
  --nh-card: #131c2e;
  --nh-text: #f1f5f9;
  --nh-body: #94a3b8;
  --nh-muted: #64748b;
  --nh-faint: #475569;
  --nh-line: #1e293b;
  --nh-shadow: 0 1px 4px rgba(0,0,0,.35), 0 4px 16px rgba(0,0,0,.3);
  --nh-shadow-md: 0 4px 20px rgba(0,0,0,.45), 0 8px 30px rgba(0,0,0,.35);
  --nh-shadow-lg: 0 8px 32px rgba(0,0,0,.55), 0 16px 54px rgba(0,0,0,.45);
}

[data-theme="dark"] body {
  background: var(--nh-bg);
  color: var(--nh-text);
}

[data-theme="dark"] .nh-header {
  background: #0d1527;
  border-bottom-color: #1e293b;
}

[data-theme="dark"] .nh-icon-btn {
  background: #1e293b;
  border-color: #334155;
  color: #cbd5e1;
}

[data-theme="dark"] .nh-icon-btn:hover {
  background: #24324a;
  border-color: #60a5fa;
  color: #60a5fa;
}

[data-theme="dark"] .nh-icon-btn.nh-theme-toggle {
  color: #fbbf24;
}

[data-theme="dark"] .nh-icon-btn.nh-theme-toggle:hover {
  color: #fde047;
}

[data-theme="dark"] .nh-menu-toggle {
  color: #60a5fa;
}

[data-theme="dark"] .nh-cat-bar {
  background: #090e1a;
  border-bottom-color: #1e293b;
}

[data-theme="dark"] .nh-cat-chip {
  background: #131c2e;
  color: #94a3b8;
  border-color: #1e293b;
}

[data-theme="dark"] .nh-cat-chip:hover {
  background: #1e293b;
  color: #fff;
}

[data-theme="dark"] .nh-card {
  background: var(--nh-card);
  border-color: rgba(255,255,255,.07);
}

[data-theme="dark"] .nh-card::before {
  box-shadow: inset 0 0 0 0 var(--nh-accent);
}

[data-theme="dark"] .nh-card:hover {
  border-color: transparent;
  box-shadow: 0 8px 28px rgba(0,0,0,.5);
}

[data-theme="dark"] .nh-card__title a {
  color: #f1f5f9;
}

[data-theme="dark"] .nh-card__title a:hover {
  color: #60a5fa;
}

[data-theme="dark"] .nh-card__excerpt {
  color: #94a3b8;
}

[data-theme="dark"] .nh-article {
  background: var(--nh-card);
  border-color: rgba(255,255,255,.07);
}

[data-theme="dark"] .nh-article__title {
  color: #f8fafc;
}

[data-theme="dark"] .nh-article__content {
  color: #cbd5e1;
}

[data-theme="dark"] .nh-article__content p,
[data-theme="dark"] .nh-article__content li {
  color: #cbd5e1;
}

[data-theme="dark"] .nh-article__content h1,
[data-theme="dark"] .nh-article__content h2,
[data-theme="dark"] .nh-article__content h3,
[data-theme="dark"] .nh-article__content h4 {
  color: #f8fafc;
}

[data-theme="dark"] .nh-article__content blockquote {
  background: #0f172a;
  color: #cbd5e1;
  border-left-color: var(--nh-accent);
}

[data-theme="dark"] .nh-article__content code {
  background: #1e293b;
  color: #93c5fd;
}

[data-theme="dark"] .nh-article__content pre {
  background: #090d16;
  border-color: #1e293b;
  color: #e2e8f0;
}

[data-theme="dark"] .nh-article__meta-strip {
  border-color: #1e293b;
}

[data-theme="dark"] .nh-meta-item {
  color: #94a3b8;
}

[data-theme="dark"] .nh-meta-item a {
  color: #94a3b8;
}

[data-theme="dark"] .nh-meta-item a:hover {
  color: #60a5fa;
}

[data-theme="dark"] .nh-widget {
  background: var(--nh-card);
  border-color: rgba(255,255,255,.07);
}

[data-theme="dark"] .nh-widget__title {
  color: #f8fafc;
  border-bottom-color: #1e293b;
}

[data-theme="dark"] .nh-author-bio {
  background: #0f172a;
  border-color: #1e293b;
}

[data-theme="dark"] .nh-post-nav {
  border-color: #1e293b;
}

[data-theme="dark"] .nh-post-nav__link {
  background: #0f172a;
  border-color: #1e293b;
}

[data-theme="dark"] .nh-post-nav__link:hover {
  background: #1e293b;
}

[data-theme="dark"] .nh-breadcrumbs {
  color: #64748b;
}

[data-theme="dark"] .nh-breadcrumbs a {
  color: #94a3b8;
}

[data-theme="dark"] .nh-breadcrumbs a:hover {
  color: #60a5fa;
}

[data-theme="dark"] .nh-toc {
  background: #0f172a;
  border-color: #1e293b;
  border-left-color: #3b82f6;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .nh-toc__header:hover {
  background: rgba(30, 41, 59, 0.6);
}

[data-theme="dark"] .nh-toc__title {
  color: #f8fafc;
}

[data-theme="dark"] .nh-toc__toggle {
  color: #94a3b8;
}

[data-theme="dark"] .nh-toc__body {
  border-top-color: #1e293b;
}

[data-theme="dark"] .nh-toc__link {
  color: #cbd5e1;
}

[data-theme="dark"] .nh-toc__link:hover {
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.12);
}

[data-theme="dark"] .nh-toc__item--h3 {
  border-left-color: #334155;
}

[data-theme="dark"] .nh-audio-player-wrapper {
  background: #0d1527;
  border-color: #1e293b;
}

[data-theme="dark"] .nh-audio-player__title {
  color: #f8fafc;
}

[data-theme="dark"] .nh-audio-player__content {
  background: #131c2e;
  border-color: #1e293b;
  color: #cbd5e1;
}

[data-theme="dark"] .nh-search-panel {
  background: #0d1527;
  border-bottom-color: #1e293b;
}

[data-theme="dark"] .nh-search-form {
  background: #131c2e;
  border-color: #334155;
}

[data-theme="dark"] .nh-search-form input {
  color: #f1f5f9;
}

[data-theme="dark"] .nh-search-results {
  background: #131c2e;
  border-color: #334155;
  box-shadow: 0 12px 32px rgba(0,0,0,.6);
}

[data-theme="dark"] .nh-search-item {
  border-bottom-color: #1e293b;
}

[data-theme="dark"] .nh-search-item:hover {
  background: #1e293b;
}

[data-theme="dark"] .nh-search-item__title {
  color: #f1f5f9;
}

[data-theme="dark"] .nh-comments-area {
  background: var(--nh-card);
  border-color: rgba(255,255,255,.07);
}

[data-theme="dark"] .nh-comments-title,
[data-theme="dark"] .nh-comment-reply-title {
  color: #f8fafc;
}

[data-theme="dark"] .nh-comment-form input,
[data-theme="dark"] .nh-comment-form textarea {
  background: #0f172a;
  border-color: #334155;
  color: #f1f5f9;
}

[data-theme="dark"] .nh-comment {
  border-bottom-color: #1e293b;
}

[data-theme="dark"] .nh-nav {
  background: #0d1527;
}

[data-theme="dark"] .nh-nav__header {
  border-bottom-color: #1e293b;
}

[data-theme="dark"] .nh-nav__menu a {
  color: #cbd5e1;
}

[data-theme="dark"] .nh-nav__menu a:hover {
  color: #60a5fa;
}

/* --------------------------------------------------------------------------
   34. Theme Switcher Controls
   -------------------------------------------------------------------------- */
.nh-icon-btn.nh-theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--nh-theme-btn-size, 36px);
  height: var(--nh-theme-btn-size, 36px);
  border-radius: var(--nh-theme-icon-radius, 50%);
  border: var(--nh-theme-icon-border, 1px solid var(--nh-line));
  background: var(--nh-theme-icon-bg, transparent);
  color: var(--nh-theme-icon-color, #475569);
  padding: 0;
  outline: none;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}

.nh-icon-btn.nh-theme-toggle:hover {
  transform: rotate(15deg) scale(1.06);
  background: var(--nh-theme-icon-hover-bg, var(--nh-bg-2));
  color: var(--nh-theme-icon-hover-color, #f59e0b);
}

.nh-theme-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--nh-theme-icon-size, 20px);
  height: var(--nh-theme-icon-size, 20px);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), opacity .2s ease;
}

.nh-theme-icon svg {
  width: 100%;
  height: 100%;
}

.nh-theme-icon--moon {
  display: inline-flex;
  color: var(--nh-theme-icon-color, #475569);
}

.nh-theme-icon--sun {
  display: none;
  color: #f59e0b;
}

[data-theme="dark"] .nh-theme-icon--moon {
  display: none;
}

[data-theme="dark"] .nh-theme-icon--sun {
  display: inline-flex;
  filter: drop-shadow(0 0 6px rgba(245,158,11,.4));
}

/* --------------------------------------------------------------------------
   35. Bookmarks Bar, Drawer & Quick Buttons
   -------------------------------------------------------------------------- */
.nh-icon-btn.nh-bookmark-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--nh-bookmark-btn-size, 36px);
  height: var(--nh-bookmark-btn-size, 36px);
  border-radius: var(--nh-bookmark-icon-radius, 50%);
  border: var(--nh-bookmark-icon-border, 1px solid var(--nh-line));
  background: var(--nh-bookmark-icon-bg, transparent);
  color: var(--nh-bookmark-icon-color, #0f172a);
  padding: 0;
  outline: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.nh-icon-btn.nh-bookmark-toggle:hover {
  background: var(--nh-bookmark-icon-hover-bg, var(--nh-bg-2));
  color: var(--nh-bookmark-icon-hover-color, #2563eb);
}

.nh-icon-btn.nh-bookmark-toggle svg {
  width: var(--nh-bookmark-icon-size, 20px);
  height: var(--nh-bookmark-icon-size, 20px);
}

.nh-bookmark-badge {
  position: absolute;
  top: -2px;
  right: -3px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--nh-bookmark-badge-bg, #ef4444);
  color: var(--nh-bookmark-badge-color, #ffffff);
  font-size: 10px;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(239,68,68,.4);
  pointer-events: none;
  transform-origin: center;
  animation: nh-badge-pop .3s cubic-bezier(.34,1.56,.64,1);
}

@keyframes nh-badge-pop {
  0% { transform: scale(0); }
  80% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Slide-out Drawer Panel */
.nh-bookmarks-panel {
  position: fixed;
  inset: 0;
  z-index: 999999;
  visibility: visible;
  transition: visibility .3s ease;
}

.nh-bookmarks-panel[hidden] {
  visibility: hidden;
  pointer-events: none;
}

.nh-bookmarks-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .3s cubic-bezier(.4,0,.2,1);
}

.nh-bookmarks-panel.is-open .nh-bookmarks-backdrop {
  opacity: 1;
}

.nh-bookmarks-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100vw);
  background: var(--nh-card);
  box-shadow: -8px 0 32px rgba(15,23,42,.2);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.32,.72,0,1);
  z-index: 1000000;
}

.nh-bookmarks-panel.is-open .nh-bookmarks-drawer {
  transform: translateX(0);
}

[data-theme="dark"] .nh-bookmarks-drawer {
  background: #0f172a;
  box-shadow: -8px 0 32px rgba(0,0,0,.65);
  border-left: 1px solid #1e293b;
}

.nh-bookmarks-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--nh-line);
  background: var(--nh-bg);
}

[data-theme="dark"] .nh-bookmarks-drawer__header {
  background: #0b1120;
  border-bottom-color: #1e293b;
}

.nh-bookmarks-drawer__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--nh-text);
}

.nh-bookmarks-drawer__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(37,99,235,.1);
  color: var(--nh-accent);
}

.nh-bookmarks-drawer__count {
  font-size: 13px;
  font-weight: 600;
  color: var(--nh-muted);
}

.nh-bookmarks-drawer__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nh-bookmarks-drawer__clear-btn {
  background: none;
  border: 1px solid var(--nh-line);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--nh-muted);
  cursor: pointer;
  transition: all .2s ease;
}

.nh-bookmarks-drawer__clear-btn:hover {
  background: #fee2e2;
  color: #ef4444;
  border-color: #fca5a5;
}

[data-theme="dark"] .nh-bookmarks-drawer__clear-btn {
  border-color: #334155;
  color: #94a3b8;
}

[data-theme="dark"] .nh-bookmarks-drawer__clear-btn:hover {
  background: rgba(239,68,68,.15);
  color: #f87171;
  border-color: #ef4444;
}

.nh-bookmarks-drawer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--nh-muted);
  border-radius: 8px;
  cursor: pointer;
  transition: all .2s ease;
}

.nh-bookmarks-drawer__close:hover {
  background: var(--nh-bg-2);
  color: var(--nh-text);
}

[data-theme="dark"] .nh-bookmarks-drawer__close:hover {
  background: #1e293b;
  color: #f8fafc;
}

.nh-bookmarks-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  scrollbar-width: thin;
}

/* Bookmarked Item Card */
.nh-bookmarks-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: var(--nh-card);
  border: 1px solid var(--nh-line);
  margin-bottom: 10px;
  transition: all .2s ease;
}

.nh-bookmarks-item:hover {
  border-color: var(--nh-accent-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15,23,42,.06);
}

[data-theme="dark"] .nh-bookmarks-item {
  background: #131c2e;
  border-color: #1e293b;
}

[data-theme="dark"] .nh-bookmarks-item:hover {
  background: #172338;
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(0,0,0,.35);
}

.nh-bookmarks-item__thumb {
  flex: 0 0 74px;
  width: 74px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--nh-bg-2);
  position: relative;
}

.nh-bookmarks-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nh-bookmarks-item__thumb-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e2e8f0;
  color: #94a3b8;
}

[data-theme="dark"] .nh-bookmarks-item__thumb-ph {
  background: #1e293b;
  color: #475569;
}

.nh-bookmarks-item__content {
  flex: 1;
  min-width: 0;
}

.nh-bookmarks-item__cat {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 3px;
  color: var(--nh-accent);
}

.nh-bookmarks-item__title {
  margin: 0 0 4px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nh-bookmarks-item__title a {
  color: var(--nh-text);
  text-decoration: none;
}

.nh-bookmarks-item__title a:hover {
  color: var(--nh-accent);
}

.nh-bookmarks-item__date {
  font-size: 11px;
  color: var(--nh-muted);
}

.nh-bookmarks-item__remove {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--nh-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s ease;
}

.nh-bookmarks-item__remove:hover {
  background: #fee2e2;
  color: #ef4444;
}

[data-theme="dark"] .nh-bookmarks-item__remove:hover {
  background: rgba(239,68,68,.2);
  color: #f87171;
}

/* Empty State */
.nh-bookmarks-empty {
  text-align: center;
  padding: 50px 20px;
  color: var(--nh-muted);
}

.nh-bookmarks-empty__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--nh-bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nh-muted);
}

[data-theme="dark"] .nh-bookmarks-empty__icon {
  background: #1e293b;
  color: #64748b;
}

.nh-bookmarks-empty h4 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--nh-text);
}

.nh-bookmarks-empty p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--nh-muted);
}

/* --------------------------------------------------------------------------
   Single Post Unified Action Toolbar (Listen, Save, Text Resizer)
   -------------------------------------------------------------------------- */
.nh-article__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nh-action-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--nh-line, #e2e8f0);
  color: var(--nh-navy, #0f172a);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  transition: all .2s cubic-bezier(.16,1,.3,1);
  box-shadow: 0 1px 3px rgba(15,23,42,.04);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  outline: none;
}

.nh-action-pill-btn:hover {
  background: var(--nh-bg-2, #f8fafc);
  border-color: var(--nh-accent, #2563eb);
  color: var(--nh-accent, #2563eb);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(37,99,235,.12);
}

.nh-action-pill-btn:active {
  transform: translateY(0);
}

.nh-action-pill-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--nh-accent, #2563eb);
}

.nh-action-pill-btn__icon svg {
  width: 14px;
  height: 14px;
}

/* Listen / Audio TTS Trigger Button */
.nh-btn-listen-single {
  position: relative;
}

.nh-btn-listen-single .nh-action-pill-btn__wave {
  display: none;
  align-items: flex-end;
  gap: 2.5px;
  height: 12px;
  margin-left: 2px;
}

.nh-btn-listen-single .nh-action-pill-btn__wave i {
  width: 2.5px;
  background: currentColor;
  border-radius: 1px;
  animation: nhWaveMini 1s ease-in-out infinite;
}

.nh-btn-listen-single .nh-action-pill-btn__wave i:nth-child(1) { height: 4px; animation-delay: .1s; }
.nh-btn-listen-single .nh-action-pill-btn__wave i:nth-child(2) { height: 12px; animation-delay: .3s; }
.nh-btn-listen-single .nh-action-pill-btn__wave i:nth-child(3) { height: 7px; animation-delay: .15s; }

@keyframes nhWaveMini {
  0%, 100% { transform: scaleY(.4); }
  50% { transform: scaleY(1); }
}

.nh-btn-listen-single.is-playing {
  background: rgba(37,99,235,.1);
  border-color: var(--nh-accent, #2563eb);
  color: var(--nh-accent, #2563eb);
}

.nh-btn-listen-single.is-playing .nh-action-pill-btn__icon {
  display: none;
}

.nh-btn-listen-single.is-playing .nh-action-pill-btn__wave {
  display: inline-flex;
}

.nh-btn-listen-single.is-paused {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #b45309;
}

/* Save Story / Bookmark Button */
.nh-btn-bookmark-single.is-bookmarked {
  background: rgba(37,99,235,.1);
  border-color: var(--nh-accent, #2563eb);
  color: var(--nh-accent, #2563eb);
}

.nh-btn-bookmark-single.is-bookmarked .nh-bookmark-btn__icon svg {
  fill: currentColor;
}

/* Dark mode single post toolbar */
[data-theme="dark"] .nh-action-pill-btn {
  background: #131c2e;
  border-color: #1e293b;
  color: #cbd5e1;
}

[data-theme="dark"] .nh-action-pill-btn:hover {
  background: #1e293b;
  border-color: #3b82f6;
  color: #60a5fa;
}

[data-theme="dark"] .nh-btn-listen-single.is-playing {
  background: rgba(59,130,246,.18);
  border-color: #3b82f6;
  color: #60a5fa;
}

[data-theme="dark"] .nh-btn-bookmark-single.is-bookmarked {
  background: rgba(59,130,246,.18);
  border-color: #3b82f6;
  color: #60a5fa;
}

[data-theme="dark"] .nh-article__meta-strip {
  background: #0b1120;
  border-color: #1e293b;
}

[data-theme="dark"] .nh-font-resizer {
  background: #131c2e;
  border-color: #1e293b;
}

[data-theme="dark"] .nh-font-resizer__btn {
  color: #94a3b8;
}

[data-theme="dark"] .nh-font-resizer__btn:hover {
  background: #1e293b;
  color: #60a5fa;
}

[data-theme="dark"] .nh-font-resizer__btn.is-active {
  background: #3b82f6;
  color: #ffffff;
  border-color: #3b82f6;
}

/* Mobile responsive single post toolbar */
@media (max-width: 767px) {
  .nh-article__meta-strip {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 20px;
    border-radius: 12px;
  }
  .nh-article__meta-strip .nh-meta {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    font-size: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--nh-line, #f1f5f9);
    flex-wrap: wrap;
  }
  .nh-article__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    flex-wrap: nowrap;
  }
  .nh-article__actions .nh-action-pill-btn {
    flex: 1 1 auto;
    padding: 0 10px;
    height: 34px;
    font-size: 12px;
    justify-content: center;
  }
  .nh-font-resizer {
    flex: 0 0 auto;
    height: 34px;
    padding: 0 8px;
  }
  .nh-font-resizer__label span {
    display: none;
  }
}

/* Quick Bookmark Button on Cards */
.nh-card__bookmark,
.nh-card-bookmark-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(15,23,42,.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 6;
  opacity: 1;
  transform: scale(1);
  transition: all .2s cubic-bezier(.34,1.56,.64,1);
}

.nh-card:hover .nh-card__bookmark,
.nh-card:hover .nh-card-bookmark-btn {
  opacity: 1;
  transform: scale(1.08);
}

.nh-card__bookmark.is-bookmarked,
.nh-card-bookmark-btn.is-bookmarked {
  opacity: 1;
  transform: scale(1);
  background: var(--nh-accent);
  color: #ffffff;
}

.nh-card__bookmark.is-bookmarked svg,
.nh-card-bookmark-btn.is-bookmarked svg {
  fill: currentColor;
}

/* Bookmark Toast */
.nh-bookmark-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000001;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 10px;
  background: #0f172a;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
  transform: translateY(20px);
  opacity: 0;
  transition: all .25s cubic-bezier(.34,1.56,.64,1);
  pointer-events: none;
}

.nh-bookmark-toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.nh-bookmark-toast svg {
  width: 18px;
  height: 18px;
  color: #38bdf8;
}

/* ==========================================================================
   Modern App Single Post Card Design (App UI - Matching Mockup)
   ========================================================================== */
.nh-main--single-app .nh-container {
  width: min(var(--nh-max), calc(100% - 40px));
  max-width: 100%;
  margin-inline: auto;
}

.nh-layout--single-app.nh-layout--full .nh-main-col {
  max-width: 1080px;
  margin-inline: auto;
}

.nh-article--app-card {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  margin-bottom: 28px;
  position: relative;
  padding: 0;
}

/* 1. Immersive Top Hero Header */
.nh-app-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  height: auto;
  max-height: 520px;
  min-height: 300px;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
  background-color: #0b1120;
}

.nh-app-hero__img-wrap,
.nh-app-hero__img-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.nh-app-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}

.nh-app-hero__img-fallback {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

/* Dark Gradient Scrim across the bottom — gentle scrim so image remains visible */
.nh-app-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.88) 0%,
    rgba(15, 23, 42, 0.5) 35%,
    rgba(15, 23, 42, 0.1) 65%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 2;
}
  z-index: 2;
}

/* Floating Circular Back Button (Top Left) */
.nh-app-hero__back {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease;
  text-decoration: none;
}

.nh-app-hero__back:hover {
  transform: scale(1.08);
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
}

.nh-app-hero__back svg {
  width: 20px;
  height: 20px;
  margin-right: 2px;
}

/* Hero Content Cluster (Anchored to bottom of image) */
.nh-app-hero__content {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 44px;
  z-index: 3;
  pointer-events: auto;
}

/* Category Pill */
.nh-app-hero__cat {
  display: inline-flex;
  align-items: center;
  padding: 5px 16px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 750;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
  text-decoration: none;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
  line-height: 1.2;
}

.nh-app-hero__cat:hover {
  transform: translateY(-2px);
  background: var(--cat-color, var(--nh-accent));
  border-color: transparent;
  color: #ffffff;
}

/* Large Hero Title (White, High Contrast) */
.nh-app-hero__title {
  color: #ffffff;
  font-size: clamp(23px, 4.2vw, 34px);
  font-weight: 850;
  line-height: 1.22;
  margin: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
  letter-spacing: -0.02em;
}

/* 2. Single Content Sheet Container */
.nh-app-content-sheet {
  background: #ffffff;
  border-radius: 28px;
  margin-top: -32px;
  margin-bottom: 48px;
  position: relative;
  z-index: 5;
  padding: 30px 32px 0 32px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(226, 232, 240, 0.85);
}

/* Author Row (Matches User Image - All Meta & Actions in One Single Row) */
.nh-app-author-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f1f5f9;
  flex-wrap: wrap;
}

.nh-app-author-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.nh-app-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid #f1f5f9;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  background: #e2e8f0;
}

.nh-app-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nh-app-author-meta-wrap {
  min-width: 0;
  line-height: 1.35;
}

.nh-app-author-name {
  display: block;
  font-size: 15px;
  font-weight: 750;
  color: #0f172a;
  text-decoration: none;
  transition: color .18s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nh-app-author-name:hover {
  color: var(--nh-accent);
}

.nh-app-meta-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
  margin-top: 4px;
  flex-wrap: wrap;
  line-height: 1.4;
}

.nh-app-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #64748b;
}

.nh-app-meta-item svg {
  width: 14px;
  height: 14px;
  color: #94a3b8;
  flex-shrink: 0;
}

.nh-app-meta-sep {
  color: #cbd5e1;
  font-size: 11px;
}

/* Icon-Only Modern Actions Group (Listen, Save, Share, Font Resizer) */
.nh-app-actions-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nh-app-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(203, 213, 225, 0.85);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
  color: #0f172a;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  outline: none;
  transition: all .2s cubic-bezier(.16, 1, .3, 1);
  flex-shrink: 0;
  text-decoration: none;
}

.nh-app-icon-btn:hover {
  background: #f8fafc;
  border-color: var(--nh-accent);
  color: var(--nh-accent);
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(37, 99, 235, 0.16);
}

.nh-app-icon-btn:active {
  transform: translateY(0);
}

.nh-app-icon-btn svg {
  width: 16px;
  height: 16px;
}

/* Save / Bookmark state */
.nh-app-icon-btn--bookmark.is-bookmarked {
  background: rgba(37, 99, 235, 0.08);
  color: var(--nh-accent);
  border-color: var(--nh-accent);
}

.nh-app-icon-btn--bookmark.is-bookmarked svg {
  fill: currentColor;
}

/* Listen / Audio TTS state */
.nh-app-icon-btn--listen {
  color: var(--nh-accent);
}

.nh-app-icon-btn--listen.is-playing {
  background: var(--nh-accent);
  color: #ffffff;
  border-color: var(--nh-accent);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.nh-app-icon-btn--listen.is-playing .nh-action-pill-btn__icon {
  display: none;
}

.nh-app-icon-btn--listen.is-playing .nh-action-pill-btn__wave {
  display: inline-flex;
}

.nh-app-icon-btn--listen .nh-action-pill-btn__wave {
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 13px;
}

.nh-app-icon-btn--listen .nh-action-pill-btn__wave i {
  width: 2px;
  background: #ffffff;
  border-radius: 1px;
  animation: nhWaveMini 1s ease-in-out infinite;
}

.nh-app-icon-btn--listen .nh-action-pill-btn__wave i:nth-child(1) { height: 4px; animation-delay: .1s; }
.nh-app-icon-btn--listen .nh-action-pill-btn__wave i:nth-child(2) { height: 13px; animation-delay: .3s; }
.nh-app-icon-btn--listen .nh-action-pill-btn__wave i:nth-child(3) { height: 7px; animation-delay: .15s; }

/* Font Resizer pill matching 38px */
.nh-app-font-resizer {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 38px;
  padding: 0 10px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(203, 213, 225, 0.85);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
  flex-shrink: 0;
}

.nh-app-font-resizer .nh-font-resizer__label {
  display: inline-flex;
  align-items: center;
  color: #64748b;
  margin-right: 2px;
}

.nh-app-font-resizer .nh-font-resizer__label svg {
  width: 14px;
  height: 14px;
  color: var(--nh-accent);
}

.nh-app-font-resizer .nh-font-resizer__group {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.nh-app-font-resizer .nh-font-resizer__btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 2px 6px;
  font-size: 11.5px;
  font-weight: 750;
  color: #475569;
  cursor: pointer;
  line-height: 1.2;
  transition: all .15s ease;
}

.nh-app-font-resizer .nh-font-resizer__btn:hover {
  background: #f1f5f9;
  color: var(--nh-accent);
}

.nh-app-font-resizer .nh-font-resizer__btn.is-active {
  background: var(--nh-accent);
  color: #ffffff;
  border-color: var(--nh-accent);
}

.nh-app-deck {
  font-size: 17px;
  line-height: 1.7;
  color: #334155;
  font-weight: 500;
  margin-bottom: 24px;
}

/* Mobile Responsiveness for App Card */
@media (max-width: 767px) {
  .nh-main--single-app .nh-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .nh-layout--single-app {
    gap: 0;
  }
  .nh-article--app-card {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
  }
  .nh-app-hero {
    border-radius: 0 !important;
    aspect-ratio: 16/9 !important;
    height: auto !important;
    min-height: 210px !important;
    max-height: 420px !important;
    width: 100% !important;
  }
  .nh-app-hero__content {
    left: 14px;
    right: 14px;
    bottom: 24px;
  }
  .nh-app-hero__title {
    font-size: clamp(19px, 5.2vw, 24px);
    line-height: 1.25;
  }
  .nh-app-content-sheet {
    border-radius: 20px 20px 0 0 !important;
    margin: -16px 0 44px 0 !important;
    width: 100% !important;
    padding: 22px 14px 0 14px !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(226, 232, 240, 0.85) !important;
    border-left: none !important;
    border-right: none !important;
    box-sizing: border-box !important;
  }

  /* Separate bottom containers with side margin so they don't stick to phone edges */
  .nh-main--single-app .nh-post-nav,
  .nh-main--single-app .nh-related,
  .nh-main--single-app .nh-author-box,
  .nh-main--single-app .nh-comments-area {
    margin-left: 14px;
    margin-right: 14px;
  }

  .nh-main--single-app .nh-comments-area {
    margin-bottom: 28px !important;
  }

  .nh-main--single-app .nh-comments,
  .nh-main--single-app .nh-author-box {
    border-radius: 18px;
    margin-top: 20px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.85);
    background: #ffffff;
    padding: 18px 16px;
  }

  .nh-main--single-app .nh-related {
    margin-top: 24px;
  }

  /* Single Post Mobile Sidebar: clean separation from comments box & sleek card styling */
  .nh-main--single-app .nh-sidebar {
    margin: 28px 14px 40px 14px !important;
    gap: 20px;
  }
  .nh-main--single-app .nh-sidebar .nh-panel,
  .nh-main--single-app .nh-sidebar .nh-widget {
    border-radius: 18px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.85);
    background: #ffffff;
    padding: 20px 18px;
  }
  [data-theme="dark"] .nh-main--single-app .nh-sidebar .nh-panel,
  [data-theme="dark"] .nh-main--single-app .nh-sidebar .nh-widget {
    background: var(--nh-card);
    border-color: rgba(255, 255, 255, 0.08);
  }

  /* Hide sidebar on mobile when enabled in Theme Settings */
  .nh-sidebar--hide-mobile {
    display: none !important;
  }
  .nh-app-author-row {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    width: 100%;
  }
  .nh-app-author-info {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 12px;
  }
  .nh-app-author-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
  }
  .nh-app-author-meta-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    min-width: 0;
    flex: 1;
  }
  .nh-app-author-name {
    font-size: 14.5px;
    font-weight: 750;
    line-height: 1.25;
    color: #0f172a;
    text-align: left;
    margin: 0 0 4px 0;
  }
  .nh-app-meta-line {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    font-size: 11.5px;
    line-height: 1.2;
    color: #64748b;
    margin: 0;
    white-space: nowrap;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    text-align: left;
  }
  .nh-app-meta-line::-webkit-scrollbar {
    display: none;
  }
  .nh-app-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
  }
  .nh-app-meta-item svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    vertical-align: middle;
  }
  .nh-app-meta-sep {
    font-size: 9px;
    color: #cbd5e1;
    display: inline-block;
    flex-shrink: 0;
    user-select: none;
  }
  .nh-app-actions-group {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 4px auto 0 auto;
    padding-top: 12px;
    border-top: 1px dashed rgba(226, 232, 240, 0.75);
  }
  .nh-app-icon-btn {
    width: 38px;
    height: 38px;
  }
  .nh-app-icon-btn svg {
    width: 16px;
    height: 16px;
  }
  .nh-app-font-resizer {
    height: 38px;
    padding: 0 6px;
  }
  .nh-app-font-resizer .nh-font-resizer__label {
    display: none;
  }
  .nh-app-font-resizer .nh-font-resizer__btn {
    padding: 2px 5px;
    font-size: 11px;
  }

  /* Mobile Share Pill: Clean, Centered */
  .nh-article__footer {
    position: relative;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--nh-line);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .nh-tags-box {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .nh-tags {
    margin-bottom: 0;
    justify-content: center;
    gap: 6px;
  }

  .nh-share-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto -21px auto;
    padding: 0;
    box-sizing: border-box;
    position: relative;
    z-index: 20;
  }

  .nh-share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: auto;
    max-width: calc(100% - 20px);
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    padding: 5px 10px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.10);
    margin: 0 auto;
    position: relative;
    z-index: 10;
    flex-wrap: nowrap;
    white-space: nowrap;
    box-sizing: border-box;
  }

  .nh-share__label {
    font-size: 11.5px;
    font-weight: 750;
    color: #334155;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin: 0;
    flex-shrink: 0;
  }

  .nh-share__label svg {
    width: 13px;
    height: 13px;
    color: var(--nh-accent);
  }

  .nh-share__btns {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
    flex-shrink: 0;
  }

  .nh-share__btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform .18s ease, box-shadow .18s ease;
  }

  .nh-share__btn:active {
    transform: scale(0.92);
  }

  .nh-share__btn svg {
    width: 13px;
    height: 13px;
  }

  .nh-share--highlight {
    border-color: var(--nh-accent) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25) !important;
  }
}

/* Dark Mode Styles for App Card */
[data-theme="dark"] .nh-article--app-card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

[data-theme="dark"] .nh-app-content-sheet {
  background: #0f172a;
  border: 1px solid #1e293b;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .nh-app-author-row {
  border-color: #1e293b;
}

[data-theme="dark"] .nh-app-author-avatar {
  border-color: #1e293b;
  background: #1e293b;
}

[data-theme="dark"] .nh-app-author-name {
  color: #f8fafc;
}

[data-theme="dark"] .nh-app-author-name:hover {
  color: #60a5fa;
}

[data-theme="dark"] .nh-app-meta-line,
[data-theme="dark"] .nh-app-meta-item {
  color: #94a3b8;
}

[data-theme="dark"] .nh-app-meta-item svg {
  color: #64748b;
}

[data-theme="dark"] .nh-app-meta-sep {
  color: #475569;
}

[data-theme="dark"] .nh-app-deck {
  color: #cbd5e1;
}

[data-theme="dark"] .nh-app-icon-btn {
  background: #1e293b;
  border-color: #334155;
  color: #f8fafc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .nh-app-icon-btn:hover {
  background: #24324a;
  border-color: #60a5fa;
  color: #60a5fa;
}

[data-theme="dark"] .nh-app-icon-btn--bookmark.is-bookmarked {
  background: rgba(59, 130, 246, 0.18);
  color: #60a5fa;
  border-color: #3b82f6;
}

[data-theme="dark"] .nh-app-font-resizer {
  background: #1e293b;
  border-color: #334155;
}

[data-theme="dark"] .nh-app-font-resizer .nh-font-resizer__btn {
  color: #94a3b8;
}

[data-theme="dark"] .nh-app-font-resizer .nh-font-resizer__btn:hover {
  background: #24324a;
  color: #60a5fa;
}

[data-theme="dark"] .nh-app-font-resizer .nh-font-resizer__btn.is-active {
  background: #3b82f6;
  color: #ffffff;
  border-color: #3b82f6;
}

[data-theme="dark"] .nh-comments,
[data-theme="dark"] .nh-author-box,
[data-theme="dark"] .nh-post-nav__side,
[data-theme="dark"] .nh-share {
  background: #0f172a;
  border-color: #1e293b;
}

[data-theme="dark"] .nh-share__label {
  color: #f8fafc;
}

[data-theme="dark"] .nh-app-actions-group {
  border-color: #1e293b;
}

/* ==========================================================================
   Floating Sticky Footer Ad Banner (Ultra-Smooth GPU Animation & Generous Height)
   ========================================================================== */
.nh-sticky-footer-ad {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 99998;
  background: #ffffff;
  box-shadow: 0 -4px 22px rgba(15, 23, 42, 0.14);
  border-top: 1px solid #e2e8f0;
  transform: translate3d(0, 108%, 0);
  opacity: 0;
  will-change: transform, opacity;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.32s ease;
  display: block;
  overflow: visible !important;
  pointer-events: none;
}
.nh-sticky-footer-ad.is-visible {
  transform: translate3d(0, 0, 0);
  opacity: 1;
  pointer-events: auto;
}
.nh-sticky-footer-ad.is-hidden {
  transform: translate3d(0, 108%, 0);
  opacity: 0;
  pointer-events: none;
  display: none !important;
}
[data-theme="dark"] .nh-sticky-footer-ad {
  background: #0f172a;
  border-top-color: #1e293b;
  box-shadow: 0 -4px 28px rgba(0, 0, 0, 0.5);
}

.nh-sticky-footer-ad__inner {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  overflow: visible !important;
}

.nh-sticky-footer-ad--no-close .nh-sticky-footer-ad__btn {
  display: none !important;
}

/* Floating Red Circular Close / Timer Button */
.nh-sticky-footer-ad__btn {
  position: absolute;
  top: -14px;
  right: 14px;
  z-index: 999999 !important;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ef4444;
  color: #ffffff;
  border: 2.5px solid #ffffff;
  box-shadow: 0 3px 10px rgba(239, 68, 68, 0.45), 0 1px 4px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease;
  user-select: none;
  pointer-events: auto !important;
  -webkit-tap-highlight-color: transparent;
}
.nh-sticky-footer-ad__btn::before {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border-radius: 50%;
}
[data-theme="dark"] .nh-sticky-footer-ad__btn {
  border-color: #0f172a;
}
.nh-sticky-footer-ad__btn.is-counting {
  cursor: not-allowed;
  background: #dc2626;
  font-size: 12px;
  letter-spacing: -0.02em;
}
.nh-sticky-footer-ad__btn.is-ready {
  cursor: pointer;
  background: #ef4444;
}
.nh-sticky-footer-ad__btn.is-ready:hover {
  transform: scale(1.15);
  background: #b91c1c;
}
.nh-sticky-footer-ad__btn.is-ready:active {
  transform: scale(0.92);
}
.nh-sticky-ad-btn__val {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
}
.nh-sticky-footer-ad__btn.is-counting .nh-sticky-ad-btn__val {
  font-size: 12px;
  font-weight: 800;
}

/* Ad Body with Sleek, Slim Height (Horizontal Banner Enforcement) */
.nh-sticky-footer-ad__body {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 14px 14px 4px 14px;
  min-height: 0;
  height: auto;
  max-height: 100px;
  overflow: hidden;
  box-sizing: border-box;
}

.nh-sticky-footer-ad__slot {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 970px;
  margin: 0 auto;
  text-align: center;
  min-height: 0;
  height: auto;
  max-height: 92px;
  line-height: 0;
  font-size: 0;
}
.nh-sticky-footer-ad__slot ins.adsbygoogle {
  display: block !important;
  margin: 0 auto !important;
  max-height: 92px !important;
  width: 100% !important;
  vertical-align: middle !important;
}
.nh-sticky-footer-ad__slot img {
  max-width: 100%;
  height: auto;
  max-height: 90px;
  display: block;
  margin: 0 auto;
}
.nh-sticky-footer-ad__slot iframe {
  max-width: 100% !important;
  max-height: 92px !important;
  margin: 0 auto !important;
  display: block;
}

/* Back to Top clearance when sticky ad is active */
body.has-sticky-ad .nh-scroll-top {
  bottom: 85px !important;
}

/* Device-specific visibility and mobile tuning */
@media (max-width: 767px) {
  .nh-sticky-footer-ad--desktop-only {
    display: none !important;
  }
  .nh-sticky-footer-ad {
    max-height: 82px !important;
    overflow: visible !important;
  }
  .nh-sticky-footer-ad__body {
    padding: 16px 8px 3px 8px !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: 76px !important;
    overflow: hidden !important;
  }
  .nh-sticky-footer-ad__slot {
    min-height: 0 !important;
    height: auto !important;
    max-height: 56px !important;
    max-width: 360px !important;
    overflow: hidden !important;
    line-height: 0 !important;
    font-size: 0 !important;
  }
  .nh-sticky-footer-ad__slot ins.adsbygoogle,
  .nh-sticky-footer-ad__slot div[id^="aswift"],
  .nh-sticky-footer-ad__slot iframe {
    max-height: 54px !important;
    vertical-align: middle !important;
  }
  .nh-sticky-footer-ad__btn {
    top: -14px !important;
    right: 10px !important;
    width: 26px !important;
    height: 26px !important;
    z-index: 999999 !important;
  }
  body.has-sticky-ad .nh-scroll-top {
    bottom: 78px !important;
  }
}
@media (min-width: 768px) {
  .nh-sticky-footer-ad--mobile-only {
    display: none !important;
  }
}


/* ==========================================================================
   NewsHub Shorts & Reels Horizontal Strip & Lightbox Modal (PageSpeed Safe)
   ========================================================================== */
.nh-shorts-section {
  padding: 32px 0;
  background: #ffffff;
  position: relative;
  overflow: hidden;
}
.nh-shorts-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
}
.nh-shorts-header__left {
  flex: 1;
  min-width: 0;
}
.nh-shorts-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #dc2626;
  background: #fef2f2;
  border: 1px solid #fee2e2;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.nh-shorts-pill__dot {
  width: 7px;
  height: 7px;
  background-color: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: nh-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes nh-pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 7px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
.nh-shorts-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.nh-shorts-subtitle {
  font-size: 0.88rem;
  color: #64748b;
  margin: 4px 0 0 0;
}
.nh-shorts-header__nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nh-shorts-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}
.nh-shorts-nav-btn:hover {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  transform: scale(1.05);
}
.nh-shorts-track-wrapper {
  position: relative;
  margin: 0 -16px;
  padding: 0 16px;
}
.nh-shorts-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 20px 4px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}
.nh-shorts-track::-webkit-scrollbar {
  height: 6px;
}
.nh-shorts-track::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}
.nh-shorts-card {
  flex: 0 0 190px;
  width: 190px;
  height: 338px;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  scroll-snap-align: start;
  cursor: pointer;
  background: #090d16;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  user-select: none;
  border: 1.5px solid transparent;
}
.nh-shorts-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.22);
  border-color: rgba(255, 255, 255, 0.3);
}
.nh-shorts-card__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.nh-shorts-card__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.nh-shorts-card:hover .nh-shorts-card__thumb {
  transform: scale(1.05);
}
.nh-shorts-card__fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  padding: 20px;
  text-align: center;
}
.nh-shorts-card__fallback--youtube {
  background: radial-gradient(circle at center, #2b0000 0%, #0c0202 100%);
  color: #ff3333;
}
.nh-shorts-card__fallback--instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  color: #ffffff;
}
.nh-shorts-card__fallback--ad {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  color: #f59e0b;
}
.nh-shorts-fallback-label {
  font-size: 13px;
  font-weight: 700;
  margin-top: 8px;
  letter-spacing: 0.5px;
}
.nh-shorts-card__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.5) 42%, rgba(0,0,0,0.05) 75%, transparent 100%);
  pointer-events: none;
}
.nh-shorts-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #ffffff;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.nh-shorts-card__badge--youtube {
  background: #ff0000;
}
.nh-shorts-card__badge--instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.nh-shorts-card__badge--ad {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
}
.nh-shorts-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  opacity: 0.85;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
.nh-shorts-card:hover .nh-shorts-card__play {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  opacity: 1;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}
.nh-shorts-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px;
  z-index: 2;
  color: #ffffff;
}
.nh-shorts-card__title {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
  color: #ffffff;
  margin: 0 0 6px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}
.nh-shorts-card__meta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
/* Sponsored In-Feed Card */
.nh-shorts-card--ad {
  border: 2px solid rgba(245, 158, 11, 0.6);
  background: #111827;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.15);
}
.nh-shorts-card--ad:hover {
  border-color: #f59e0b;
  box-shadow: 0 10px 28px rgba(245, 158, 11, 0.3);
}
.nh-shorts-card__title--ad {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}
.nh-shorts-card__desc--ad {
  font-size: 11px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 10px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nh-shorts-ad-btn {
  display: inline-block;
  width: 100%;
  text-align: center;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
  transition: all 0.2s ease;
}
.nh-shorts-ad-btn:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #ffffff;
  transform: translateY(-1px);
}
.nh-shorts-card__custom-ad {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8px;
}

/* Lightbox Modal Player - Full Screen Immersive Swipe Feed */
.nh-shorts-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
}
.nh-shorts-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.nh-shorts-modal__backdrop {
  position: absolute;
  inset: 0;
  background: #000000;
}
.nh-shorts-modal__container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: calc(100vh * (9 / 16));
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nh-shorts-modal__box {
  width: 100%;
  height: 100%;
  background: #000000;
  border: none;
  border-radius: 0;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.95);
  display: flex;
}
.nh-shorts-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 100;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.9);
  transition: opacity 0.3s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease;
}
.nh-shorts-modal__close.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}
.nh-shorts-modal__close:hover {
  background: #dc2626;
  border-color: #dc2626;
  transform: scale(1.1);
}
.nh-shorts-gesture-layer {
  position: absolute;
  inset: 0;
  z-index: 25;
  touch-action: none;
  background: transparent;
}
.nh-shorts-player-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000000;
  overflow: hidden;
}
.nh-shorts-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #000000;
  display: block;
}

/* Instant Loader Screen (Zero Black Screen) */
.nh-shorts-loader-screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  overflow: hidden;
  transition: opacity 0.35s ease;
}
.nh-shorts-loader-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(14px) brightness(0.65);
  transform: scale(1.15);
}
.nh-shorts-spinner-ring {
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 3.5px solid rgba(255, 255, 255, 0.25);
  border-top-color: #ef4444;
  border-radius: 50%;
  animation: nhSpin 0.75s linear infinite;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}
@keyframes nhSpin {
  to { transform: rotate(360deg); }
}

/* Animations for Smooth Swipe */
@keyframes nhSlideUp {
  from { transform: translateY(80px); opacity: 0.6; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes nhSlideDown {
  from { transform: translateY(-80px); opacity: 0.6; }
  to { transform: translateY(0); opacity: 1; }
}
.nh-anim-slide-up {
  animation: nhSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.nh-anim-slide-down {
  animation: nhSlideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Subtle Mobile Swipe Hint - Shows 2 times then smoothly auto-dismisses */
.nh-shorts-swipe-hint {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 5px 14px;
  border-radius: 999px;
  pointer-events: none;
  z-index: 20;
  opacity: 1;
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
  animation: nhBounce 1.5s ease 2 forwards;
}
.nh-shorts-swipe-hint.is-dismissed {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateX(-50%) translateY(12px) !important;
  visibility: hidden !important;
}
@keyframes nhBounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-6px); }
  60% { transform: translateX(-50%) translateY(-3px); }
}

/* Desktop Up/Down Navigation */
.nh-shorts-modal__desktop-nav {
  position: absolute;
  right: -58px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 30;
}
.nh-shorts-modal__dbtn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.nh-shorts-modal__dbtn:hover {
  background: #ffffff;
  color: #0f172a;
  transform: scale(1.1);
}

/* In-Stream Full View Google Ad Slide */
.nh-shorts-full-ad-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #111827 0%, #030712 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: max(16px, env(safe-area-inset-top, 16px)) 16px max(18px, env(safe-area-inset-bottom, 18px)) 16px;
  box-sizing: border-box;
  color: #ffffff;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.nh-shorts-full-ad-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.6px;
  flex-shrink: 0;
  margin-top: 4px;
}
.nh-shorts-full-ad-content {
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  margin: 12px 0;
  min-height: 0;
}
.nh-shorts-ad-placeholder {
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  padding: 28px 20px;
  border: 1.5px dashed rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  max-width: 290px;
  background: rgba(255, 255, 255, 0.03);
}
.nh-shorts-ad-placeholder svg {
  color: #f59e0b;
  margin-bottom: 12px;
}
.nh-shorts-ad-placeholder h4 {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px 0;
}
.nh-shorts-ad-placeholder p {
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}
.nh-shorts-ad-next-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 10px;
}
.nh-shorts-ad-next-btn:hover {
  background: #ffffff;
  color: #0f172a;
  transform: translateY(-2px);
}

/* Mobile 100% Full View / Modal */
@media (max-width: 768px) {
  .nh-shorts-section {
    padding: 20px 0;
  }
  .nh-shorts-title {
    font-size: 1.2rem;
  }
  .nh-shorts-header__nav {
    display: none;
  }
  .nh-shorts-track-wrapper {
    margin: 0;
    padding: 0;
  }
  .nh-shorts-track,
  .nh-shorts-track--3d {
    padding: 14px 16px 24px 16px;
    gap: 14px;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
  }
  .nh-shorts-card {
    flex: 0 0 156px;
    width: 156px;
    height: 280px;
    scroll-snap-align: center;
    transform: scale(0.92) translateY(4px);
    opacity: 0.75;
    filter: brightness(0.85);
    transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.28s ease, filter 0.28s ease, box-shadow 0.28s ease;
  }
  .nh-shorts-card.is-center-card {
    transform: scale(1.05) translateY(-2px);
    opacity: 1;
    filter: brightness(1);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.55), 0 0 0 2px rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.95);
    z-index: 10;
  }
  .nh-shorts-modal {
    padding: 0 !important;
    background: #000000 !important;
  }
  .nh-shorts-modal__backdrop {
    display: none !important;
  }
  .nh-shorts-modal__container {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #000000 !important;
  }
  .nh-shorts-modal__box {
    width: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: #000000 !important;
    position: relative !important;
    overflow: hidden !important;
  }
  .nh-shorts-modal__desktop-nav {
    display: none !important;
  }
  .nh-shorts-modal__close {
    top: max(16px, env(safe-area-inset-top, 16px));
    right: max(16px, env(safe-area-inset-right, 16px));
    width: 40px;
    height: 40px;
  }
}

/* --- Shorts & Reels Gallery & Dedicated Page --- */
.nh-main--shorts {
  padding-top: 18px;
  padding-bottom: 50px;
}
.nh-shorts-gallery-wrap {
  width: 100%;
  margin: 10px 0 40px;
}
.nh-shorts-gallery-header {
  margin-bottom: 24px;
}
.nh-shorts-gallery-header .nh-shorts-title {
  font-size: 30px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.025em;
  margin: 6px 0 8px;
  line-height: 1.2;
}
.nh-shorts-gallery-header .nh-shorts-subtitle {
  font-size: 15px;
  color: #64748b;
  margin: 0;
}
.nh-shorts-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 16px;
  margin-bottom: 22px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.nh-shorts-filters::-webkit-scrollbar {
  display: none;
}
.nh-shorts-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.nh-shorts-filter-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}
.nh-shorts-filter-btn.is-active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(15,23,42,0.18);
}
.nh-shorts-filter-count {
  font-size: 11px;
  opacity: 0.75;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(0,0,0,0.06);
}
.nh-shorts-filter-btn.is-active .nh-shorts-filter-count {
  background: rgba(255,255,255,0.2);
}
.nh-shorts-grid {
  display: grid;
  grid-template-columns: repeat(var(--nh-shorts-cols, 4), 1fr);
  gap: 20px;
  width: 100%;
}
.nh-shorts-grid .nh-shorts-card {
  flex: none;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  scroll-snap-align: none;
  border-radius: 16px;
}
.nh-shorts-card__channel {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  letter-spacing: 0.01em;
  pointer-events: none;
}
@media (max-width: 1024px) {
  .nh-shorts-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px;
  }
}
@media (max-width: 640px) {
  .nh-shorts-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
  }
  .nh-shorts-grid .nh-shorts-card {
    border-radius: 12px;
  }
  .nh-shorts-gallery-header .nh-shorts-title {
    font-size: 22px;
  }
}

/* Infinite Scroll Sentinel & End State */
.nh-shorts-sentinel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 36px 0 24px;
  width: 100%;
}
.nh-shorts-sentinel .nh-shorts-spinner-ring {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(15, 23, 42, 0.12);
  border-top-color: #e11d48;
  border-radius: 50%;
  animation: nh-spin 0.75s linear infinite;
}
.nh-shorts-sentinel__label {
  font-size: 13.5px;
  font-weight: 600;
  color: #64748b;
  letter-spacing: -0.01em;
}
.nh-shorts-end-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 30px 0 20px;
  color: #94a3b8;
  font-size: 13.5px;
  font-weight: 600;
  width: 100%;
}
.nh-shorts-end-state svg {
  color: #10b981;
}

/* Card Enter Animation for Infinite Scroll */
@keyframes nhCardEnter {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.nh-card-enter {
  animation: nhCardEnter 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* In-Player Floating Sponsor Bar (When Video Starts Playing) */
.nh-shorts-player-sponsor-bar {
  position: absolute;
  bottom: 24px;
  left: 14px;
  right: 14px;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6);
  animation: nhSponsorSlideUp 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes nhSponsorSlideUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.nh-shorts-sponsor-pill {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #f59e0b;
  color: #000000;
  padding: 3px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}
.nh-shorts-sponsor-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.nh-shorts-sponsor-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nh-shorts-sponsor-desc {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nh-shorts-sponsor-btn {
  flex-shrink: 0;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff !important;
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 8px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
  display: inline-flex;
  align-items: center;
}
.nh-shorts-sponsor-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}
.nh-shorts-sponsor-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 18px;
  line-height: 1;
  padding: 4px;
  cursor: pointer;
  border-radius: 4px;
  flex-shrink: 0;
}
.nh-shorts-sponsor-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

/* Page Top Ad Banner */
.nh-shorts-page-top-ad {
  width: 100%;
  margin: 10px 0 24px;
  display: flex;
  justify-content: center;
}
.nh-shorts-page-top-ad__banner {
  width: 100%;
  max-width: 860px;
  background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 12px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.nh-shorts-page-top-ad__left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.nh-shorts-page-top-ad__title {
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
}
.nh-shorts-page-top-ad__desc {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  margin: 0;
}
.nh-shorts-page-top-ad__code {
  width: 100%;
  display: flex;
  justify-content: center;
}
@media (max-width: 640px) {
  .nh-shorts-page-top-ad__banner {
    flex-direction: column;
    text-align: center;
    padding: 14px;
  }
  .nh-shorts-page-top-ad__left {
    justify-content: center;
  }
}

/* Full-Screen Sponsored Ad Showcase */
.nh-shorts-ad-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 24px;
  max-width: 380px;
  margin: 0 auto;
}
.nh-shorts-ad-showcase .nh-shorts-ad-brand-icon {
  margin-bottom: 16px;
}
.nh-shorts-ad-showcase h2 {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 10px 0;
  line-height: 1.25;
}
.nh-shorts-ad-showcase p {
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 20px 0;
}
.nh-shorts-ad-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 999px;
  text-decoration: none !important;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
  transition: all 0.25s ease;
  margin-bottom: 18px;
}
.nh-shorts-ad-cta-btn:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.1);
  box-shadow: 0 10px 28px rgba(245, 158, 11, 0.55);
}

/* --- Contained Shorts & Unified Header --- */
.nh-home-body-wrap {
  padding-top: 32px;
  padding-bottom: 40px;
}
@media (max-width: 1024px) {
  .nh-home-body-wrap {
    padding-top: 24px;
    padding-bottom: 32px;
  }
}
@media (max-width: 768px) {
  .nh-home-body-wrap {
    padding-top: 16px;
    padding-bottom: 24px;
  }
}

.nh-shorts-section--contained {
  padding: 18px 0 26px;
  background: transparent;
  overflow: visible;
}
.nh-shorts-section--contained .nh-shorts-contained-inner {
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
}
.nh-shorts-section--contained .nh-shorts-header {
  margin-bottom: 14px;
}
.nh-shorts-section--contained .nh-shorts-track-wrapper {
  margin: 0;
  padding: 0;
}
.nh-shorts-section--contained .nh-shorts-track,
.nh-shorts-section--contained .nh-shorts-track--3d {
  padding: 8px 4px 18px 4px;
}
.nh-shorts-header.nh-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.nh-shorts-title.nh-section-head__title {
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 800;
  color: var(--nh-text);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  position: relative;
  padding-left: 14px;
}
.nh-shorts-title.nh-section-head__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 22px;
  border-radius: 2px;
  background: var(--nh-accent);
}
.nh-shorts-title.nh-section-head__title .nh-section-head__icon-wrap {
  display: inline-flex;
  align-items: center;
  color: var(--nh-accent);
}
.nh-home-section {
  margin-bottom: 36px;
}
.nh-home-section:last-child {
  margin-bottom: 0;
}

/* --- Section Backgrounds (Container / Panel Box Styling) --- */
.nh-home-section.nh-section--has-bg {
  padding: 26px 24px 30px 24px;
  border-radius: 18px;
  margin-bottom: 38px;
  box-sizing: border-box;
}

.nh-home-section.nh-section--has-bg:last-child {
  margin-bottom: 24px;
}

.nh-home-section.nh-section--light {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.nh-home-section.nh-section--dark {
  background-color: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.nh-home-section.nh-section--dark .nh-section-head__title {
  color: #ffffff !important;
}

.nh-home-section.nh-section--dark .nh-section-head__link {
  color: #93c5fd !important;
}

.nh-home-section.nh-section--dark .nh-empty {
  color: #94a3b8;
}

.nh-home-section.nh-section--custom {
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

@media (max-width: 768px) {
  .nh-home-section.nh-section--has-bg {
    padding: 18px 14px 22px 14px;
    border-radius: 14px;
    margin-bottom: 28px;
  }
}

/* --------------------------------------------------------------------------
   36. Islamic & Arabic Typography (Safe & Isolated to Arabic Elements)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'quran';
  src: url('/wp-content/uploads/2024/12/AlQalamQuranMajeedWeb2_D.otf') format('opentype'),
       url('https://barelvi.in/wp-content/uploads/2024/12/AlQalamQuranMajeedWeb2_D.otf') format('opentype');
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

/* Arabic & Islamic Typography (Strictly isolated to Arabic elements only — Zero effect on English or Hindi) */
.nh-arabic-text,
.nh-arabic-block,
[lang="ar"],
.bismilaah,
.arabic,
.arabic-text {
  font-family: 'quran', 'Amiri', 'Scheherazade New', 'Noto Naskh Arabic', serif !important;
  word-spacing: 3px;
}

.nh-arabic-text {
  font-size: 1.25em;
  line-height: 1.85;
  display: inline-block;
  direction: rtl;
  unicode-bidi: embed;
}

.nh-arabic-block,
[lang="ar"],
.arabic-block {
  font-size: 26px !important;
  line-height: 2.2em !important;
  direction: rtl;
  text-align: right;
  display: block;
}

.bismilaah {
  font-size: 25px !important;
  margin: 0 0 7px;
  padding-bottom: 5px !important;
  color: #d32b2b !important;
  border-bottom: 1px solid #ff5f5f;
  display: block;
  text-align: center;
}

/* Islamic Share Text Box & Copy Button Container (Exact Match from barelvi.in) */
.share-text-box {
  width: auto;
  align-items: center;
  line-height: 1.9em;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(22, 126, 255, 0.25);
  background-color: #fff;
  margin-bottom: 40px;
  border: 2px solid #1577f1;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  box-sizing: border-box;
}

[data-theme="dark"] .share-text-box {
  background-color: #131c2e;
  border-color: #2563eb;
  color: #f1f5f9;
}

.icon-button {
  background: url('/wp-content/uploads/2023/08/copy.svg') center right 12px / 20px no-repeat #1577f1;
  background-color: #1577f1;
  color: #fff;
  border-radius: 0 0 10px 10px;
  margin: 20px -20px -20px;
  height: 38px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}
.icon-button:hover {
  background-color: #0d62cc;
}

/* --------------------------------------------------------------------------
   37. Universal Image Fit & Responsive Containment (Cards & Single Page)
   -------------------------------------------------------------------------- */

/* Ensure all card media containers maintain defined aspect ratio & full width */
.nh-card__media,
.nh-card__media-wrap,
.nh-mini-card__media,
.nh-hero-side-card__media,
.nh-carousel__media,
.nh-related-card__media,
.nh-card--grid .nh-card__media-wrap,
.nh-card--compact .nh-card__media-wrap,
.nh-card--lead .nh-card__media-wrap,
.nh-card--horizontal .nh-card__media-wrap,
.nh-card--minimal .nh-card__media-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--nh-bg-2, #f1f5f9);
  display: block;
}

/* Force all images in any card box or list to fill 100% of their box without letterboxing */
.nh-card__media img,
.nh-card__media-wrap img,
.nh-mini-card__media img,
.nh-card img,
.nh-hero-side-card__media img,
.nh-carousel__media img,
.nh-related-card__media img,
.nh-card--grid .nh-card__media img,
.nh-card--compact .nh-card__media img,
.nh-card--lead .nh-card__media img,
.nh-card--horizontal .nh-card__media img,
.nh-card--magazine .nh-card__media img,
.nh-card--grid-news .nh-card__media img,
.nh-card--spotlight .nh-card__media img,
.nh-card--minimal .nh-card__media img,
.nh-card--list .nh-card__media img {
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}

/* AdSense, ad slots & iframes containment to completely prevent mobile horizontal scroll */
.adsbygoogle,
.adsbygoogle iframe,
.nh-ad-slot,
.nh-ad-wrap,
.nh-ad-slot__content,
ins.adsbygoogle[data-ad-status] {
  max-width: 100% !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

ins.adsbygoogle {
  display: block !important;
  width: 100% !important;
  min-width: 250px !important;
}

.nh-ad-slot__content {
  width: 100% !important;
  min-width: 250px !important;
}

/* Sticky footer ad MUST have overflow: visible so the circular close button at top: -14px is never cut in half! */
.nh-sticky-footer-ad,
.nh-sticky-footer-ad__inner {
  overflow: visible !important;
}
.nh-sticky-footer-ad__body,
.nh-sticky-footer-ad__slot {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Auto-hide empty or unfilled ad slots so 'Advertisement' label never hangs alone */
.nh-ad-wrap:has(ins.adsbygoogle[data-ad-status="unfilled"]),
.nh-ad-slot:has(ins.adsbygoogle[data-ad-status="unfilled"]),
.nh-panel--sticky-ad:has(ins.adsbygoogle[data-ad-status="unfilled"]) {
  display: none !important;
}

/* Layout containment for zero mobile horizontal blowout */
.nh-container,
.nh-layout,
.nh-layout__main,
.nh-article,
.nh-app-content-sheet,
.nh-main,
.nh-header,
.nh-footer,
.nh-sidebar {
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-wrap: break-word !important;
  word-break: break-word !important;
  box-sizing: border-box !important;
}

/* Mobile specific lock against any protruding element */
@media (max-width: 860px) {
  html, body {
    overflow-x: clip !important;
    max-width: 100vw !important;
    width: 100% !important;
    position: relative !important;
  }
  .nh-container {
    width: 100% !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    overflow-x: hidden !important;
  }
  .nh-layout--article,
  .nh-layout__main,
  .nh-article {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
  }
  .nh-app-hero {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }
  .nh-main--single-app .nh-container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
  }
}

/* Section AJAX Load More Button */
.nh-load-more-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 28px;
  width: 100%;
}

.nh-load-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  background: #ffffff;
  color: var(--nh-navy, #0f172a);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: all .2s ease;
  min-height: 42px;
}

.nh-load-more-btn:hover {
  background: var(--nh-accent, #2563eb);
  color: #ffffff;
  border-color: var(--nh-accent, #2563eb);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}

.nh-load-more-btn.is-loading {
  pointer-events: none;
  opacity: 0.8;
}

.nh-load-more-btn.is-disabled {
  pointer-events: none;
  opacity: 0.55;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  cursor: default;
}

.nh-load-more-btn__spinner svg,
.nh-spinner-icon {
  width: 18px;
  height: 18px;
  animation: nh-spin 0.8s linear infinite;
}

@keyframes nh-spin {
  to { transform: rotate(360deg); }
}

[data-theme="dark"] .nh-load-more-btn {
  background: var(--nh-card, #1e293b);
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .nh-load-more-btn:hover {
  background: var(--nh-accent, #2563eb);
  color: #ffffff;
}







