/* =========================================
   1. FIXED: Images & Text Responsiveness
   ========================================= */

/* Force all images to stay inside the screen */
img, iframe, object, video, embed {
    max-width: 100% !important;
    height: auto !important;
    display: block;
}

/* Fix massive text and headlines on mobile */
@media screen and (max-width: 768px) {
    body, p, td, li {
        font-size: 16px !important;
        line-height: 1.5 !important;
        word-wrap: break-word; /* Prevents long words breaking layout */
    }

    h1, h2, h3, h4 {
        font-size: 1.4em !important;
        line-height: 1.2 !important;
    }
    
    /* Force main containers to be fluid */
    #wrapper, .wrapper, #container, .container, #content, #sidebar {
        width: 100% !important;
        min-width: 0 !important;
        float: none !important;
        padding: 0 15px !important;
        box-sizing: border-box;
    }
    #leftside{display:none;}
}

/* =========================================
   2. HAMBURGER MENU (Pure CSS)
   ========================================= */

/* Hide the checkbox logic from everyone */
.nav-toggle { display: none; }
.nav-toggle-label { display: none; }

/* MOBILE ONLY STYLES */
@media screen and (max-width: 768px) {

    /* SHOW the Hamburger Button */
    .nav-toggle-label {
        display: block;
        cursor: pointer;
        padding: 15px;
        position: absolute; /* Adjust to fixed if you want it to float */
        top: 10px;
        right: 10px;
        z-index: 999;
    }

    /* Style the hamburger lines */
    .nav-toggle-label span, 
    .nav-toggle-label span::before, 
    .nav-toggle-label span::after {
        display: block;
        background: #fff; /* Hamburger line color */
        height: 3px;
        width: 30px;
        border-radius: 2px;
        position: relative;
    }

    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        content: '';
        position: absolute;
    }

    .nav-toggle-label span::before { bottom: 8px; }
    .nav-toggle-label span::after { top: 8px; }

    /* HIDE the Menu by default on mobile */
    /* REPLACE '#nav' with your actual menu ID (e.g. .menu, #menu, .navigation) */
    #nav, .nav, #menu, ul.menu {
        display: none; 
        width: 100%;
        text-align: center;
        background: #222; /* Menu background color */
        padding-top: 20px;
    }

    /* Stack links vertically */
    #nav li, .nav li, #menu li {
        display: block;
        width: 100%;
        border-bottom: 1px solid #444;
    }

    #nav li a, .nav li a {
        padding: 15px;
        display: block;
        font-size: 18px;
    }

    /* SHOW Menu when checkbox is clicked */
    .nav-toggle:checked ~ #nav,
    .nav-toggle:checked ~ .nav,
    .nav-toggle:checked ~ #menu,
    .nav-toggle:checked ~ ul.menu {
        display: block !important;
    }
}