/* NW Access Responsive Hero Slider v3.0 */
.rbouj-wrap {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: "Poppins", Arial, sans-serif;
    isolation: isolate;
}
.rbouj-wrap *,
.rbouj-wrap *::before,
.rbouj-wrap *::after { box-sizing: border-box; }
.rbouj-wrap a { text-decoration: none; }

.rbouj-topbar {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 22px 5%;
    min-height: 100px;
    background: linear-gradient(180deg, rgba(5,18,31,.78), rgba(5,18,31,.12));
}
.rbouj-left, .rbouj-right { flex-shrink: 0; }
.rbouj-logo {
    display: block;
    width: auto;
    height: 64px;
    max-width: 190px;
    object-fit: contain;
}
.rbouj-menu-wrap { flex: 1; display: flex; justify-content: center; min-width: 0; }
.rbouj-menu {
    display: flex; align-items: center; justify-content: center;
    gap: 30px; margin: 0; padding: 0; list-style: none;
}
.rbouj-menu > li { position: relative; list-style: none; }
.rbouj-menu > li > a, .rbouj-menu .prod-link {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 0; color: #fff; background: transparent; border: 0;
    font: inherit; font-size: 13px; font-weight: 700; letter-spacing: .4px;
    cursor: pointer; white-space: nowrap; transition: color .25s ease;
}
.rbouj-menu > li > a:hover, .rbouj-menu .prod-link:hover { color: #78c3ff; }

.rbouj-sub {
    position: absolute; top: calc(100% + 10px); left: 0; z-index: 120;
    display: block; width: 310px; max-width: calc(100vw - 30px);
    margin: 0; padding: 10px; list-style: none;
    background: rgba(13,30,47,.98); border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px; box-shadow: 0 14px 40px rgba(0,0,0,.28);
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.rbouj-sub li { list-style: none; }
.rbouj-sub a {
    display: block; padding: 12px; color: #fff; font-size: 12px;
    line-height: 1.6; border-radius: 6px; overflow-wrap: anywhere;
}
.rbouj-sub a:hover { color: #fff; background: rgba(255,255,255,.1); }
.has-sub.show-sub > .rbouj-sub,
.has-sub:hover > .rbouj-sub,
.has-sub:focus-within > .rbouj-sub {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.rbouj-sub .rbouj-btn-small { margin-top: 6px; text-align: center; background: #0878d1; }

.rbouj-right { display: flex; align-items: center; gap: 10px; }
.rbouj-right .social {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; color: #fff;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18);
    border-radius: 50%; transition: background .25s ease;
}
.rbouj-right .social:hover { background: #0878d1; }
.rbouj-right .social i { font-size: 16px; }
.rbouj-menu-toggle { display: none; }

/* Full-screen slider */
.rbouj-slider {
    position: relative; width: 100%; height: 100vh; height: 100svh;
    min-height: 600px; overflow: hidden; isolation: isolate; background: #172a3a;
}
.rbouj-slide {
    position: absolute; inset: 0; z-index: 0;
    display: flex; align-items: center;
    background-color: #172a3a;
    background-image: var(--rbouj-desktop-image);
    background-repeat: no-repeat; background-size: cover;
    background-position: var(--rbouj-desktop-position, center center);
    opacity: 0; visibility: hidden;
    transition: opacity .9s ease, visibility .9s ease;
}
.rbouj-slide.active { z-index: 1; opacity: 1; visibility: visible; }
.rbouj-overlay {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: linear-gradient(90deg, rgba(5,17,29,.78) 0%, rgba(5,17,29,.48) 48%, rgba(5,17,29,.08) 100%),
                linear-gradient(0deg, rgba(5,17,29,.22), transparent 40%);
}
.rbouj-inner {
    position: relative; z-index: 2; width: min(760px, 70%);
    margin-left: 9%; padding-top: 90px; color: #fff;
}
.rbouj-eyebrow {
    margin: 0 0 22px; color: #8fd0ff; font-size: 13px;
    font-weight: 800; letter-spacing: 4px;
}
.rbouj-inner h1 {
    max-width: 760px; margin: 0 0 24px; color: #fff;
    font-size: clamp(38px, 4.4vw, 68px); font-weight: 800;
    line-height: 1.1; letter-spacing: -1.2px;
    text-shadow: 0 3px 22px rgba(0,0,0,.24);
}
.rbouj-description {
    max-width: 570px; margin: 0 0 32px; color: rgba(255,255,255,.91);
    font-size: 17px; line-height: 1.8;
}
.rbouj-cta {
    display: inline-flex; align-items: center; justify-content: center; gap: 14px;
    min-height: 54px; padding: 15px 25px; color: #fff !important;
    background: #0878d1; border: 1px solid #0878d1; border-radius: 4px;
    font-size: 14px; font-weight: 700;
    transition: background .25s ease, transform .25s ease;
}
.rbouj-cta:hover { color: #fff !important; background: #0565b3; transform: translateY(-2px); }

.rbouj-prev, .rbouj-next {
    position: absolute; top: 54%; z-index: 10;
    display: flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; padding: 0; color: #fff;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.45);
    border-radius: 50%; cursor: pointer; transform: translateY(-50%);
    transition: background .25s ease;
}
.rbouj-prev { left: 25px; } .rbouj-next { right: 25px; }
.rbouj-prev:hover, .rbouj-next:hover { background: #0878d1; }
.rbouj-dots {
    position: absolute; bottom: 34px; left: 50%; z-index: 10;
    display: flex; align-items: center; gap: 10px; transform: translateX(-50%);
}
.rbouj-dots button {
    width: 28px; height: 4px; padding: 0; background: rgba(255,255,255,.48);
    border: 0; cursor: pointer; transition: background .25s ease, width .25s ease;
}
.rbouj-dots button.active { width: 44px; background: #fff; }
.rbouj-counter {
    position: absolute; right: 5%; bottom: 28px; z-index: 10;
    display: flex; align-items: center; gap: 12px; color: #fff;
    font-size: 12px; font-weight: 700;
}
.rbouj-counter-line { display: block; width: 38px; height: 1px; background: rgba(255,255,255,.65); }

/* Tablet */
@media (max-width: 1100px) {
    .rbouj-topbar { gap: 18px; padding: 18px 3%; }
    .rbouj-logo { height: 54px; max-width: 150px; }
    .rbouj-menu { gap: 16px; }
    .rbouj-menu > li > a, .rbouj-menu .prod-link { font-size: 11px; }
    .rbouj-inner { width: 75%; margin-left: 7%; }
    .rbouj-inner h1 { font-size: clamp(36px, 5vw, 55px); }
}

/* Mobile-specific design and images */
@media (max-width: 767px) {
    .rbouj-topbar {
        min-height: 76px; padding: 12px 16px; gap: 9px;
        background: rgba(5,18,31,.82);
    }
    .rbouj-logo { height: 43px; max-width: 125px; }
    .rbouj-menu-toggle {
        display: inline-flex; align-items: center; justify-content: center;
        width: 42px; height: 42px; flex-shrink: 0; margin-left: auto;
        padding: 0; color: #fff; background: rgba(255,255,255,.12);
        border: 1px solid rgba(255,255,255,.25); border-radius: 5px; cursor: pointer;
    }
    .rbouj-right { gap: 5px; }
    .rbouj-right .social { width: 32px; height: 32px; }
    .rbouj-right .social i { font-size: 13px; }

    .rbouj-menu-wrap {
        position: absolute; top: calc(100% + 5px); left: 10px; right: 10px;
        display: none; width: auto; max-height: calc(100svh - 105px);
        overflow-y: auto; padding: 10px;
        background: rgba(9,25,40,.98); border: 1px solid rgba(255,255,255,.12);
        border-radius: 8px; box-shadow: 0 12px 30px rgba(0,0,0,.25);
    }
    .rbouj-menu-wrap.is-open { display: block; }
    .rbouj-menu { display: flex; align-items: stretch; flex-direction: column; gap: 2px; width: 100%; }
    .rbouj-menu > li > a, .rbouj-menu .prod-link {
        display: flex; justify-content: space-between; width: 100%;
        padding: 13px 10px; color: #fff; font-size: 13px; white-space: normal; text-align: left;
    }
    .rbouj-sub {
        position: static; display: none; width: 100%; max-width: none;
        margin: 0; padding: 4px 8px 8px; background: rgba(255,255,255,.05);
        border: 0; border-radius: 5px; box-shadow: none;
        opacity: 1; visibility: visible; transform: none;
    }
    .has-sub.show-sub > .rbouj-sub { display: block; }
    .rbouj-sub a { padding: 11px 10px; font-size: 12px; }

    .rbouj-slider { height: 100vh; height: 100svh; min-height: 580px; }
    .rbouj-slide {
        background-image: var(--rbouj-mobile-image, var(--rbouj-desktop-image));
        background-position: var(--rbouj-mobile-position, center center);
        background-size: cover;
    }
    .rbouj-overlay {
        background: linear-gradient(90deg, rgba(5,17,29,.48), rgba(5,17,29,.08)),
                    linear-gradient(0deg, rgba(5,17,29,.16), transparent 58%);
    }
    .rbouj-inner {
        width: 100%; margin: 0; padding: 82px 18px 70px;
    }
    .rbouj-eyebrow { margin-bottom: 10px; font-size: 10px; letter-spacing: 2px; }
    .rbouj-inner h1 {
        max-width: 360px; margin-bottom: 12px;
        font-size: clamp(24px, 6.6vw, 30px); line-height: 1.16; letter-spacing: -.35px;
        overflow-wrap: break-word;
    }
    .rbouj-description { max-width: 330px; margin-bottom: 16px; font-size: 12px; line-height: 1.5; }
    .rbouj-cta { min-height: 43px; padding: 11px 14px; gap: 8px; font-size: 11px; }
    .rbouj-prev, .rbouj-next { top: auto; bottom: 20px; width: 38px; height: 38px; transform: none; }
    .rbouj-prev { left: 15px; } .rbouj-next { right: 15px; }
    .rbouj-dots { bottom: 37px; gap: 7px; }
    .rbouj-dots button { width: 17px; }
    .rbouj-dots button.active { width: 28px; }
    .rbouj-counter { display: none; }
}

/* Small phones */
@media (max-width: 380px) {
    .rbouj-topbar { padding: 10px 11px; gap: 6px; }
    .rbouj-logo { height: 37px; max-width: 105px; }
    .rbouj-right { gap: 3px; }
    .rbouj-right .social { width: 29px; height: 29px; }
    .rbouj-inner { padding-right: 16px; padding-left: 16px; }
    .rbouj-inner h1 { font-size: 24px; }
}

/* Landscape phones */
@media (max-width: 767px) and (orientation: landscape) {
    .rbouj-slider { min-height: 480px; }
    .rbouj-inner { padding-top: 105px; padding-bottom: 65px; }
    .rbouj-inner h1 { font-size: 30px; }
    .rbouj-description { margin-bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .rbouj-slide, .rbouj-cta, .rbouj-dots button { transition: none; }
}
