/* Scoped under .rb with rb- prefixed classes; generic element rules use :where() so Bootstrap 3 is never overridden */
.rb {
    --blue: #1d62b5;
    --blue-dark: #0f3a73;
    --navy: #0a2347;
    --green: #4a9a3a;
    --green-dark: #3a7d2d;
    --bg: #ffffff;
    --soft: #f3f7fc;
    --text: #1b2a41;
    --muted: #5a6b82;
    --radius: 20px;
}

html {
    scroll-behavior: smooth
}

:where(.rb) *, :where(.rb) *::before, :where(.rb) *::after {
    box-sizing: border-box
}

/* Typography only for the page's own blocks (.rb-scope), never for other content inside .rb */
.rb .rb-scope {
    font-family: 'Poppins',system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    -webkit-font-smoothing: antialiased
}

/* :where() keeps these resets at zero extra specificity, so Bootstrap classes (.container, .nav ...) are never overridden */
:where(.rb .rb-scope) h1, :where(.rb .rb-scope) h2, :where(.rb .rb-scope) h3, :where(.rb .rb-scope) h4,
:where(.rb .rb-scope) p, :where(.rb .rb-scope) ul, :where(.rb .rb-scope) ol {
    margin: 0;
    padding: 0
}

:where(.rb .rb-scope) h1, :where(.rb .rb-scope) h2, :where(.rb .rb-scope) h3, :where(.rb .rb-scope) h4 {
    font-family: inherit;
    font-weight: 700;
    line-height: 1.2;
    color: inherit
}

:where(.rb .rb-scope) a {
    color: inherit;
    text-decoration: none
}

.rb .rb-wrap {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px
}

.rb .rb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 16px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .15s,box-shadow .15s,background .15s
}

    .rb .rb-btn:hover {
        transform: translateY(-2px)
    }

.rb .rb-btn-primary {
    background: var(--green);
    color: #fff;
    box-shadow: 0 8px 20px rgba(74,154,58,.3)
}

    .rb .rb-btn-primary:hover {
        background: var(--green-dark)
    }

.rb .rb-btn-outline {
    border-color: var(--blue);
    color: var(--blue);
    background: transparent
}

    .rb .rb-btn-outline:hover {
        background: var(--blue);
        color: #fff
    }

.rb .rb-btn-light {
    background: #fff;
    color: var(--blue-dark)
}

.rb .rb-btn-sm {
    padding: 10px 20px;
    font-size: 14.72px
}

.rb .rb-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e6edf6
}

.rb .rb-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 12px
}

.rb .rb-logo img {
    height: 44px;
    width: auto;
    max-width: 100%;
    display: block
}

.rb .rb-footer {
    background: var(--navy);
    color: #aab9d1;
    padding: 36px 0;
    text-align: center;
    font-size: 14.4px
}

    .rb .rb-footer .rb-flogo {
        display: inline-block;
        background: #fff;
        border-radius: 12px;
        padding: 8px 16px;
        margin-bottom: 14px
    }

        .rb .rb-footer .rb-flogo img {
            height: 34px;
            width: auto;
            max-width: 100%;
            display: block
        }

    .rb .rb-footer .rb-contact {
        list-style: none;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 28px;
        margin: 0 0 18px
    }

        .rb .rb-footer .rb-contact a:hover {
            color: #fff;
            text-decoration: underline
        }

@media (max-width:560px) {
    .rb .rb-logo img {
        height: 36px
    }

    .rb .rb-nav {
        height: 64px
    }
}
/* Keep own links neutral against Bootstrap's global a:hover */
.rb .rb-btn:hover, .rb .rb-btn:focus, .rb .rb-logo:hover, .rb .rb-logo:focus, .rb .rb-flogo:hover, .rb .rb-flogo:focus {
    text-decoration: none
}

.rb .rb-btn-primary:hover, .rb .rb-btn-primary:focus {
    color: #fff
}

.rb .rb-btn-outline:hover, .rb .rb-btn-outline:focus {
    color: #fff
}

.rb .rb-btn-light:hover, .rb .rb-btn-light:focus {
    color: var(--blue-dark)
}

/* Header navigation: Bootstrap navbar markup (.navbar-nav, .navbar-collapse, .dropdown) used inside the custom header */
.rb .rb-nav-toggle {
    float: none;
    margin: 0;
    padding: 10px;
    border: 1px solid #d8e4f3;
    border-radius: 10px;
    background: #fff
}

    .rb .rb-nav-toggle .icon-bar {
        background: var(--navy)
    }

.rb .rb-nav-actions {
    padding: 0;
    border: 0;
    box-shadow: none
}

.rb .rb-nav-menu .navbar-nav {
    float: none;
    margin: 0
}

    .rb .rb-nav-menu .navbar-nav > li {
        float: none
    }

.rb .rb-nav-menu .navbar-right {
    float: none !important;
    margin: 0
}

.rb .rb-nav-menu .navbar-nav > li > a {
    padding: 10px 16px;
    border-radius: 999px;
    /* font-weight: 600; */
    font-size: 15px;
    line-height: 1.4;
    color: var(--navy)
}

    .rb .rb-nav-menu .navbar-nav > li > a:hover, .rb .rb-nav-menu .navbar-nav > li > a:focus, .rb .rb-nav-menu .navbar-nav > .open > a, .rb .rb-nav-menu .navbar-nav > .open > a:hover, .rb .rb-nav-menu .navbar-nav > .open > a:focus {
        background: var(--soft);
        color: var(--blue)
    }

.rb .rb-nav-menu .dropdown-menu {
    padding: 8px;
    border: 1px solid #e6edf6;
    border-radius: 14px;
    box-shadow: 0 14px 30px rgba(15,58,115,.14)
}

    .rb .rb-nav-menu .dropdown-menu > li > a {
        padding: 8px 14px;
        border-radius: 8px;
        font-size: 15px;
        color: var(--text)
    }

@media (min-width:768px) {
    .rb .rb-nav-menu {
        display: flex;
        align-items: center;
        gap: 6px
    }

        .rb .rb-nav-menu .navbar-nav {
            display: flex;
            align-items: center
        }
}

@media (max-width:767px) {
    .rb .rb-nav-actions {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid #e6edf6;
        box-shadow: 0 12px 24px rgba(15,58,115,.1);
        padding: 0 20px
    }

    .rb .rb-nav-menu {
        padding: 8px 0 12px
    }
}
