/* Smart Series book-gifting section v2 (19 Nov 2026) — shared by nativelms.com, schoolofentrepreneurs.net and razaurrehman.com.
   Markup: gen_section.py. Default theme navy + gold; .nsgf-rur = razaurrehman.com black + gold. Own colours, so it reads the same in light and dark mode. */
.nsgf{--gf-bg1:#06102A;--gf-bg2:#0B1E4F;--gf-bg3:#0F2A6B;--gf-ink:#fff;--gf-text:#C9D7F2;--gf-mute:#9FB2D8;--gf-a1:#FDE68A;--gf-a2:#F59E0B;--gf-card:#0E1D45;--gf-line:rgba(255,255,255,.12);--gf-gold-line:rgba(250,204,21,.38);--gf-head:inherit;
  position:relative;overflow:hidden;padding:clamp(56px,7vw,100px) 0;color:var(--gf-text);
  background:radial-gradient(900px 420px at 12% 0%,rgba(250,204,21,.14),transparent 70%),radial-gradient(800px 460px at 100% 100%,rgba(59,130,246,.24),transparent 70%),linear-gradient(165deg,var(--gf-bg1) 0%,var(--gf-bg2) 58%,var(--gf-bg3) 100%);border-top:1px solid var(--gf-gold-line)}
.nsgf:before{content:"";position:absolute;inset:0;background-image:radial-gradient(rgba(255,255,255,.06) 1px,transparent 1.3px);background-size:26px 26px;pointer-events:none}
.nsgf *{box-sizing:border-box}
.nsgf-wrap{position:relative;width:min(1240px,100% - 32px);margin:0 auto}
.nsgf-head{display:flex;justify-content:space-between;align-items:flex-end;gap:28px;flex-wrap:wrap;margin-bottom:30px}
.nsgf-eyebrow{margin:0 0 12px;font-size:12.5px;font-weight:800;letter-spacing:.16em;color:var(--gf-a1)}
.nsgf h2{margin:0;font-family:var(--gf-head);font-size:clamp(30px,4.4vw,54px);line-height:1.06;letter-spacing:-.025em;font-weight:800;color:var(--gf-ink)}
.nsgf h2 em{font-style:normal;background:linear-gradient(90deg,var(--gf-a1),var(--gf-a2));-webkit-background-clip:text;background-clip:text;color:transparent}
.nsgf-lead{margin:14px 0 0;max-width:720px;font-size:16.5px;line-height:1.65;color:var(--gf-text)}
.nsgf-lead b{color:var(--gf-ink)}.nsgf-lead a{color:var(--gf-a1);font-weight:700;text-decoration:underline;text-underline-offset:3px}
.nsgf-count{display:flex;align-items:center;gap:12px;padding:14px 22px;border-radius:18px;background:rgba(250,204,21,.08);border:1px solid var(--gf-gold-line)}
.nsgf-count b{font-size:54px;line-height:1;font-weight:800;color:var(--gf-a1);font-family:var(--gf-head)}
.nsgf-count span{font-size:12px;line-height:1.35;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--gf-text)}

