/********************************* resposive grid ********************************/



@media (max-width: 768px) {




#wrap {
        min-height: 100%;
        width: 100%;
        max-width: 960px;
        /* optional: limits max stretch on large screens */
        margin-left: auto;
        margin-right: auto;
        background-color: white;
        border-left: 1px solid #6c6c6c;
        border-right: 1px solid #6c6c6c;
        box-sizing: border-box;
        /* important for padding and borders */
        padding: 0 5px;
        /* small padding on sides for mobile devices */
    }


    .clear {
        display: none;
        /* no need for <br class="clear" /> when using flex */
    }



        #content {
            margin-top: 3px;
        }

















    .grid1,
    .grid2,
    .grid3,
    .grid4,
    .grid5,
    .grid6,
    .grid7,
    .grid8,
    .grid9,
    .grid10,
    .grid11,
    .grid12 {
        width: 100% !important;
        box-sizing: border-box;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .first,
    .nogrid {
        margin-left: 0 !important;
    }
}

@media (max-width: 768px) {

/******** responsive menu *****************************************************************************/



    #navigation {
        font-family: 'Fujiyama2Regular';
        font-size: 20px;
        margin-top: 5px;
        background-color: #1a4873;
        padding-top: 5px;
        padding-bottom: 5px;
        padding-right: 5px;
    }

    #navigation ul {
        list-style: none;
        font-size: 20px;
        margin-left: 0px;
        padding: 0;
        text-indent: 0px;
    }

    #navigation ul li {
        display: inline;
    }

    #navigation ul li a {
        font-family: Arial, Helvetica, sans-serif;
        text-decoration: none;
        color: white;
        font-size: 13px;
    }

    #navigation ul li a:hover {
        color: white;
    }

    #navigation ul li span.redbull {
        margin-left: 10px;
        margin-right: 10px;
        font-size: 16px;
        color: #335e84;
    }

    #navigation ul li a.active {
        font-weight: bold;
        position: relative;
        /* padding-left: 20px; */
        /* space for the arrow */
    }

    #navigation ul li a.active::before {
        /* left side arrow */
        /* content: "➤"; */
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        font-size: 16px;
        color: #fff;
        font-weight: bold;
        /* or #335e84 if you want blue */
    }

    /* Mobile Responsive Menu */
    .menu-toggle {
        display: none;
        font-size: 13px;
        background-color: #1a4873;
        color: white;
        border: 2px solid white;
        padding: 8px 12px;
        cursor: pointer;
        border-radius: 4px;
    }

}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    #nav-menu {
        display: none;
        flex-direction: column;
        background-color: white;
        padding: 10px;
        width: 100% !important;
    }

    #nav-menu.show {
        display: flex;
    }

    #nav-menu li {
        display: block;
        text-align: left;
        padding-left: 5px;
        background-color: #1a4873;
    }

    #nav-menu li span.redbull {
        display: none;
    }
}


.responsive-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-top: 2px;
}


/* Desktop - original styles retained */
#header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

/* Ensure logo image is responsive */
#header img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #header {
        flex-direction: column;
        align-items: flex-start;
        /* Align everything to the left */
    }

    .grid4,
    .grid8 {
        width: 100% !important;
        margin: 0 !important;
    }



    #nav-menu {
        display: none;
        flex-direction: column;
        background-color: white;
        padding: 10px;
        margin-left: 10px;
    }

    #nav-menu.show {
        display: flex;
    }

    #nav-menu li {
        display: block;
    }

    #nav-menu li span.redbull {
        display: none;
    }
}


/********************* menu bar and logo align with one line ***********************/


@media (max-width: 768px) {
    #header {
        width: 100%;
    }


    .grid4.first {
        width: auto !important;
        max-width: none !important;
        float: none;
        padding: 0 10px;
    }


    .headernav{
        float: right;
        width: 100% !important;
        text-align: right;
    }

    .grid4.first {
        flex: 1;
    }

    .grid8 {
        flex: 1;
    }

    .menu-toggle {
        display: inline-block;
    }

    #content{
        margin-top: 5px;
    }


}










@media (max-width: 768px) {
    #footer {
        height: 100%;
        max-height: 300px;
        position: relative;
        margin-top: 20px;
        padding: 20px 10px;
        width: 100%;
        max-width: 960px;
        margin-left: auto;
        margin-right: auto;
        clear: both;
        background-color: #1e588d;
        border-top: 1px solid #164a7a;
        box-sizing: border-box;
        display: block;
        /* Change to block display */
        text-align: center;
        color: #fff;
    }

    #footer .grid4 {
        width: 100%;
        /* Full width on mobile */
        margin-left: 0;
        margin-right: 0;
        box-sizing: border-box;
        display: block;
        /* Ensure block display for stacking */
    }

    #footer .first {
        margin-left: 0;
    }

    #footer h4,
    #footer p,
    #footer address {
        margin: 10px 0;
    }

    #footer address {
        font-style: normal;
    }

    #footer p.large {
        font-size: 16px;
    }

    #footer p.small {
        font-size: 12px;
    }

    #footer a {
        font-size: 12px;
    }
}