/* Static home page banners (Views/Home/_HomeBanners.cshtml).
   Each banner is laid out on a fixed 1092x410 canvas and scaled to the slider width.
   Narrow screens use a 560px-wide canvas that drops the right-hand visuals. */

.njb-slider {
    --njb-w: 1092px;
    --njb-s: 1;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.njb-slider .carousel-item {
    height: auto;
    background: none;
}

.njb-stage {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1092 / 410;
}

.njb-slider.is-compact .njb-stage {
    aspect-ratio: 560 / 410;
}

/* ─── Indicators ─── */
.njb-slider .carousel-indicators {
    margin-bottom: 14px;
    gap: 8px;
    z-index: 30;
}

.njb-slider .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    margin: 0;
    border: 2px solid rgba(255, 255, 255, .85);
    border-radius: 5px;
    background: transparent;
    opacity: 1;
    transition: width .3s ease, background-color .3s ease;
}

.njb-slider .carousel-indicators .active {
    width: 28px;
    background: #fff;
}

/* ─── Banner base ─── */
.njb,
.njb *,
.njb *::before,
.njb *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.njb {
    position: absolute;
    top: 0;
    left: 0;
    width: var(--njb-w);
    height: 410px;
    overflow: hidden;
    transform: scale(var(--njb-s));
    transform-origin: top left;
    font-family: "Poppins", sans-serif;
    color: #fff;
}

.njb .njb-logo {
    display: flex;
    align-items: center;
    gap: 6px;
}

.njb .njb-logo-text {
    font-size: 28px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -1px;
}

.njb .njb-logo-arrow {
    width: 32px;
    height: 32px;
    background: #1E3A5F;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -2px;
}

.njb .njb-logo-arrow svg {
    width: 16px;
    height: 16px;
}

.njb .njb-content {
    position: absolute;
    left: 54px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.njb h2 {
    font-family: inherit;
    font-weight: 900;
    color: #fff;
}

.njb .njb-contacts {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.njb .njb-pill {
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.njb .njb-pill svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.njb .njb-tagline {
    font-weight: 900;
    color: #fff;
}

.njb .njb-tag {
    position: absolute;
    z-index: 20;
    background: #1E3A5F;
    border-radius: 10px 10px 0 10px;
    padding: 12px 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
}

.njb .njb-tag-top {
    font-size: 10px;
    font-weight: 700;
    color: #F5820A;
    letter-spacing: 1px;
}

.njb .njb-tag-bottom {
    font-weight: 900;
    color: #fff;
}

@keyframes njbFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes njbFloat2 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ══════════════════════════════
   BANNER 1 — "Sell Smarter"
══════════════════════════════ */
.njb-sell {
    background: linear-gradient(120deg, #F5820A 0%, #ff5e00 38%, #FF9A3C 65%, #fff5e6 100%);
}

.njb-sell .njb-wave,
.njb-sell .njb-wave2,
.njb-sell .njb-wave3 {
    position: absolute;
    border-radius: 50%;
}

.njb-sell .njb-wave {
    bottom: -30px;
    left: -40px;
    width: 520px;
    height: 360px;
    background: rgba(255, 255, 255, 0.13);
    transform: rotate(-20deg);
}

.njb-sell .njb-wave2 {
    top: -60px;
    left: 200px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.07);
}

.njb-sell .njb-wave3 {
    top: 60px;
    left: -80px;
    width: 420px;
    height: 220px;
    background: rgba(255, 255, 255, 0.09);
    transform: rotate(15deg);
}

.njb-sell .njb-content {
    max-width: 480px;
}

.njb-sell .njb-logo {
    margin-bottom: 24px;
}

.njb-sell h2 {
    font-size: 44px;
    line-height: 1.08;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .15);
    margin-bottom: 6px;
}

.njb-sell h2 span {
    color: #1E3A5F;
}

.njb-sell .njb-sub {
    font-size: 22px;
    font-weight: 700;
    color: #1E3A5F;
    margin-bottom: 22px;
}

.njb-sell .njb-contacts {
    margin-bottom: 22px;
}

.njb-sell .njb-pill {
    background: rgba(255, 255, 255, 0.3);
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    color: #1E3A5F;
    backdrop-filter: blur(4px);
}

.njb-sell .njb-tagline {
    font-size: 26px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .1);
}

.njb-sell .njb-phone {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    width: 200px;
    height: 340px;
    background: #0d1b2e;
    border-radius: 32px;
    border: 6px solid #1a3050;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .4), inset 0 0 0 2px rgba(255, 255, 255, .05);
    overflow: hidden;
    z-index: 5;
}

.njb-sell .njb-phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, #0f2a48 0%, #1a3a5c 100%);
    display: flex;
    flex-direction: column;
    padding: 12px 10px;
}

