/* ====================================================
   1. HEADER / LOGO AREA WHITE
==================================================== */
.header.container-header.full-width,
.container-header {
    background-color: #ffffff !important;
    background-image: none !important;
}

.header.container-header.full-width .grid-child,
.header.container-header.full-width .site-branding,
.header.container-header.full-width .navbar-brand {
    background-color: #ffffff !important;
}

/* ====================================================
   2. CENTER AND RESIZE LOGO RESPONSIVELY
==================================================== */
.navbar-brand {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    padding: 10px 0 !important;
    text-align: center !important;
}

.navbar-brand img {
    display: block !important;
    margin: 0 auto !important;
    height: auto !important;
    max-width: 385px !important; /* half of original width */
    width: 100% !important;      /* scales down on smaller screens */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar-brand img {
        max-width: 50% !important;  /* scales down to 50% of container */
    }
}

@media (max-width: 480px) {
    .navbar-brand img {
        max-width: 70% !important; /* ensures it fits on very small screens */
    }
}

/* ====================================================
   3. BLACK MENU BAR + HORIZONTAL MENU
==================================================== */
.main-top .mod-menu.mod-list.nav {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: center !important;
    background-color: #000000 !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

/* Menu items side-by-side */
.main-top .mod-menu.mod-list.nav > li {
    display: inline-block !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Menu links */
.main-top .mod-menu.mod-list.nav > li > a {
    display: block !important;
    padding: 12px 18px !important;
    color: #ffffff !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    font-weight: 500 !important;
    background: transparent !important;
}

/* Hover / active states */
.main-top .mod-menu.mod-list.nav > li > a:hover,
.main-top .mod-menu.mod-list.nav > li.active > a {
    background-color: #222222 !important;
}

/* ====================================================
   4. DROPDOWN MENU — BLACK
==================================================== */
.main-top .mod-menu.mod-list.nav li ul.mod-menu__sub {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    background-color: #000000 !important;
    min-width: 220px !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    z-index: 999 !important;
}

/* Show dropdown on hover */
.main-top .mod-menu.mod-list.nav li:hover > ul.mod-menu__sub {
    display: block !important;
}

/* Dropdown links */
.main-top .mod-menu.mod-list.nav li ul.mod-menu__sub li a {
    display: block !important;
    padding: 10px 16px !important;
    color: #ffffff !important;
    border-bottom: 1px solid #222222 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

/* Dropdown hover */
.main-top .mod-menu.mod-list.nav li ul.mod-menu__sub li a:hover {
    background-color: #222222 !important;
}

/* ====================================================
   5. OPTIONAL: Small screen menu adjustments
==================================================== */
@media (max-width: 992px) {
    .main-top .mod-menu.mod-list.nav {
        flex-wrap: wrap !important; /* allow wrapping on tablets */
    }
}

@media (max-width: 768px) {
    .main-top .mod-menu.mod-list.nav > li {
        display: block !important;
        width: 100% !important;
    }

    .main-top .mod-menu.mod-list.nav li ul.mod-menu__sub {
        position: static !important;
    }
}
