@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --brand-green: #1e7d32;
    --brand-green-100: #eaf6ee;
    --heading-color: #007836;
    --ink: #001f6f;
    --active-color: #007836;
    --main-color: #001f6f;
    --bs-primary-rgb: 16, 56, 79;
    --bs-link-color-rgb: 16, 56, 79;
    --brand: #1e7d32;
    --brand-100: #eaf6ee;
    --bs-success-rgb: 0, 120, 54;
    --bs-warning-rgb: 159, 198, 0;
}

html,
body {
    scroll-behavior: smooth;
}

body {
    font-family: Calibri, "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
    background: #fff;
    color: var(--main-color);
}

h2 {
    font-weight: 700;
    color: var(--heading-color);
    line-height: 1.1;
    /* text-transform: uppercase; */
    font-family: "Montserrat", sans-serif;
}

/* offset all targets a bit when scrolled into view */
[id] {
    scroll-margin-top: 120px;
}

/* adjust */

/* adjust */
.link-warning:hover {
    color: #9fc600 !important;
    opacity: 0.7 !important;
}

.small {
    font-size: 0.7rem;
}

/* ========== NAVBAR ========== */
.main-navbar {
    background: #fff;
    border-bottom: 1px solid #eef2f5;
}

.brand-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-block;
    background: linear-gradient(135deg, #22b24c, #118d2a);
}

.navbar .nav-link {
    font-weight: 700;
    letter-spacing: .2px;
    color: var(--ink);
    position: relative;
    padding: 14px 1rem;
}

.navbar .nav-link:hover {
    color: #0b2a4a;
}

.navbar-nav .nav-link.active {
    color: var(--active-color);
}

/* underline animation on desktop */
@media (min-width: 992px) {
    .navbar .nav-link::after {
        content: "";
        position: absolute;
        left: 0.5rem;
        right: 0.5rem;
        bottom: 6px;
        height: 2px;
        background: linear-gradient(90deg, #007836, #007836);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform .2s ease;
        border-radius: 1px;
    }

    .navbar .nav-link:hover::after,
    .navbar .nav-link.active::after {
        transform: scaleX(1);
    }

    /* show dropdown on hover */
    .dropdown-lg-hover:hover>.dropdown-menu {
        display: block;
    }
}

/* +/- icon for hover-open dropdowns */
.toggle-icon {
    font-weight: 900;
    line-height: 1;
}

@media (min-width: 992px) {
    .dropdown-lg-hover>a .toggle-icon::before {
        content: "+";
    }

    .dropdown-lg-hover:hover>a .toggle-icon::before,
    .dropdown-lg-hover.show>a .toggle-icon::before {
        content: "−";
    }
}

/* Dropdown look */
.dropdown-menu-clean {
    border: 1px solid #e6ecf1;
    border-radius: 10px;
    padding: .4rem;
}

.dropdown-menu-clean .dropdown-item {
    border-radius: 8px;
    padding: .5rem .75rem;
    font-weight: 600;
    color: var(--ink);
}

.dropdown-menu-clean .dropdown-item:hover {
    background: #9ed8ac;
}

/* ========== MOBILE MODAL MENU ========== */
/* ===== Mobile modal menu – restyled as clean cards ===== */
.mobile-menu-body {
    background: #f3f6fa;
    /* soft panel bg */
    padding-top: 8px !important;
    padding-bottom: 12px;
}

/* Burger menu button */
/* Burger menu button (static) */
.hamburger {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #d8e2ea;
    border-radius: 10px;
    padding: 0;
    cursor: pointer;
    flex-direction: column;
}

.hamburger:focus {
    outline: none;
    box-shadow: 0 0 0 .15rem rgba(34, 178, 76, .25);
}

.hamburger .bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink, #0c2b4b);
    border-radius: 1px;
    transition: opacity .15s ease;
}

.hamburger .bar+.bar {
    margin-top: 5px;
}

.hamburger:hover .bar {
    opacity: .85;
}


.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* spacing between items (no overlap) */
}

/* base card look for primary items (links & toggles) */
.mm-link,
.mm-toggle {
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;

    background: #ffffff;
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;

    padding: 14px 16px;
    border: 1px solid #e7eef5;
    border-radius: 14px;

    box-shadow: 0 1px 2px rgba(12, 24, 40, 0.06);
    transition: background-color .15s ease, transform .08s ease;
}

.mm-link:focus,
.mm-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 .15rem rgba(34, 178, 76, .25);
}

.mm-link:hover,
.mm-toggle:hover {
    background: #f9fbfd;
}

