.nssr-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0B132B 0%, #004AAD 100%);
    color: #ffffff;
}

.nssr-hero-full {
    min-height: 100svh;
    display: flex;
    align-items: center;
}

.nssr-hero-full #home-hero-slices {
    position: absolute;
    inset: 36px 0 0 auto;
    width: 58%;
    height: 100%;
    margin: auto 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 0;
    z-index: 2;
    overflow: visible;
}

.nssr-hero-full > .mx-auto {
    position: relative;
    z-index: 5;
}

.nssr-hero-full > .mx-auto > div {
    max-width: 42%;
}

.nssr-hero-full #home-hero-slices .nssr-slice {
    height: 100% !important;
    min-height: 0;
    clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
    border: 0;
    transform: none;
    animation: none;
    opacity: 1;
    border-radius: 0;
}

.nssr-hero-full #home-hero-slices .nssr-slice:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
    margin-right: -18%;
}

.nssr-hero-full #home-hero-slices .nssr-slice:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
    margin-left: -18%;
    margin-right: -18%;
}

.nssr-hero-full #home-hero-slices .nssr-slice:nth-child(3) {
    grid-column: 3;
    grid-row: 1;
    margin-left: -18%;
    margin-right: -18%;
}

.nssr-hero-full #home-hero-slices .nssr-slice:nth-child(4) {
    grid-column: 4;
    grid-row: 1;
    margin-left: -18%;
}

.nssr-hero-full #home-hero-slices .nssr-slice:nth-child(5) {
    grid-column: 1;
    grid-row: 2;
    margin-right: -18%;
}

.nssr-hero-full #home-hero-slices .nssr-slice:nth-child(6) {
    grid-column: 2;
    grid-row: 2;
    margin-left: -18%;
    margin-right: -18%;
}

.nssr-hero-full #home-hero-slices .nssr-slice:nth-child(7) {
    grid-column: 3;
    grid-row: 2;
    margin-left: -18%;
    margin-right: -18%;
}

.nssr-hero-full #home-hero-slices .nssr-slice:nth-child(8) {
    grid-column: 4;
    grid-row: 2;
    margin-left: -18%;
}

.nssr-hero-full #home-hero-slices .nssr-slice::after {
    background: linear-gradient(135deg, rgba(11,19,43,.12), rgba(0,74,173,.34));
    mix-blend-mode: multiply;
}

.nssr-hero-full::after {
    background:
        linear-gradient(90deg, rgba(11,19,43,.78) 0%, rgba(11,19,43,.36) 42%, rgba(0,74,173,.18) 100%);
}

.nssr-hero:not(.nssr-hero-full)::after {
    background:
        linear-gradient(90deg, rgba(11,19,43,.72) 0%, rgba(11,19,43,.42) 55%, rgba(0,74,173,.22) 100%);
}

img {
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
}

.nssr-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(11,19,43,.92) 0%, rgba(11,19,43,.72) 48%, rgba(0,74,173,.46) 100%);
}

.nssr-hero > * {
    position: relative;
    z-index: auto;
}

.nssr-hero > .mx-auto > div:first-child {
    position: relative;
    z-index: 3;
}

.nssr-hero-grid {
    background-image:
        linear-gradient(rgba(147, 197, 253, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(147, 197, 253, 0.08) 1px, transparent 1px);
    background-size: 48px 48px;
}

.nssr-stacked-deck {
    position: relative;
    min-height: 390px;
}

.nssr-stack-card {
    position: absolute;
    inset: 20px 22px 20px 22px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,.82);
    border-radius: 18px;
    background: #0B132B;
    box-shadow: 0 28px 55px rgba(3, 12, 36, .34);
    opacity: 0;
    transform: translate3d(16px, 18px, 0) rotate(2deg) scale(.94);
    transition: transform .65s cubic-bezier(.22,1,.36,1), opacity .45s ease, z-index 0s;
}

.nssr-stack-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s ease, filter .35s ease;
}

.nssr-stack-card::after,
.nssr-slice::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(11, 19, 43, .10), rgba(0, 74, 173, .28));
    mix-blend-mode: multiply;
}

.nssr-stack-card.active {
    z-index: 5;
    opacity: 1;
    transform: translate3d(0,0,0) rotate(-1deg) scale(1);
}

