﻿
/* --- HEADER & NAVIGATION --- */
/* ================= HEADER ================= */
/* Match "Back to Top" button color to "View All" button */
/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden;
    width: 100%;
}
body {
    overflow: visible;
}

:root {
    overflow: visible;
}

button#back-to-top {
    position: fixed;
    bottom: 20px;
    font-size: xx-large;
    font-weight: 600;
    right: 20px;
    display: none;
    z-index: 9999;
    background-color: rgb(154 72 9) !important;
    border-color: rgb(154 72 9) !important;
    border-radius: 17%;
    width: 62px;
    height: 76px;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 4px 8px;
}

.top-bar-nav {
    background: rgb(91 40 1) 0%;
    position: sticky;
    top: 38px;
    z-index: 1050;
    padding: 0;
    min-height: 55px;
    transition: all 0.3s ease;
}
.top-header {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    z-index: 1060;
}
.navbar-scrolled {
    box-shadow: 0 3px 10px rgba(0,0,0,0.25);
}

.top-bar-nav .navbar {
    min-height: 55px;
    position: relative;
    top: 0;
}

.top-bar-nav .navbar-nav {
    /* display: flex;
        align-items: center; */
    margin-left: 0 !important;
}

.top-bar-nav .nav-item {
    display: flex;
    align-items: center;
}

/*    .top-bar-nav,
    .top-bar-nav .navbar,
    .top-bar-nav .navbar-collapse,
    .top-bar-nav .navbar-nav,
    .top-bar-nav .nav-item {
        height: 55px;
    }*/

.top-bar-nav .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 55px;
    padding: 0 14px;
    margin: 0;
    line-height: 1;
    color: white;
}

    .top-bar-nav .nav-link:hover {
        background: #ae7605;
        color: #fff !important;
    }

    .top-bar-nav .nav-link.active {
        background: #ae7605;
        color: white;
    }

.dropdown-menu {
    border: 0;
    border-radius: 0;
    margin-top: 0;
}

.dropdown-item {
    padding: 10px 20px;
}

    .dropdown-item:hover {
        background: #d84f00;
        color: #fff;
    }

@media (max-width:991px) {

    .top-bar-nav {
        top: 58px;
    }

        .top-bar-nav .nav-link {
            height: auto;
            padding: 12px 18px;
        }
}
/* --- ICON NAV BAR --- */
.icon-nav {
    background: #1e3a8a;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.icon-item {
    color: #fff;
    text-decoration: none;
    text-align: center;
    font-size: 0.75rem;
    display: block;
}

    .icon-item i {
        font-size: 1.8rem;
        display: block;
        margin-bottom: 8px;
    }

/* --- FOOTER --- */
.footer {
    background: var(--footer-bg);
    color: #b0b8c1;
    padding: 50px 0 20px;
}

    .footer h6 {
        color: #fff;
        margin-bottom: 20px;
    }

.footer-bottom {
    background: #282f3b;
    padding: 15px 0;
    font-size: 0.8rem;
}

.offcanvas-backdrop.show {
    opacity: .0;
}

.sub-link-container {
    background: #f8f9fa;
    border-left: 3px solid #ffc107;
    margin: 0 15px 10px 40px; /* Indented to show hierarchy */
    border-radius: 0 8px 8px 0;
}

.sub-link {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #555;
    font-size: 0.85rem;
    border-bottom: 1px solid #eee;
    transition: 0.2s;
}

    .sub-link:last-child {
        border-bottom: none;
    }

    .sub-link:hover {
        background: #e9ecef;
        color: #1e3a8a;
        padding-left: 20px;
    }

.nav-item.dropdown {
    position: relative;
}

    .nav-item.dropdown .dropdown-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 220px;
        background: #fff;
        border: 1px solid #ddd;
        padding: 0;
        margin: 0;
        z-index: 9999;
    }

    .nav-item.dropdown:hover .dropdown-menu {
        display: block;
    }

.top-bar-nav.is-sticky {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    background-color: #fff; /* Ensure it's not transparent */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
top-header.is-sticky {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    background-color: #fff; /* Ensure it's not transparent */
}
.dropdown-item {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
}

    .dropdown-item:hover {
        background: #ae7605;
        color: #fff;
    }
