/* Category bento redesign — based on approved concept */
.nx-cats--bento{
    position:relative;
}
.nx-cats--bento > .nx-sec-head{
    margin-bottom:26px;
}
.nx-cats--bento > .nx-sec-head .nx-sec-head__title{
    font-size:clamp(2rem,1.55rem + 1.65vw,3.25rem);
    line-height:1.28;
    letter-spacing:-.03em;
}
.nx-cats--bento > .nx-sec-head .nx-sec-head__sub{
    max-width:680px;
    font-size:clamp(.95rem,.9rem + .18vw,1.08rem);
}
.nx-cats--bento > .nx-sec-head .nx-eyebrow{
    border-color:rgba(var(--nx-primary-rgb),.12);
    background:rgba(var(--nx-primary-rgb),.07);
}
.nx-cats--bento .nx-cats__grid{
    grid-template-columns:repeat(4,minmax(0,1fr));
    grid-auto-rows:178px;
    gap:18px;
}
.nx-cats--bento .nx-cat{
    position:relative;
    min-height:0;
    padding:24px;
    border-radius:26px;
    border:1px solid color-mix(in srgb,var(--c) 24%,var(--nx-border));
    background:
        radial-gradient(90% 120% at 5% 100%,color-mix(in srgb,var(--c) 12%,transparent),transparent 68%),
        linear-gradient(135deg,color-mix(in srgb,var(--c) 9%,#fff) 0%,#fff 72%);
    box-shadow:0 18px 50px -34px color-mix(in srgb,var(--c) 55%,#000);
    isolation:isolate;
    transform:translateZ(0);
}
.nx-cats--bento .nx-cat:hover{
    transform:translateY(-6px);
    box-shadow:0 28px 66px -32px color-mix(in srgb,var(--c) 62%,#000);
}
.nx-cats--bento .nx-cat__glow{
    inset:auto -22% -74% auto;
    width:72%;
    opacity:.15;
}
.nx-cats--bento .nx-cat__bigicon{
    inset-inline-end:auto;
    inset-inline-start:-24px;
    bottom:-28px;
    opacity:.055;
    transform:rotate(10deg);
}
.nx-cats--bento .nx-cat__bigicon svg{
    width:185px;
    height:185px;
}
.nx-cats--bento .nx-cat__icon{
    position:absolute;
    top:24px;
    inset-inline-start:24px;
    width:56px;
    height:56px;
    margin:0;
    border-radius:18px;
    z-index:4;
    background:linear-gradient(145deg,color-mix(in srgb,var(--c) 72%,#fff),var(--c));
    box-shadow:
        0 14px 24px -12px color-mix(in srgb,var(--c) 78%,transparent),
        inset 0 1px 0 rgba(255,255,255,.35);
}
.nx-cats--bento .nx-cat__body{
    position:relative;
    z-index:4;
    gap:7px;
    max-width:62%;
}
.nx-cats--bento .nx-cat__name{
    font-size:clamp(1rem,.94rem + .26vw,1.22rem);
    font-weight:900;
}
.nx-cats--bento .nx-cat__desc{
    display:block;
    max-width:460px;
    color:var(--nx-muted);
    font-size:.88rem;
    line-height:1.85;
}
.nx-cats--bento .nx-cat__count{
    margin-top:7px;
    padding:4px 12px;
    background:color-mix(in srgb,var(--c) 12%,#fff);
    color:color-mix(in srgb,var(--c) 82%,#18213b);
    border:1px solid color-mix(in srgb,var(--c) 13%,transparent);
}
.nx-cats--bento .nx-cat__arrow{
    top:20px;
    inset-inline-end:20px;
    width:42px;
    height:42px;
    border-color:rgba(15,23,42,.08);
    background:rgba(255,255,255,.9);
    box-shadow:0 8px 18px -14px rgba(15,23,42,.5);
    z-index:6;
}

/* Main cPanel scripts feature card */
.nx-cats--bento .nx-cat--feature{
    grid-column:span 2;
    grid-row:span 2;
    padding:34px;
    color:#fff;
    border:0;
    background:
        radial-gradient(520px 340px at 104% -8%,rgba(14,165,233,.64),transparent 68%),
        radial-gradient(380px 280px at 18% 94%,rgba(37,99,235,.28),transparent 72%),
        linear-gradient(135deg,#090b1c 0%,#0a1730 48%,#0c3555 100%);
    box-shadow:0 30px 72px -34px rgba(8,47,91,.9);
}
.nx-cats--bento .nx-cat--feature:hover{
    color:#fff;
    box-shadow:0 34px 78px -32px rgba(14,116,185,.72);
}
.nx-cats--bento .nx-cat--feature::before,
.nx-cats--bento .nx-cat--feature::after{
    content:"";
    position:absolute;
    border-radius:50%;
    border:1px solid rgba(56,189,248,.22);
    pointer-events:none;
}
.nx-cats--bento .nx-cat--feature::before{
    width:330px;
    height:330px;
    inset-inline-end:-90px;
    top:-120px;
}
.nx-cats--bento .nx-cat--feature::after{
    width:240px;
    height:240px;
    inset-inline-end:52px;
    bottom:-150px;
}
.nx-cats--bento .nx-cat--feature .nx-cat__body{
    max-width:56%;
    margin-top:auto;
}
.nx-cats--bento .nx-cat--feature .nx-cat__name{
    color:#fff;
    font-size:clamp(1.65rem,1.35rem + .9vw,2.4rem);
}
.nx-cats--bento .nx-cat--feature .nx-cat__desc{
    color:rgba(238,245,255,.75);
    font-size:clamp(.94rem,.9rem + .18vw,1.08rem);
}
.nx-cats--bento .nx-cat--feature .nx-cat__count{
    align-self:flex-start;
    background:rgba(255,255,255,.1);
    border-color:rgba(255,255,255,.08);
    color:#fff;
}
.nx-cats--bento .nx-cat--feature .nx-cat__icon{
    width:68px;
    height:68px;
    border-radius:21px;
    background:linear-gradient(145deg,#22c7f3,#079ee3);
    box-shadow:0 18px 34px -13px rgba(14,165,233,.85);
}
.nx-cats--bento .nx-cat--feature .nx-cat__arrow{
    color:#fff;
    background:rgba(255,255,255,.08);
    border-color:rgba(255,255,255,.14);
    backdrop-filter:blur(8px);
}
.nx-cats--bento .nx-cat--feature .nx-cat__bigicon{
    display:none;
}

/* 3D-like decorative terminal/panel */
.nx-cats--bento .nx-cat__art{
    position:absolute;
    z-index:2;
    inset-inline-end:8%;
    top:50%;
    width:34%;
    aspect-ratio:1.08;
    transform:translateY(-50%);
    pointer-events:none;
}
.nx-cats--bento .nx-cat__art-panel{
    position:absolute;
    inset:14%;
    display:grid;
    place-items:center;
    border-radius:26px;
    color:var(--c);
    background:
        linear-gradient(145deg,rgba(255,255,255,.96),rgba(255,255,255,.62));
    border:1px solid rgba(255,255,255,.82);
    box-shadow:
        0 24px 46px -20px color-mix(in srgb,var(--c) 48%,#000),
        inset 0 1px 0 rgba(255,255,255,.72);
    transform:perspective(600px) rotateY(-13deg) rotateX(7deg) rotateZ(-4deg);
}
.nx-cats--bento .nx-cat__art-panel::after{
    content:"";
    position:absolute;
    width:76%;
    height:18%;
    bottom:-22%;
    border-radius:50%;
    background:color-mix(in srgb,var(--c) 26%,transparent);
    filter:blur(14px);
}
.nx-cats--bento .nx-cat__art-panel .nx-icon{
    width:62%;
    height:62%;
    stroke-width:1.45;
}
.nx-cats--bento .nx-cat--feature .nx-cat__art{
    inset-inline-end:6%;
    width:43%;
}
.nx-cats--bento .nx-cat--feature .nx-cat__art-panel{
    color:#54c9ff;
    background:linear-gradient(145deg,#15264b,#0a1025);
    border:1px solid rgba(139,184,255,.23);
    box-shadow:
        0 28px 60px -18px rgba(20,109,255,.7),
        inset 0 1px 0 rgba(255,255,255,.12);
}
.nx-cats--bento .nx-cat--feature .nx-cat__art-panel::before{
    content:"";
    position:absolute;
    inset:-22%;
    z-index:-1;
    border-radius:50%;
    background:radial-gradient(circle,rgba(14,165,233,.28),transparent 64%);
    filter:blur(4px);
}

/* Left-side wide cards */
.nx-cats--bento .nx-cat--wide{
    grid-column:span 2;
    flex-direction:row;
    align-items:flex-end;
    padding:24px 26px;
}
.nx-cats--bento .nx-cat--wide .nx-cat__body{
    max-width:55%;
}
.nx-cats--bento .nx-cat--wide .nx-cat__art{
    width:28%;
    inset-inline-end:7%;
}
.nx-cats--bento .nx-cat--wide .nx-cat__art-panel{
    border-radius:22px;
}

/* Bottom mini cards */
.nx-cats--bento .nx-cat--mini{
    padding:20px;
}
.nx-cats--bento .nx-cat--mini .nx-cat__icon{
    top:18px;
    inset-inline-start:18px;
    width:48px;
    height:48px;
    border-radius:15px;
}
.nx-cats--bento .nx-cat--mini .nx-cat__body{
    max-width:72%;
}
.nx-cats--bento .nx-cat--mini .nx-cat__desc{
    font-size:.79rem;
    line-height:1.7;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}
.nx-cats--bento .nx-cat--mini .nx-cat__art{
    width:31%;
    inset-inline-end:3%;
    opacity:.95;
}
.nx-cats--bento .nx-cat--mini .nx-cat__art-panel{
    inset:19%;
    border-radius:18px;
}
.nx-cats--bento .nx-cat--mini .nx-cat__arrow{
    width:36px;
    height:36px;
    top:16px;
    inset-inline-end:16px;
}

/* Palette nudges for the approved concept */
.nx-cats--bento .nx-cat[data-cat-index="1"]{
    background:linear-gradient(135deg,#edfff9 0%,#f8fffd 62%,#e8fbf4 100%);
}
.nx-cats--bento .nx-cat[data-cat-index="2"]{
    background:linear-gradient(135deg,#fff8e9 0%,#fffdf8 60%,#fff1d7 100%);
}
.nx-cats--bento .nx-cat[data-cat-index="3"]{
    background:linear-gradient(135deg,#f0f8ff 0%,#fbfdff 64%,#e6f4ff 100%);
}
.nx-cats--bento .nx-cat[data-cat-index="4"]{
    background:linear-gradient(135deg,#fff0f5 0%,#fffafd 62%,#fde4ef 100%);
}
.nx-cats--bento .nx-cat[data-cat-index="5"]{
    background:linear-gradient(135deg,#f4f0ff 0%,#fcfbff 62%,#ebe5ff 100%);
}
.nx-cats--bento .nx-cat[data-cat-index="6"]{
    background:linear-gradient(135deg,#f2eeff 0%,#fcfbff 62%,#e7ddff 100%);
}

@media(max-width:1100px){
    .nx-cats--bento .nx-cats__grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
        grid-auto-rows:190px;
    }
    .nx-cats--bento .nx-cat--feature{
        grid-column:1/-1;
        grid-row:span 2;
    }
    .nx-cats--bento .nx-cat--wide{
        grid-column:span 1;
    }
    .nx-cats--bento .nx-cat--mini{
        min-height:190px;
    }
}
@media(max-width:720px){
    .nx-cats--bento > .nx-sec-head .nx-sec-head__title{
        font-size:clamp(1.7rem,1.45rem + 1vw,2.15rem);
    }
    .nx-cats--bento .nx-cats__grid{
        grid-template-columns:1fr;
        grid-auto-rows:auto;
        gap:14px;
    }
    .nx-cats--bento .nx-cat,
    .nx-cats--bento .nx-cat--feature,
    .nx-cats--bento .nx-cat--wide,
    .nx-cats--bento .nx-cat--mini{
        grid-column:auto;
        grid-row:auto;
        min-height:190px;
        padding:20px;
        border-radius:22px;
    }
    .nx-cats--bento .nx-cat--feature{
        min-height:310px;
    }
    .nx-cats--bento .nx-cat__body,
    .nx-cats--bento .nx-cat--wide .nx-cat__body,
    .nx-cats--bento .nx-cat--mini .nx-cat__body{
        max-width:64%;
    }
    .nx-cats--bento .nx-cat--feature .nx-cat__body{
        max-width:70%;
    }
    .nx-cats--bento .nx-cat__desc{
        display:block;
        font-size:.82rem;
        line-height:1.75;
    }
    .nx-cats--bento .nx-cat__art{
        width:32%;
        inset-inline-end:4%;
    }
    .nx-cats--bento .nx-cat--feature .nx-cat__art{
        width:46%;
        opacity:.9;
    }
    .nx-cats--bento .nx-cat__icon{
        top:18px;
        inset-inline-start:18px;
    }
}
@media(max-width:460px){
    .nx-cats--bento .nx-cat__art{
        opacity:.72;
    }
    .nx-cats--bento .nx-cat__body,
    .nx-cats--bento .nx-cat--wide .nx-cat__body,
    .nx-cats--bento .nx-cat--mini .nx-cat__body,
    .nx-cats--bento .nx-cat--feature .nx-cat__body{
        max-width:72%;
    }
    .nx-cats--bento .nx-cat__desc{
        -webkit-line-clamp:2;
        display:-webkit-box;
        -webkit-box-orient:vertical;
        overflow:hidden;
    }
}

/* Text/layout alignment fix — 2026-10-06 */
.nx-cats--bento .nx-cat{
    display:block !important;
}
.nx-cats--bento .nx-cat__body{
    position:absolute !important;
    inset-inline-start:24px !important;
    inset-inline-end:auto !important;
    bottom:24px !important;
    width:54% !important;
    max-width:none !important;
    margin:0 !important;
    z-index:5 !important;
    text-align:start !important;
}
.nx-cats--bento .nx-cat__name,
.nx-cats--bento .nx-cat__desc,
.nx-cats--bento .nx-cat__count{
    position:relative;
    z-index:6;
}
.nx-cats--bento .nx-cat__desc{
    max-width:100% !important;
    overflow-wrap:anywhere;
}
.nx-cats--bento .nx-cat__art{
    inset-inline-end:5% !important;
    inset-inline-start:auto !important;
    width:27% !important;
    opacity:.92;
}
.nx-cats--bento .nx-cat__bigicon{
    inset-inline-start:auto !important;
    inset-inline-end:-20px !important;
    opacity:.045 !important;
}
.nx-cats--bento .nx-cat--wide{
    display:block !important;
}
.nx-cats--bento .nx-cat--wide .nx-cat__body{
    width:50% !important;
    inset-inline-start:26px !important;
    bottom:24px !important;
}
.nx-cats--bento .nx-cat--wide .nx-cat__art{
    width:29% !important;
    inset-inline-end:5% !important;
}
.nx-cats--bento .nx-cat--feature .nx-cat__body{
    width:56% !important;
    inset-inline-start:34px !important;
    bottom:34px !important;
}
.nx-cats--bento .nx-cat--feature .nx-cat__art{
    width:36% !important;
    inset-inline-end:5% !important;
}
.nx-cats--bento .nx-cat--feature .nx-cat__name{
    line-height:1.35 !important;
}
.nx-cats--bento .nx-cat--feature .nx-cat__desc{
    line-height:1.9 !important;
}
.nx-cats--bento .nx-cat--mini .nx-cat__body{
    width:55% !important;
    inset-inline-start:20px !important;
    bottom:18px !important;
}
.nx-cats--bento .nx-cat--mini .nx-cat__art{
    width:25% !important;
    inset-inline-end:4% !important;
}
.nx-cats--bento .nx-cat--mini .nx-cat__name{
    font-size:1rem !important;
    line-height:1.55 !important;
}
.nx-cats--bento .nx-cat--mini .nx-cat__desc{
    font-size:.78rem !important;
    line-height:1.65 !important;
    -webkit-line-clamp:2;
}
.nx-cats--bento .nx-cat--mini .nx-cat__count{
    margin-top:5px !important;
}
.nx-cats--bento .nx-cat__icon{
    inset-inline-start:24px !important;
    inset-inline-end:auto !important;
}
.nx-cats--bento .nx-cat__arrow{
    inset-inline-end:20px !important;
    inset-inline-start:auto !important;
}
.nx-cats--bento .nx-cat--mini .nx-cat__icon{
    inset-inline-start:18px !important;
}
.nx-cats--bento .nx-cat--mini .nx-cat__arrow{
    inset-inline-end:16px !important;
}
@media(max-width:1100px){
    .nx-cats--bento .nx-cat__body,
    .nx-cats--bento .nx-cat--wide .nx-cat__body,
    .nx-cats--bento .nx-cat--mini .nx-cat__body{
        width:58% !important;
    }
    .nx-cats--bento .nx-cat--feature .nx-cat__body{
        width:60% !important;
    }
    .nx-cats--bento .nx-cat__art,
    .nx-cats--bento .nx-cat--wide .nx-cat__art,
    .nx-cats--bento .nx-cat--mini .nx-cat__art{
        width:25% !important;
    }
}
@media(max-width:720px){
    .nx-cats--bento .nx-cat{
        min-height:205px !important;
    }
    .nx-cats--bento .nx-cat--feature{
        min-height:320px !important;
    }
    .nx-cats--bento .nx-cat__body,
    .nx-cats--bento .nx-cat--wide .nx-cat__body,
    .nx-cats--bento .nx-cat--mini .nx-cat__body{
        inset-inline-start:18px !important;
        bottom:18px !important;
        width:64% !important;
    }
    .nx-cats--bento .nx-cat--feature .nx-cat__body{
        inset-inline-start:20px !important;
        bottom:22px !important;
        width:68% !important;
    }
    .nx-cats--bento .nx-cat__art,
    .nx-cats--bento .nx-cat--wide .nx-cat__art,
    .nx-cats--bento .nx-cat--mini .nx-cat__art{
        width:25% !important;
        inset-inline-end:3% !important;
        opacity:.66 !important;
    }
    .nx-cats--bento .nx-cat--feature .nx-cat__art{
        width:36% !important;
        opacity:.76 !important;
    }
}