.mm-link:active,
.mm-toggle:active {
    transform: scale(.997);
}

/* + / − icon */
.mm-icon {
    font-weight: 900;
    font-size: 1.05rem;
    line-height: 1;
    min-width: 1rem;
    text-align: center;
    color: var(--ink);
    opacity: .9;
}

/* collapse container spacing handled in HTML via mt-2 */

/* sublinks list */
.mm-sublink {
    display: flex;
    align-items: center;
    justify-content: space-between;


}

.mm-sublink a {
    background: #f8fbff;
    color: #2c4055;
    text-decoration: none;
    font-weight: 600;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e4edf6;
    border-radius: 12px;

    margin-top: 8px;
    /* space between sub-items */
    transition: background-color .15s ease, border-color .15s ease;
}

.mm-sublink a:hover {
    background: #eef6ff;
    border-color: #d9e9ff;
}

/* subtle left accent when focusing/hovering */
.mm-sublink a {
    border-left-width: 4px;
    border-left-color: transparent;
}

.mm-sublink a:hover {
    border-left-color: #22b24c;
}

/* keep things crisp on very small screens */
@media (max-width: 360px) {

    .mm-link,
    .mm-toggle,
    .mm-sublink {
        padding: 12px 12px;
    }

    .mm-icon {
        font-size: 1rem;
    }
}

/* ===== Sidebar base ===== */
.sb {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 8px 0;
    position: sticky;
    top: 76px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}

.sb-title {
    font-size: .9rem;
    font-weight: 800;
    letter-spacing: .3px;
    color: #51606f;
    padding: 10px 16px;
    text-transform: uppercase;
}

.sb-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Links */
.sb-link.nav-link,
.sb-sublink.nav-link {
    display: block;
    color: #22313f;
    font-weight: 600;
    border-left: 4px solid transparent;
    padding: 10px 16px 10px 14px;
    border-radius: 8px;
}

.sb-link.nav-link:hover,
.sb-sublink.nav-link:hover {
    background: #9ed8ac;
    color: var(--ink);
}

.sb-link.nav-link.active,
.sb-sublink.nav-link.active {
    background: var(--brand-100);
    color: var(--ink);
    border-left-color: var(--brand);
}

/* Parent tab with inline chevron */
.sb-toggle-link {
    gap: .5rem;
}

.sb-toggle-link .chev {
    width: 10px;
    height: 10px;
    display: inline-block;
    flex: 0 0 10px;
    border-right: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
    transform: rotate(-45deg);
    /* ► closed */
    transition: transform .2s ease;
    margin-left: .25rem;
}

.sb-toggle-link[aria-expanded="true"] .chev {
    transform: rotate(45deg);
    /* ▼ open */
}

/* Collapse wrapper (smooth) */
.sb-collapse.collapse {
    transition: height .25s ease;
}

.sb-sublinks {
    list-style: none;
    margin: 6px 0 10px;
    padding: 0 6px 0 0;
}

.sb-sublink.nav-link {
    margin-left: 12px;
}

/* ========== LAYOUT ========== */
.page-wrap {
    max-width: 1440px;
    margin: 0 auto;
    padding: 24px 16px 64px;
}




/* Back-to-top button (uses Font Awesome icon) */
.back-to-top {
    position: fixed;
    right: 16px;
    bottom: 20px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--brand, #1e7d32), #118d2a);
    color: #fff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .12), 0 2px 6px rgba(0, 0, 0, .08);
    cursor: pointer;

    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, box-shadow .18s ease;
    z-index: 1030;
}

.back-to-top.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, .16), 0 3px 10px rgba(0, 0, 0, .12);
}

.back-to-top:focus {
    outline: none;
    box-shadow: 0 0 0 .15rem rgba(34, 178, 76, .28), 0 8px 18px rgba(0, 0, 0, .12);
}

/* Font Awesome icon size/color */
.back-to-top i {
    font-size: 16px;
    /* tweak as you like: 14–18px */
    color: #fff;
    /* stays readable on brand bg */
    line-height: 1;
}

@media (max-width: 380px) {
    .back-to-top {
        width: 44px;
        height: 44px;
        right: 12px;
        bottom: 16px;
    }

    .back-to-top i {
        font-size: 15px;
    }

    h2 {
        font-size: 1.25rem;
    }
}

@media (max-width: 540px) {


    h2 {
        font-size: 1.25rem;
    }

    .h4 {
        font-size: 1.1rem;
    }

    .h5 {
        font-size: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .back-to-top {
        transition: none;
    }
}