.njb-sell .njb-ph-header {
    font-size: 8px;
    font-weight: 700;
    color: #F5820A;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.njb-sell .njb-ph-bar {
    background: rgba(255, 255, 255, .1);
    border-radius: 6px;
    height: 22px;
    display: flex;
    align-items: center;
    padding: 0 8px;
    font-size: 7px;
    color: rgba(255, 255, 255, .5);
    margin-bottom: 10px;
}

.njb-sell .njb-ph-card {
    background: rgba(255, 255, 255, .07);
    border-radius: 8px;
    padding: 7px 8px;
    margin-bottom: 6px;
}

.njb-sell .njb-ph-card-title { font-size: 7px; font-weight: 700; color: #F5820A; margin-bottom: 3px; }
.njb-sell .njb-ph-card-sub { font-size: 6px; color: rgba(255, 255, 255, .6); }
.njb-sell .njb-ph-price { font-size: 9px; font-weight: 800; color: #fff; margin-top: 4px; }

.njb-sell .njb-ph-badge {
    background: #F5820A;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 6px;
    font-weight: 700;
    color: #fff;
    display: inline-block;
    margin-top: 4px;
}

.njb-sell .njb-float {
    position: absolute;
    z-index: 8;
    background: #fff;
    border-radius: 14px;
    padding: 8px 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .2);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 700;
    color: #1E3A5F;
    animation: njbFloat 3s ease-in-out infinite;
}

.njb-sell .njb-float-icon { font-size: 22px; }
.njb-sell .njb-float-sub { font-size: 9px; font-weight: 600; color: #F5820A; }

.njb-sell .njb-fi1 { top: 40px; right: 290px; animation-delay: 0s; }
.njb-sell .njb-fi2 { top: 140px; right: 270px; animation-delay: .8s; }
.njb-sell .njb-fi3 { bottom: 60px; right: 280px; animation-delay: 1.6s; }

.njb-sell .njb-tag {
    bottom: 24px;
    right: 24px;
    transform: rotate(3deg);
}

.njb-sell .njb-tag-bottom { font-size: 20px; }

/* ══════════════════════════════
   BANNER 2 — "Your Market, Online"
══════════════════════════════ */
.njb-market {
    background: linear-gradient(130deg, #FF8C00 0%, #F5820A 30%, #ff6200 60%, #FF9E40 100%);
}

.njb-market .njb-bc1,
.njb-market .njb-bc2,
.njb-market .njb-bc3 {
    position: absolute;
    border-radius: 50%;
}

.njb-market .njb-bc1 {
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, .08);
    top: -150px;
    right: -100px;
}

.njb-market .njb-bc2 {
    width: 280px;
    height: 280px;
    background: rgba(30, 58, 95, .15);
    bottom: -80px;
    left: 100px;
}

.njb-market .njb-bc3 {
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, .06);
    top: 20px;
    left: 300px;
}

.njb-market .njb-content {
    max-width: 500px;
}

.njb-market .njb-logo {
    margin-bottom: 20px;
}

.njb-market .njb-eyebrow {
    font-size: 12px;
    font-weight: 700;
    color: #1E3A5F;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.3);
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.njb-market h2 {
    font-size: 46px;
    line-height: 1.05;
    text-shadow: 0 3px 14px rgba(0, 0, 0, .12);
    margin-bottom: 8px;
}

.njb-market h2 em {
    font-style: normal;
    color: #1E3A5F;
}

.njb-market .njb-sub {
    font-size: 20px;
    font-weight: 700;
    color: rgba(255, 255, 255, .9);
    margin-bottom: 22px;
}

.njb-market .njb-contacts {
    gap: 10px;
    margin-bottom: 24px;
}

.njb-market .njb-pill {
    background: rgba(30, 58, 95, .25);
    border: 1.5px solid rgba(255, 255, 255, .4);
    color: #fff;
}

.njb-market .njb-tagline {
    font-size: 28px;
}

.njb-market .njb-prod {
    position: absolute;
    background: #fff;
    border-radius: 14px;
    padding: 10px 14px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .2);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
    animation: njbFloat2 3.2s ease-in-out infinite;
}

.njb-market .njb-prod-icon { font-size: 28px; }
.njb-market .njb-prod-info { display: flex; flex-direction: column; }
.njb-market .njb-prod-name { font-size: 11px; font-weight: 700; color: #1E3A5F; }
.njb-market .njb-prod-price { font-size: 13px; font-weight: 900; color: #F5820A; }

.njb-market .njb-pc1 { top: 20px; right: 260px; }
.njb-market .njb-pc2 { top: 110px; right: 50px; animation-delay: .7s; }
.njb-market .njb-pc3 { bottom: 130px; right: 240px; animation-delay: 1.4s; }

.njb-market .njb-stats {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 340px;
    background: rgba(30, 58, 95, .85);
    backdrop-filter: blur(10px);
    border-radius: 14px 0 0 0;
    display: flex;
    overflow: hidden;
    z-index: 10;
}

.njb-market .njb-stat {
    flex: 1;
    padding: 14px 12px;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.njb-market .njb-stat:last-child { border-right: none; }
.njb-market .njb-stat-val { font-size: 20px; font-weight: 900; color: #F5820A; }
.njb-market .njb-stat-lbl { font-size: 8px; font-weight: 600; color: rgba(255, 255, 255, .6); letter-spacing: .5px; text-transform: uppercase; }

.njb-market .njb-tag {
    bottom: 70px;
    right: 20px;
    transform: rotate(-3deg);
}

.njb-market .njb-tag-bottom { font-size: 18px; }

/* ─── Compact canvas (narrow screens) ─── */
.njb-slider.is-compact .njb-phone,
.njb-slider.is-compact .njb-float,
.njb-slider.is-compact .njb-prod,
.njb-slider.is-compact .njb-stats {
    display: none;
}

.njb-slider.is-compact .njb-sell {
    background: linear-gradient(120deg, #F5820A 0%, #ff5e00 55%, #FF9A3C 100%);
}

.njb-slider.is-compact .njb-content {
    left: 40px;
    top: 47%;
    max-width: 480px;
}

.njb-slider.is-compact .carousel-indicators {
    justify-content: flex-end;
    margin-right: 4%;
    margin-bottom: 10px;
}

.njb-slider.is-compact .njb-tag {
    top: 28px;
    right: 28px;
    bottom: auto;
}

.njb-slider.is-compact .njb-sell h2,
.njb-slider.is-compact .njb-market h2 {
    font-size: 40px;
}

.njb-slider.is-compact .njb-sell .njb-tagline {
    font-size: 24px;
}

.njb-slider.is-compact .njb-market .njb-content {
    top: 50%;
}

.njb-slider.is-compact .njb-market .njb-logo {
    margin-bottom: 14px;
}

.njb-slider.is-compact .njb-market .njb-contacts {
    margin-bottom: 18px;
}

.njb-slider.is-compact .njb-market .njb-tagline {
    font-size: 20px;
}

@media (prefers-reduced-motion: reduce) {
    .njb .njb-float,
    .njb .njb-prod {
        animation: none;
    }
}
