/*
================================================
MOBILE CSS - Simple & Clean
================================================
Makes about-new.html mobile-friendly
================================================
*/

/* ==========================================
   BASIC MOBILE FIXES
   ========================================== */

/* Make all images responsive */
img {
    max-width: 100% !important;
    height: auto !important;
}

/* Prevent horizontal scroll */
body {
    overflow-x: hidden;
}

/* ==========================================
   HAMBURGER MENU (Mobile Only)
   ========================================== */

/* Hamburger button - hidden on desktop */
#mobile-menu-btn {
    display: none;
    position: fixed;
    top: 65px;
    right: 15px;
    width: 60px;
    z-index: 1000;
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: #333;
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hamburger animation when open */
#mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-6px, 6px);
}

#mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

#mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(45deg) translate(-6px, -6px);
}

/* Mobile menu panel - hidden on desktop */
#mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100%;
    background: white;
    z-index: 999;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
}

#mobile-menu.active {
    right: 0;
}

#mobile-menu ul {
    list-style: none;
    padding: 70px 0 20px 0;
    margin: 0;
}

#mobile-menu ul li {
    border-bottom: 1px solid #f0f0f0;
}

#mobile-menu ul li a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

#mobile-menu ul li a:hover,
#mobile-menu ul li.current a {
    background: #f8f8f8;
    color: #204f2e;
}

/* Mobile menu overlay */
#mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 998;
}

#mobile-overlay.active {
    display: block;
}

/* Mobile phone bar - hidden on desktop */
#mobile-phone-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #204f2e;
    padding: 15px;
    text-align: center;
    z-index: 997;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

#mobile-phone-bar a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
}

/* ==========================================
   MOBILE RESPONSIVE (screens ≤ 768px)
   ========================================== */

@media (max-width: 768px) {
    
    /* Show mobile menu button */
    #mobile-menu-btn {
        display: block !important;
    }
    
    /* Show mobile menu panel structure */
    #mobile-menu {
        display: block !important;
    }
    
    /* Show mobile phone bar */
    #mobile-phone-bar {
        display: block !important;
    }
    
    /* Add padding to body for phone bar */
    body {
        padding-bottom: 70px !important;
    }
    
    /* Hide desktop navigation */
    nav {
        display: none !important;
    }
    
    /* Make containers full width */
    .container,
    .container_12 {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    /* Stack all grid columns */
    .grid_1, .grid_2, .grid_3, .grid_4, .grid_5, .grid_6,
    .grid_7, .grid_8, .grid_9, .grid_10, .grid_11, .grid_12 {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        float: none !important;
        display: block !important;
        margin-bottom: 5px;
    }
    
    /* Better typography on mobile */
    h1 {
        font-size: 1.8em !important;
    }
    
    h2 {
        font-size: 1.6em !important;
        margin-bottom: 15px !important;
    }
    
    h3 {
        font-size: 1.3em !important;
    }
    
    p {
        font-size: 17px !important;
        line-height: 1.6 !important;
    }
    
    /* Larger body text for better readability */
    body {
        font-size: 17px !important;
    }
    
    /* Make buttons full width on mobile */
    .more_btn,
    button,
    input[type="submit"] {
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
        margin: 15px 0 !important;
        padding: 15px 20px !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }
    
    /* Images spacing - reduced for tighter layout */
    .img4, .img5 {
        margin-bottom: 5px;
    }
    
    /* Keep social media bar on mobile - make it responsive */
    .top_section {
        display: block !important;
        position: relative !important;
        z-index: 1 !important;
    }
    
    .top_section .container {
        text-align: center !important;
        padding: 10px 15px !important;
    }
    
    .top_section p {
        font-size: 14px !important;
        margin-bottom: 8px !important;
    }
    
    .top_section .soc_icons {
        justify-content: center !important;
        display: flex !important;
        gap: 15px !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }
    
    .top_section .soc_icons li {
        margin: 0 !important;
    }
    
    .top_section .soc_icons a {
        font-size: 20px !important;
    }
    
    /* Adjust header */
    #header h1 {
        text-align: center;
        margin-bottom: 0 !important;
    }
    
    #header h1 img {
        max-width: 320px !important;
    }
    
    /* Hide gray lines under logo on mobile */
    #header .hline {
        display: none !important;
    }
    
    /* Position hamburger under logo */
    #stuck_container {
        text-align: center;
    }
    
    /* Footer text */
    .txt_priv {
        font-size: 13px !important;
        line-height: 1.6 !important;
    }
    
}

/* ==========================================
   SMALL MOBILE (screens ≤ 480px)
   ========================================== */

@media (max-width: 480px) {
    
    .container,
    .container_12 {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    h1 {
        font-size: 1.5em !important;
    }
    
    h2 {
        font-size: 1.4em !important;
    }
    
    p {
        font-size: 16px !important;
    }
    
    body {
        font-size: 16px !important;
    }
    
    #header h1 img {
        max-width: 280px !important;
    }
    
    #mobile-menu-btn {
        width: 55px;
    }
    
}
