
/* ================= DESKTOP ONLY ================= */
@media screen and (min-width: 1025px) {
    .mobile-header {
        display: none !important;
    }
}
/* ================= MOBILE ONLY (Portrait AND Landscape) ================= */
@media screen and (max-width: 1024px) {
    /* Main mobile menu items */
    .mobile-menu li a,
    .submenu-toggle {
        font-size: 18px;
        line-height: 1.4;
    }
    /* Submenu items */
    .submenu li a {
        font-size: 17px;
    }
    /* Hamburger bar text */
    .menu-title {
        font-size: 17px;
    }
    .menu-icon {
        font-size: 24px;
    }
    /* Hide desktop header & sliders */
    .header,
    .div_banner_slide,
    .div_bottom_slide {
        display: none !important;
    }
    /* Layout reset */
    #wrapper,
    .left_content,
    .right_content {
        width: 100% !important;
        float: none !important;
    }
    /* Main content width reduction for better centering */
    .main_content {
        width: 95% !important;
        max-width: 600px;
        margin: 0 auto !important;
        float: none !important;
        display: flex;
        flex-direction: column;
    }
    /* Reorder content - right_content appears on top */
    .right_content {
        order: 1;
    }
    
    .left_content {
        order: 2;
    }
    /* Mobile header */
    .mobile-header {
        display: block !important;
        width: 100%;
        float: none;
    }
    .mobile-logo img,
    .mobile-banner img {
        width: 100% !important;
        height: auto;
        display: block;
    }
    /* Hamburger bar - centered layout */
    .mobile-menu-bar {
        background: #066B97;
        color: #fff;
        padding: 12px;
        font-size: 16px;
        cursor: pointer;
        text-align: center;
    }
    /* Submenu */
    .has-submenu {
        background: #f5f5f5;
    }
    .submenu-toggle {
        display: block;
        padding: 12px;
        font-weight: bold;
        cursor: pointer;
        color: #000;
    }
    .toggle-icon {
        float: right;
        font-weight: bold;
    }
    /* Submenu list */
    .submenu {
        display: none;
        list-style: none;
        margin: 0;
        padding: 0;
        background: #ffffff;
    }
    .submenu.active {
        display: block;
    }
    .submenu li a {
        padding: 12px 12px 12px 40px !important;
        display: block;
        color: #000;
        text-decoration: none;
        border-top: 1px solid #ddd;
    }
    .menu-title {
        display: inline-block;
        font-weight: bold;
        margin-right: 8px;
    }
    .menu-icon {
        display: inline-block;
        font-size: 22px;
        vertical-align: middle;
    }
    /* Mobile menu */
    .mobile-menu {
        display: none;
        margin: 0;
        padding: 0;
        list-style: none;
        background: #f5f5f5;
    }
    .mobile-menu.active {
        display: block;
    }
    .mobile-menu li {
        border-bottom: 1px solid #ddd;
    }
    .mobile-menu li a {
        display: block;
        padding: 12px;
        color: #000;
        text-decoration: none;
        font-weight: bold;
    }
    .mobile-menu li a:hover {
        background: #eee;
    }
    /* Fix decorative images in right_content to extend full width */
    .inner_right_group {
        background-size: contain, 100% auto, 100% auto !important;
    }
    
    .box_right_group {
        margin-bottom: 15px;
    }
    
    .img_adv {
        width: 100% !important;
        height: auto;
        padding-bottom: 7px;
    }
    
    /* Make all images in right_content responsive */
    .right_content img {
        max-width: 100% !important;
        height: auto !important;
    }
    /* Mobile Footer */
    .footer {
        width: 100% !important;
        padding: 15px 0;
        margin-top: 20px;
    }
    
    .innter_footer {
        width: 100% !important;
        padding: 0 10px;
        box-sizing: border-box;
    }
    
    .footer_menu {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 15px;
    }
    
    .footer_menu a {
        display: inline-block;
        padding: 5px;
    }
    
    .display_footer {
        width: 100% !important;
        font-size: 13px;
        line-height: 1.6;
    }
    
    .display_footer img {
        width: 100%;
        max-width: 227px;
        height: auto;
        display: block;
        margin: 0 auto 10px;
        float: none !important;
    }
    
    .display_footer div {
        text-align: center !important;
        padding: 3px 0;
    }
}

/* ================= LANDSCAPE ONLY - Wider content ================= */
@media screen and (max-width: 1024px) and (orientation: landscape) {
    .main_content {
        width: 98% !important;
        max-width: 900px !important;
    }
}