.nssr-stack-card.previous {
    z-index: 4;
    opacity: .86;
    transform: translate3d(-16px, 6px, 0) rotate(-5deg) scale(.96);
}

.nssr-stack-card.next {
    z-index: 3;
    opacity: .68;
    transform: translate3d(18px, 12px, 0) rotate(5deg) scale(.92);
}

.nssr-stack-card:hover img {
    transform: scale(1.05);
}

.nssr-deck-control {
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.08);
    color: #ffffff;
    transition: .25s ease;
}

.nssr-deck-control.active,
.nssr-deck-control:hover {
    background: #ffffff;
    color: #0B132B;
}

.nssr-slice {
    position: relative;
    opacity: 0;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,.78);
    border-radius: 16px;
    background: #0B132B;
    box-shadow: 0 24px 50px rgba(3, 12, 36, .30);
    animation: nssrSliceReveal .7s cubic-bezier(.22,1,.36,1) forwards;
}

.nssr-slice:nth-child(1) { animation-delay: 0ms; transform: translateY(-8px); }
.nssr-slice:nth-child(2) { animation-delay: 150ms; }
.nssr-slice:nth-child(3) { animation-delay: 300ms; transform: translateY(8px); }

.nssr-slice img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s ease, filter .35s ease;
}

.nssr-slice:hover img {
    transform: scale(1.05);
    filter: saturate(1.08);
}

.nssr-slice:nth-child(1),
.nssr-slice:nth-child(3) {
    margin-top: 12px;
    margin-bottom: 12px;
}

.nssr-hero [id$="-slices"] {
    width: 100%;
    position: absolute;
    inset: 0;
    z-index: 0;
    display: grid;
    gap: 0;
}

.nssr-hero > .mx-auto {
    position: static;
}

.nssr-hero [id$="-slices"] .nssr-slice {
    height: 100% !important;
    min-height: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: none;
}

.nssr-slice:nth-child(1),
.nssr-slice:nth-child(2),
.nssr-slice:nth-child(3),
.nssr-slice:nth-child(4) {
    margin: 0;
}

.nssr-hero [id$="-deck"] {
    width: 100%;
}

.nssr-slanted-hero {
    position: relative;
    width: 100%;
    height: 340px;
    overflow: hidden;
    border-bottom: 1px solid #dbeafe;
    background: #eff6ff;
    margin-top: 80px;
}

.nssr-slanted-strip {
    display: flex;
    width: 100%;
    height: 100%;
}

.nssr-slanted-panel {
    flex: 1;
    position: relative;
    height: 100%;
    overflow: hidden;
    margin-left: -2.6%;
    clip-path: polygon(9% 0, 100% 0, 91% 100%, 0 100%);
}

.nssr-slanted-panel:first-child {
    margin-left: 0;
    flex: 1.05;
    clip-path: polygon(0 0, 100% 0, 91% 100%, 0 100%);
}

.nssr-slanted-panel:last-child {
    flex: 1.05;
    clip-path: polygon(9% 0, 100% 0, 100% 100%, 0 100%);
}

.nssr-slanted-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nssr-slanted-panel:not(:first-child)::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 9%;
    background: linear-gradient(to bottom right, rgba(255,255,255,.65) 48%, transparent 52%);
    z-index: 2;
}

.nssr-slanted-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: linear-gradient(90deg, rgba(10,101,179,.94) 0%, rgba(10,101,179,.85) 35%, rgba(10,101,179,.65) 68%, rgba(10,101,179,.38) 100%);
    pointer-events: none;
}

@media (max-width: 767px) {
    .nssr-slanted-hero { height: 270px; }
    .nssr-slanted-panel:nth-child(4),
    .nssr-slanted-panel:nth-child(5) { display: none; }
    .nssr-slanted-panel:first-child { flex: 1.4; }
}

@media (max-width: 1023px) {
    .nssr-hero-full > .mx-auto > div {
        max-width: 100%;
    }

    .nssr-hero-full #home-hero-slices {
        width: 100%;
        height: 36%;
        inset: auto 0 0 0;
        opacity: .78;
        z-index: 1;
    }
}

@keyframes nssrSliceReveal {
    from { opacity: 0; translate: 0 24px; }
    to { opacity: 1; translate: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
    .nssr-slice,
    .nssr-stack-card {
        animation: none;
        transition: none;
    }
}