/* spotlight */
.nsgf-spot{border-radius:26px;padding:10px;background:linear-gradient(135deg,rgba(253,230,138,.55),rgba(245,158,11,.15) 40%,rgba(255,255,255,.08) 70%,rgba(253,230,138,.45));box-shadow:0 40px 80px -40px rgba(0,0,0,.9),0 0 60px -20px rgba(245,158,11,.35)}
.nsgf-stage{position:relative;height:clamp(380px,50vw,640px);border-radius:18px;overflow:hidden;background:#040A1C;isolation:isolate}
.nsgf-frame{position:absolute;inset:0;margin:0;opacity:0;visibility:hidden;transition:opacity .9s ease,visibility 0s .9s}
.nsgf-frame.on{opacity:1;visibility:visible;transition:opacity .9s ease}
.nsgf-bgimg{position:absolute;inset:-40px;width:calc(100% + 80px);height:calc(100% + 80px);object-fit:cover;filter:blur(28px) brightness(.55) saturate(1.2);transform:scale(1.05)}
.nsgf-fg{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.nsgf-frame.on .nsgf-fg{animation:nsgfKB 7.5s ease-out both}
@keyframes nsgfKB{from{transform:scale(1)}to{transform:scale(1.045)}}
.nsgf-frame figcaption{position:absolute;left:0;right:0;bottom:0;padding:90px clamp(18px,3vw,36px) clamp(54px,5vw,62px);display:flex;flex-direction:column;align-items:flex-start;gap:4px;background:linear-gradient(to top,rgba(3,8,22,.95),rgba(3,8,22,.6) 50%,transparent);pointer-events:none}
.nsgf-frame.on figcaption > *{animation:nsgfUp .8s cubic-bezier(.2,.7,.2,1) both}
.nsgf-frame.on figcaption b{animation-delay:.12s}.nsgf-frame.on figcaption span:last-child{animation-delay:.24s}
@keyframes nsgfUp{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
.nsgf-frame figcaption b{font-family:var(--gf-head);font-size:clamp(26px,3.6vw,48px);line-height:1.05;font-weight:800;letter-spacing:-.02em;background:linear-gradient(90deg,#fff 0%,var(--gf-a1) 70%);-webkit-background-clip:text;background-clip:text;color:transparent;text-shadow:none}
.nsgf-frame figcaption span:last-child{font-size:clamp(14px,1.5vw,18px);font-weight:600;color:#E8EEFB;max-width:760px}
.nsgf-tag{display:inline-block;margin-bottom:8px;padding:5px 12px;border-radius:999px;font-size:11px;font-weight:800;letter-spacing:.18em;text-transform:uppercase;color:#1A1405;background:linear-gradient(90deg,var(--gf-a1),var(--gf-a2))}
.nsgf-tag.soft{color:var(--gf-a1);background:rgba(250,204,21,.12);border:1px solid var(--gf-gold-line)}
.nsgf-sn{position:absolute;top:50%;z-index:3;transform:translateY(-50%);width:54px;height:54px;border-radius:50%;display:grid;place-items:center;border:1px solid var(--gf-gold-line);background:rgba(4,10,28,.6);backdrop-filter:blur(6px);color:var(--gf-a1);font-size:34px;line-height:1;cursor:pointer;transition:background .2s,transform .2s}
.nsgf-sn:hover{background:rgba(4,10,28,.85);transform:translateY(-50%) scale(1.06)}
.nsgf-sn.prev{left:16px}.nsgf-sn.next{right:16px}
.nsgf-meter{position:absolute;right:18px;bottom:20px;z-index:3;display:flex;align-items:center;gap:10px}
.nsgf-num{font:800 14px/1 ui-monospace,Consolas,monospace;letter-spacing:.08em;color:#fff;padding:9px 12px;border-radius:999px;background:rgba(4,10,28,.6);border:1px solid var(--gf-line)}
.nsgf-play{width:38px;height:38px;border-radius:50%;border:1px solid var(--gf-gold-line);background:rgba(4,10,28,.6);cursor:pointer;display:grid;place-items:center}
.nsgf-play i{display:block;width:10px;height:12px;border-left:3px solid var(--gf-a1);border-right:3px solid var(--gf-a1)}
.nsgf-play[aria-pressed=true] i{width:0;height:0;border:0;border-left:11px solid var(--gf-a1);border-top:7px solid transparent;border-bottom:7px solid transparent;margin-left:3px}
.nsgf-bar{position:absolute;left:0;right:0;bottom:0;height:4px;z-index:3;background:rgba(255,255,255,.12)}
.nsgf-bar i{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--gf-a1),var(--gf-a2))}
.nsgf-bar.run i{animation:nsgfBar var(--gf-dur,6s) linear both}
@keyframes nsgfBar{from{width:0}to{width:100%}}
.nsgf-strip{display:flex;gap:8px;overflow-x:auto;padding:10px 2px 2px;scrollbar-width:thin;scroll-snap-type:x proximity}
.nsgf-th{flex:none;width:104px;height:72px;padding:0;border-radius:10px;overflow:hidden;border:2px solid transparent;background:#0E1D45;cursor:pointer;opacity:.55;transition:opacity .2s,border-color .2s,transform .2s;scroll-snap-align:center}
.nsgf-th img{display:block;width:100%;height:100%;object-fit:cover}
.nsgf-th:hover{opacity:.9}.nsgf-th.on{opacity:1;border-color:var(--gf-a1);transform:translateY(-2px)}

/* name cards */
.nsgf-gridhead{display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap;margin:48px 0 16px}
.nsgf-gridhead h3{margin:0;font-family:var(--gf-head);font-size:clamp(22px,2.4vw,30px);font-weight:800;color:var(--gf-ink)}
.nsgf-gridhead span{font-size:13.5px;color:var(--gf-mute)}
.nsgf-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.nsgf-card{margin:0;display:flex;flex-direction:column;border-radius:18px;overflow:hidden;background:var(--gf-card);border:1px solid var(--gf-line);box-shadow:0 20px 40px -26px rgba(0,0,0,.85);transition:transform .35s cubic-bezier(.2,.7,.2,1),box-shadow .35s,border-color .35s}
.nsgf-card:hover{transform:translateY(-6px);border-color:var(--gf-gold-line);box-shadow:0 30px 50px -24px rgba(0,0,0,.9),0 0 0 1px var(--gf-gold-line),0 0 40px -14px rgba(245,158,11,.45)}
.nsgf-card.feat{border-color:var(--gf-gold-line)}
.nsgf-open{display:block;width:100%;aspect-ratio:4/3;padding:0;border:0;background:#0A1430;cursor:zoom-in;overflow:hidden}
.nsgf-open img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 28%;transition:transform .8s cubic-bezier(.2,.7,.2,1)}
.nsgf-card:hover .nsgf-open img{transform:scale(1.07)}
.nsgf-open:focus-visible,.nsgf-th:focus-visible,.nsgf-sn:focus-visible,.nsgf-play:focus-visible{outline:3px solid var(--gf-a1);outline-offset:2px}
.nsgf-card figcaption{position:relative;padding:14px 16px 16px;display:flex;flex-direction:column;gap:3px;border-top:2px solid transparent;border-image:linear-gradient(90deg,var(--gf-a1),transparent) 1}
.nsgf-card figcaption b{font-family:var(--gf-head);font-size:17px;line-height:1.25;font-weight:800;color:var(--gf-ink)}
.nsgf-card figcaption span{font-size:13px;line-height:1.4;color:var(--gf-a1)}
.nsgf-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-top:38px}
.nsgf-btn{display:inline-flex;align-items:center;gap:10px;min-height:52px;padding:0 24px;border-radius:14px;font-weight:800;font-size:15px;text-decoration:none!important;color:#1A1405!important;background:linear-gradient(90deg,var(--gf-a1),var(--gf-a2));box-shadow:0 14px 28px -12px rgba(245,158,11,.7);transition:transform .2s}
.nsgf-btn:hover{transform:translateY(-2px)}
.nsgf-btn.ghost{color:var(--gf-ink)!important;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.22);box-shadow:none}
.nsgf-lb{max-width:min(94vw,1150px);max-height:92vh;padding:0;border:1px solid var(--gf-gold-line);border-radius:16px;background:#040A1C;color:#E8EEFB;overflow:hidden}
.nsgf-lb[open]{display:flex;flex-direction:column;align-items:center}
.nsgf-lb::backdrop{background:rgba(2,6,18,.88)}
.nsgf-lb img{display:block;max-width:100%;max-height:80vh;width:auto;height:auto}
.nsgf-lb.loading img{min-height:50vh;min-width:min(80vw,560px);opacity:.25}
.nsgf-lb p{align-self:stretch;margin:0;padding:12px 18px;text-align:center;font-size:15px;font-weight:600;color:#E8EEFB}
.nsgf-x,.nsgf-nav{position:absolute;z-index:2;display:grid;place-items:center;border-radius:50%;border:1px solid var(--gf-gold-line);background:rgba(4,10,28,.8);color:var(--gf-a1);cursor:pointer}
.nsgf-x{top:10px;right:10px;width:42px;height:42px;font-size:26px}
.nsgf-nav{top:50%;transform:translateY(-50%);width:48px;height:48px;font-size:30px}.nsgf-nav.prev{left:10px}.nsgf-nav.next{right:10px}

/* razaurrehman.com: black + gold, Fraunces headings */
.nsgf.nsgf-rur{--gf-bg1:#0b0a08;--gf-bg2:#12100c;--gf-bg3:#17130c;--gf-text:#cfc6b6;--gf-mute:#a39a8a;--gf-a1:#f3d58c;--gf-a2:#d9b25f;--gf-card:#17140f;--gf-line:rgba(217,178,95,.18);--gf-gold-line:rgba(217,178,95,.4);--gf-head:Fraunces,Georgia,serif;
  background:radial-gradient(900px 420px at 12% 0%,rgba(217,178,95,.16),transparent 70%),radial-gradient(700px 420px at 100% 100%,rgba(217,178,95,.08),transparent 70%),linear-gradient(165deg,#0b0a08,#12100c 60%,#0b0a08)}
.nsgf-rur .nsgf-stage{background:#070605}.nsgf-rur .nsgf-open,.nsgf-rur .nsgf-th{background:#120f0a}
.nsgf-rur .nsgf-lb{background:#0b0a08}

@media (max-width:1100px){.nsgf-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:760px){.nsgf-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.nsgf-card figcaption{padding:10px 12px 12px}.nsgf-card figcaption b{font-size:15px}.nsgf-card figcaption span{font-size:12px}
  .nsgf-stage{height:clamp(320px,92vw,520px)}.nsgf-sn{width:42px;height:42px;font-size:28px}.nsgf-sn.prev{left:8px}.nsgf-sn.next{right:8px}.nsgf-frame figcaption{padding-bottom:64px}.nsgf-th{width:84px;height:60px}.nsgf-count b{font-size:40px}}
@media (max-width:420px){.nsgf-grid{gap:10px}.nsgf-spot{padding:6px;border-radius:20px}}
@media (prefers-reduced-motion:reduce){.nsgf *{animation:none!important;transition:none!important}}
