/* NFPK Blog Cards V4 — Core 6.24.1
   Final card architecture candidate: isolated namespace, editorial 40/60 split,
   permanent glass media/status rail, collision-proof corner chrome. */
.nfpk-bc4,.nfpk-bc4 *{box-sizing:border-box}
.nfpk-bc4{
  --bc4-red:#ED2025;
  --bc4-bg:rgba(43,43,43,.97);
  --bc4-bg-hover:rgba(34,34,34,.99);
  --bc4-text:#fff;
  --bc4-muted:rgba(255,255,255,.72);
  --bc4-stroke:rgba(255,255,255,.90);
  --bc4-line:rgba(255,255,255,.20);
  --bc4-star:#E6A700;
  position:relative;
  display:flex;
  flex-direction:column;
  min-width:0;
  overflow:hidden;
  background:var(--bc4-bg)!important;
  border:2px solid var(--bc4-stroke)!important;
  border-radius:25px!important;
  color:var(--bc4-text)!important;
  box-shadow:0 16px 34px -28px rgba(0,0,0,.9);
  transition:border-color .18s ease,background-color .18s ease,transform .18s ease;
}
.nfpk-bc4:hover,.nfpk-bc4:focus-within{border-color:var(--bc4-red)!important;background:var(--bc4-bg-hover)!important;transform:translateY(-2px)}
.nfpk-bc4__media-shell{position:relative;min-width:0;flex:0 0 auto}
.nfpk-bc4__media{position:relative;display:block;width:100%;aspect-ratio:16/9.4;overflow:hidden;background:#171717;border-radius:23px 23px 18px 18px;text-decoration:none!important;isolation:isolate}
.nfpk-bc4--feature .nfpk-bc4__media{aspect-ratio:16/8.5}
.nfpk-bc4--compact .nfpk-bc4__media{aspect-ratio:16/10.488}
.nfpk-bc4__image,.nfpk-bc4__media>img{position:absolute!important;inset:0!important;display:block!important;width:100%!important;max-width:none!important;height:100%!important;min-height:100%!important;margin:0!important;object-fit:cover!important;object-position:center!important;opacity:1!important;visibility:visible!important;filter:none!important;transform:scale(1.001);transition:transform .3s ease}
.nfpk-bc4:hover .nfpk-bc4__image,.nfpk-bc4:focus-within .nfpk-bc4__image{transform:scale(1.035)}
.nfpk-bc4__placeholder{position:absolute;inset:0;display:grid;place-items:center;background:linear-gradient(135deg,rgba(237,32,37,.16),transparent 48%),#1b1b1b}
.nfpk-bc4__placeholder span{color:rgba(255,255,255,.23);font-size:clamp(26px,3vw,46px);font-weight:900;letter-spacing:.13em}
.nfpk-bc4__shade{position:absolute;z-index:1;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(0,0,0,.04) 48%,rgba(0,0,0,.38) 100%)}

/* Physical corner positions never swap in RTL. */
.nfpk-bc4__topbar{position:absolute;z-index:9;top:12px;left:12px;right:12px;display:flex;align-items:flex-start;justify-content:space-between;gap:20px;pointer-events:none}
.nfpk-bc4__badge-slot{display:flex;flex:1 1 auto;justify-content:flex-start;min-width:0;max-width:48%;pointer-events:none}
.nfpk-bc4__badge{display:block;max-width:100%;min-height:32px;padding:5px 13px;overflow:hidden;color:#fff!important;background:var(--bc4-red)!important;border:1px solid rgba(255,255,255,.9)!important;border-radius:999px!important;box-shadow:0 5px 15px rgba(0,0,0,.22);font-size:11px!important;line-height:1.65!important;font-weight:850!important;text-overflow:ellipsis;white-space:nowrap}
.nfpk-bc4__share{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;gap:0;width:42px;min-width:42px;max-width:46%;height:42px;padding:0;overflow:hidden;pointer-events:auto;color:#fff!important;background:rgba(16,16,16,.76)!important;border:1px solid rgba(255,255,255,.88)!important;border-radius:999px!important;box-shadow:0 5px 15px rgba(0,0,0,.22);cursor:pointer;font:inherit;white-space:nowrap;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);transition:width .2s ease,padding .2s ease,gap .2s ease,background-color .18s ease}
.nfpk-bc4__share svg{display:block;flex:0 0 20px;width:20px;height:20px}
.nfpk-bc4__share-label{display:block;max-width:0;overflow:hidden;opacity:0;color:#fff!important;font-family:inherit!important;font-size:11px!important;font-weight:800!important;line-height:1.4!important;text-align:start;transition:max-width .2s ease,opacity .15s ease}
.nfpk-bc4__share:hover,.nfpk-bc4__share:focus-visible,.nfpk-bc4__share.is-copied{width:auto;padding:0 12px;gap:7px;background:var(--bc4-red)!important}
.nfpk-bc4__share:hover .nfpk-bc4__share-label,.nfpk-bc4__share:focus-visible .nfpk-bc4__share-label,.nfpk-bc4__share.is-copied .nfpk-bc4__share-label{max-width:135px;opacity:1}

/* Permanent centred glass rail: audio / video / multilingual / quick view. */
.nfpk-bc4__actions{position:absolute;z-index:10;top:50%;left:50%;display:inline-flex;align-items:center;justify-content:center;gap:9px;transform:translate(-50%,-50%);padding:7px;background:rgba(8,8,8,.24);border:1px solid rgba(255,255,255,.18);border-radius:999px;box-shadow:0 10px 30px rgba(0,0,0,.18);backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px)}
.nfpk-bc4__action{position:relative;display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;margin:0!important;padding:0!important;color:rgba(255,255,255,.58)!important;background:rgba(20,20,20,.46)!important;border:1px solid rgba(255,255,255,.28)!important;border-radius:14px!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.07);text-decoration:none!important;cursor:default;transition:transform .16s ease,background-color .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease}
.nfpk-bc4__action svg{display:block;width:20px;height:20px}
.nfpk-bc4__action.is-active{color:#fff!important;background:rgba(255,255,255,.19)!important;border-color:rgba(255,255,255,.74)!important;box-shadow:0 5px 16px rgba(0,0,0,.18),inset 0 1px 0 rgba(255,255,255,.18);cursor:pointer}
.nfpk-bc4__action.is-quick{background:rgba(237,32,37,.64)!important;border-color:rgba(255,255,255,.88)!important}
.nfpk-bc4__action.is-active:hover,.nfpk-bc4__action.is-active:focus-visible{transform:translateY(-2px);color:#fff!important;background:rgba(237,32,37,.82)!important;border-color:#fff!important;outline:none}
.nfpk-bc4__action.is-inactive{opacity:.52;filter:saturate(.65)}
.nfpk-bc4__action::after{content:attr(data-tooltip);position:absolute;left:50%;bottom:calc(100% + 9px);z-index:30;max-width:180px;padding:6px 9px;opacity:0;visibility:hidden;transform:translate(-50%,5px);color:#fff;background:rgba(12,12,12,.95);border:1px solid rgba(255,255,255,.35);border-radius:9px;box-shadow:0 8px 24px rgba(0,0,0,.24);font-family:inherit;font-size:10px;font-weight:700;line-height:1.4;white-space:nowrap;pointer-events:none;transition:opacity .14s ease,transform .14s ease,visibility .14s ease}
.nfpk-bc4__action:hover::after,.nfpk-bc4__action:focus-visible::after{opacity:1;visibility:visible;transform:translate(-50%,0)}

.nfpk-bc4__body{display:flex;flex:1 1 auto;flex-direction:column;min-width:0;padding:15px 16px 14px}
.nfpk-bc4--compact .nfpk-bc4__body{padding:13px 14px 13px}
.nfpk-bc4__category{align-self:flex-start;max-width:100%;margin:0 0 6px!important;overflow:hidden;color:var(--bc4-red)!important;font-size:10.5px!important;line-height:1.5!important;font-weight:800!important;text-decoration:none!important;text-overflow:ellipsis;white-space:nowrap}
.nfpk-bc4__title{margin:0!important;color:#fff!important;font:850 17px/1.55 inherit!important;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.nfpk-bc4--feature .nfpk-bc4__title{font-size:18px!important}
.nfpk-bc4--compact .nfpk-bc4__title{font-size:14.5px!important;line-height:1.6!important}
.nfpk-bc4__title a{color:#fff!important;text-decoration:none!important}
.nfpk-bc4__excerpt{margin:8px 0 0!important;min-height:calc(1.82em * 2);overflow:hidden;color:var(--bc4-muted)!important;font-size:11.5px!important;line-height:1.82!important;font-weight:400!important;display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.nfpk-bc4--compact .nfpk-bc4__excerpt{margin-top:7px!important;min-height:calc(1.76em * 2);font-size:10.75px!important;line-height:1.76!important}
.nfpk-bc4__meta{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:13px;min-width:0;color:var(--bc4-muted)!important;font-size:10.5px}
.nfpk-bc4__author{display:inline-flex;flex:0 1 auto;align-items:center;gap:4px;min-width:0;max-width:72%;margin:0!important;padding:0!important;color:rgba(255,255,255,.84)!important;text-decoration:none!important}
.nfpk-bc4__avatar{display:grid!important;place-items:center;flex:0 0 30px;width:30px!important;height:30px!important;margin:0!important;padding:0!important;object-fit:cover!important;opacity:1!important;visibility:visible!important;color:#fff!important;background:rgba(255,255,255,.10)!important;border:1px solid rgba(255,255,255,.52)!important;border-radius:50%!important;font-size:11px!important;font-weight:800!important}
.nfpk-bc4__author-name{display:block!important;min-width:0;margin:0!important;padding:0!important;overflow:hidden;color:rgba(255,255,255,.86)!important;font-family:inherit!important;font-size:11px!important;font-weight:700!important;line-height:1.45!important;text-overflow:ellipsis;white-space:nowrap}
.nfpk-bc4__date{flex:0 0 auto;margin:0!important;color:rgba(255,255,255,.56)!important;font-size:9.5px!important;white-space:nowrap}
.nfpk-bc4__footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:10px;padding-top:10px;color:var(--bc4-muted)!important;border-top:1px solid var(--bc4-line)!important;font-size:10px}
.nfpk-bc4__stars{display:inline-flex;gap:1px;color:rgba(255,255,255,.22)!important;white-space:nowrap}
.nfpk-bc4__stars .is-on{color:var(--bc4-star)!important}
.nfpk-bc4__read{color:rgba(255,255,255,.64)!important;white-space:nowrap}

/* Homepage showcase: 40% Editor's Choice / 60% regular. */
.nfpk-bs4__layout{display:grid;grid-template-columns:minmax(0,40fr) minmax(0,60fr);gap:16px;align-items:start}
.nfpk-bs4__primary,.nfpk-bs4__secondary{display:grid;min-width:0;gap:16px;align-items:start}
.nfpk-bs4__primary{grid-template-columns:1fr}
.nfpk-bs4__secondary{grid-template-columns:repeat(2,minmax(0,1fr))}

/* Quick-view modal is created once by blog.js. */
.nfpk-blog-qv{position:fixed;z-index:999999;inset:0;display:grid;place-items:center;padding:20px;opacity:0;visibility:hidden;background:rgba(0,0,0,.72);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);transition:opacity .18s ease,visibility .18s ease}
.nfpk-blog-qv.is-open{opacity:1;visibility:visible}
.nfpk-blog-qv__dialog{position:relative;display:grid;grid-template-columns:minmax(240px,.9fr) minmax(0,1.1fr);width:min(920px,94vw);max-height:88vh;overflow:auto;background:#272727;border:2px solid rgba(255,255,255,.86);border-radius:25px;box-shadow:0 28px 80px rgba(0,0,0,.44);color:#fff}
.nfpk-blog-qv__media{min-height:360px;background:#181818;border-radius:23px 0 0 23px;overflow:hidden}
.nfpk-blog-qv__media img{display:block!important;width:100%!important;height:100%!important;min-height:360px;max-width:none!important;object-fit:cover!important;object-position:center!important;opacity:1!important;visibility:visible!important;filter:none!important}
.nfpk-blog-qv__content{display:flex;flex-direction:column;padding:28px;min-width:0}
.nfpk-blog-qv__category{margin:0 0 8px;color:var(--bc4-red,#ED2025);font-size:12px;font-weight:850}
.nfpk-blog-qv__title{margin:0!important;color:#fff!important;font-size:clamp(21px,2.5vw,32px)!important;line-height:1.5!important}
.nfpk-blog-qv__excerpt{margin:14px 0 0!important;color:rgba(255,255,255,.74)!important;font-size:13px!important;line-height:2!important}
.nfpk-blog-qv__meta{display:flex;flex-wrap:wrap;gap:8px 16px;margin-top:18px;color:rgba(255,255,255,.58);font-size:11px}
.nfpk-blog-qv__open{align-self:flex-start;margin-top:auto!important;padding:10px 18px!important;color:#fff!important;background:#ED2025!important;border:1px solid rgba(255,255,255,.9)!important;border-radius:999px!important;text-decoration:none!important;font-weight:850!important}
.nfpk-blog-qv__close{position:absolute;z-index:3;top:14px;right:14px;display:grid;place-items:center;width:40px;height:40px;padding:0;color:#fff;background:rgba(18,18,18,.82);border:1px solid rgba(255,255,255,.8);border-radius:50%;cursor:pointer;font-size:24px;line-height:1}
body.nfpk-blog-qv-open{overflow:hidden}

@media(max-width:1024px){
  .nfpk-bs4__layout{grid-template-columns:1fr}
  .nfpk-bs4__primary,.nfpk-bs4__secondary{grid-template-columns:repeat(2,minmax(0,1fr))}
  .nfpk-bc4--feature .nfpk-bc4__media,.nfpk-bc4--compact .nfpk-bc4__media{aspect-ratio:16/9.4}
}
@media(max-width:767px){
  .nfpk-bs4__primary,.nfpk-bs4__secondary{grid-template-columns:1fr}
  .nfpk-bc4__media,.nfpk-bc4--feature .nfpk-bc4__media,.nfpk-bc4--compact .nfpk-bc4__media{aspect-ratio:16/9.6}
  .nfpk-bc4__body,.nfpk-bc4--compact .nfpk-bc4__body{padding:13px 14px}
  .nfpk-bc4__title,.nfpk-bc4--feature .nfpk-bc4__title,.nfpk-bc4--compact .nfpk-bc4__title{font-size:15px!important}
  .nfpk-bc4__topbar{top:10px;left:10px;right:10px;gap:12px}
  .nfpk-bc4__badge-slot{max-width:58%}
  .nfpk-bc4__share{width:38px;min-width:38px;height:38px;max-width:38px!important;padding:0!important;gap:0!important}
  .nfpk-bc4__share-label{display:none!important}
  .nfpk-bc4__actions{gap:7px;padding:6px}
  .nfpk-bc4__action{flex-basis:36px;width:36px;height:36px;border-radius:12px}
  .nfpk-bc4__action svg{width:18px;height:18px}
  .nfpk-bc4__author{max-width:68%}
  .nfpk-blog-qv{padding:12px}
  .nfpk-blog-qv__dialog{grid-template-columns:1fr;width:min(94vw,620px)}
  .nfpk-blog-qv__media{min-height:220px;border-radius:23px 23px 0 0}
  .nfpk-blog-qv__media img{min-height:220px;max-height:340px}
  .nfpk-blog-qv__content{padding:20px}
}
@media(max-width:420px){
  .nfpk-bc4__actions{gap:5px;padding:5px}
  .nfpk-bc4__action{flex-basis:33px;width:33px;height:33px;border-radius:11px}
  .nfpk-bc4__action svg{width:17px;height:17px}
}
@media(prefers-reduced-motion:reduce){
  .nfpk-bc4,.nfpk-bc4__image,.nfpk-bc4__share,.nfpk-bc4__share-label,.nfpk-bc4__action,.nfpk-blog-qv{transition:none!important;transform:none!important}
  .nfpk-bc4__actions{transform:translate(-50%,-50%)!important}
}

/* Final showcase CTA: centered beneath the complete 40/60 article composition. */
.nfpk-bs4__more{grid-column:1/-1;display:flex;justify-content:center;align-items:center;width:100%;margin-top:0;padding:0}
.nfpk-bs4__more-link{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;min-height:48px;padding:11px 22px;color:#fff!important;background:#ED2025!important;border:2px solid rgba(255,255,255,.92)!important;border-radius:999px!important;box-shadow:0 12px 28px -18px rgba(0,0,0,.9);font-size:13px!important;font-weight:850!important;line-height:1.4!important;text-decoration:none!important;transition:transform .18s ease,background-color .18s ease,border-color .18s ease}
.nfpk-bs4__more-link:hover,.nfpk-bs4__more-link:focus-visible{color:#fff!important;background:#151515!important;border-color:#ED2025!important;transform:translateY(-2px);outline:none}
.nfpk-bs4__more-link svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .18s ease}
[dir="rtl"] .nfpk-bs4__more-link svg,.nfpk-bs4[dir="rtl"] .nfpk-bs4__more-link svg{transform:scaleX(-1)}
.nfpk-bs4__more-link:hover svg,.nfpk-bs4__more-link:focus-visible svg{transform:translateX(2px)}
[dir="rtl"] .nfpk-bs4__more-link:hover svg,[dir="rtl"] .nfpk-bs4__more-link:focus-visible svg,.nfpk-bs4[dir="rtl"] .nfpk-bs4__more-link:hover svg,.nfpk-bs4[dir="rtl"] .nfpk-bs4__more-link:focus-visible svg{transform:scaleX(-1) translateX(2px)}
@media(max-width:767px){.nfpk-bs4__more{margin-top:0}.nfpk-bs4__more-link{width:100%;min-height:46px;padding:10px 18px;font-size:12.5px!important}}
@media(prefers-reduced-motion:reduce){.nfpk-bs4__more-link,.nfpk-bs4__more-link svg{transition:none!important;transform:none!important}}

/* Core 6.19.4 — Mobile Blog carousel controls aligned with the NFPK global control language. */
.nfpk-bs4__mobile{display:none}
@media(max-width:767px){
  .nfpk-bs4__desktop{display:none!important}
  .nfpk-bs4__mobile{display:block;min-width:0;width:100%}
  .nfpk-bs4__mobile-track{
    display:flex;
    align-items:stretch;
    gap:12px;
    width:100%;
    min-width:0;
    margin:0;
    padding:2px 7% 10px;
    overflow-x:auto;
    overflow-y:hidden;
    overscroll-behavior-inline:contain;
    scroll-snap-type:x mandatory;
    scroll-padding-inline:7%;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }
  .nfpk-bs4__mobile-track::-webkit-scrollbar{display:none}
  .nfpk-bs4__mobile-slide{
    flex:0 0 90%;
    min-width:0;
    scroll-snap-align:center;
    scroll-snap-stop:always;
  }
  .nfpk-bs4__mobile-slide>.nfpk-bc4{height:100%}
  .nfpk-bs4__mobile-slide .nfpk-bc4__media{aspect-ratio:16/9.6}

  .nfpk-bs4__mobile-controls{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:5px;
    direction:ltr;
    width:100%;
    margin:2px 0 6px;
    padding:0 10px;
  }
  .nfpk-bs4__mobile-arrow{
    display:grid;
    place-items:center;
    flex:0 0 27px;
    width:27px;
    height:27px;
    margin:0!important;
    padding:0!important;
    color:#fff!important;
    background:#8c8c8c!important;
    border:0!important;
    border-radius:9px!important;
    box-shadow:none!important;
    cursor:pointer;
    -webkit-tap-highlight-color:transparent;
    transition:background-color .18s ease,transform .18s ease;
  }
  .nfpk-bs4__mobile-arrow:hover,.nfpk-bs4__mobile-arrow:focus-visible,.nfpk-bs4__mobile-arrow:active{
    color:#fff!important;
    background:#ED2025!important;
    outline:none;
    transform:translateY(-1px);
  }
  .nfpk-bs4__mobile-arrow svg{
    display:block;
    width:12px;
    height:12px;
    fill:none;
    stroke:currentColor;
    stroke-width:2.15;
    stroke-linecap:round;
    stroke-linejoin:round;
  }

  .nfpk-bs4__mobile-pagination{
    display:flex;
    align-items:center;
    justify-content:center;
    flex:1 1 auto;
    gap:3.5px;
    min-width:0;
    max-width:95px;
    height:27px;
    padding:0 8.5px;
    background:#8c8c8c;
    border:0;
    border-radius:999px;
    box-shadow:none;
    overflow:hidden;
  }
  .nfpk-bs4__mobile-dot{
    display:block;
    flex:1 1 0;
    width:auto;
    max-width:14px;
    min-width:6px;
    height:4px;
    background:rgba(255,255,255,.45);
    border-radius:999px;
    transition:background-color .18s ease,transform .18s ease,opacity .18s ease;
  }
  .nfpk-bs4__mobile-dot.is-active{
    background:#ED2025;
    opacity:1;
    transform:scaleX(1.04);
  }
  .nfpk-bs4__mobile-count.screen-reader-text{
    position:absolute!important;
    width:1px!important;
    height:1px!important;
    padding:0!important;
    margin:-1px!important;
    overflow:hidden!important;
    clip:rect(0,0,0,0)!important;
    white-space:nowrap!important;
    border:0!important;
  }
  .nfpk-bs4__more--mobile{display:flex;margin-top:0}
  .nfpk-bs4__more--desktop{display:none!important}
}
@media(max-width:380px){
  .nfpk-bs4__mobile-controls{gap:4px;padding:0 7px}
  .nfpk-bs4__mobile-arrow{flex-basis:25px;width:25px;height:25px;border-radius:8px!important}
  .nfpk-bs4__mobile-pagination{height:25px;padding:0 6.5px;gap:3px}
  .nfpk-bs4__mobile-dot{height:3.5px;min-width:4.5px}
}
@media(min-width:768px){
  .nfpk-bs4__desktop{display:block}
  .nfpk-bs4__mobile{display:none!important}
}
@media(prefers-reduced-motion:reduce){
  .nfpk-bs4__mobile-track{scroll-behavior:auto!important}
  .nfpk-bs4__mobile-arrow,.nfpk-bs4__mobile-dot{transition:none!important;transform:none!important}
}

/* 6.22.7 — cards/author images are outside JS-lazyload control. */
.nfpk-bc4 img[data-nfpk-blog-image="1"],
.nfpk-author-hero img[data-nfpk-blog-image="1"],
.nfpk-author-posts img[data-nfpk-blog-image="1"]{
  opacity:1!important;
  visibility:visible!important;
  filter:none!important;
}
