/* Responsive design for mobile devices */

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: stretch;
    }

    .header-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .header-brand {
        margin-bottom: 0;
    }

    .header-search {
        width: 100%;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

    .header-nav {
        display: none;
        width: 100%;
        flex-direction: column;
    }

    .header-nav.active {
        display: flex;
    }

    .header-nav a {
        margin: 0;
        padding: 1rem;
        border-bottom: 1px solid #ddd;
    }

    .hamburger-menu {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: #fff;
    }

    /* Megamenu adjustments for mobile */
    .megamenu {
        width: 100%;
    }

    .megamenu-content {
        display: none !important; /* Hide on mobile by default */
        position: static;
        width: 100%;
        border: none;
        padding: 0;
    }

    .megamenu.active .megamenu-content {
        display: flex !important;
        flex-direction: column;
    }

    .megamenu-column {
        padding: 0;
    }

    .megamenu-column h5 {
        padding: 1rem;
        background-color: #f4f4f4;
        margin: 0;
        border-bottom: 1px solid #ddd;
    }

    .megamenu-column a {
        padding-left: 2rem;
    }

    body.mobile-menu-active {
        overflow: hidden;
    }
}

@media (min-width: 769px) {
    .hamburger-menu {
        display: none;
    }
}
