/* ==========================================================================
   Mobile Responsive Styles
   ========================================================================== */

@media (max-width: 768px) {

    /* ===== Side Menu: hide on mobile ===== */
    .side-menu-wrapper {
        display: none !important;
    }

    /* ===== Main Content: full width ===== */
    .main-content-wrapper {
        margin-left: 0 !important;
        width: 100% !important;
    }

    /* ===== Home Page Layout ===== */
    body.home {
        overflow-y: auto !important;
        height: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    body.home #page {
        position: relative;
        height: auto;
        overflow: visible;
    }

    body.home .home-content-container {
        position: relative;
        width: 100%;
        height: 100vh;
        overflow: hidden;
    }

    body.home .mobile-menu-fixed {
        display: none !important;
    }

    body.home .site-footer {
        margin-left: 0;
    }

    /* ===== Fixed Page Padding ===== */
    body:not(.home) .main-content-wrapper {
        padding: 70px 20px 20px;
    }

    /* ========================================
       Mobile Vertical Menu Section
       ======================================== */

    .mobile-vertical-menu-section {
        display: block;
        background: var(--color-white);
        padding: 40px 20px;
        text-align: center;
    }

    /* Logo */
    .mobile-menu-logo {
        margin-bottom: 30px;
        padding-bottom: 30px;
        border-bottom: 1px solid #e0e0e0;
    }

    .mobile-menu-logo img {
        max-width: 200px;
        height: auto;
    }

    /* Menu List */
    .mobile-vertical-menu {
        margin-bottom: 30px;
    }

    .mobile-menu-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-menu-list li {
        margin-bottom: 15px;
    }

    .mobile-menu-list li:last-child {
        margin-bottom: 0;
    }

    .mobile-menu-list a {
        display: block;
        padding: 15px 20px;
        color: #000000;
        text-decoration: none;
        font-size: 16px;
        font-weight: 500;
        letter-spacing: 2px;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
        background: transparent;
        border-bottom: 1px solid #000000;
    }

    .mobile-menu-list li:last-child a {
        border-bottom: none;
    }

    .mobile-menu-list a::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: var(--color-primary);
        transition: left 0.3s ease;
        z-index: -1;
    }

    .mobile-menu-list a:active::before,
    .mobile-menu-list .current-menu-item a::before {
        left: 0;
    }

    .mobile-menu-list a:active,
    .mobile-menu-list .current-menu-item a {
        color: var(--color-white);
    }

    /* Banners */
    .mobile-menu-banners {
        padding-top: 30px;
        border-top: 1px solid #e0e0e0;
    }

    .mobile-menu-banners a {
        display: block;
        margin-bottom: 15px;
    }

    .mobile-menu-banners a:last-child {
        margin-bottom: 0;
    }

    .mobile-menu-banners img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    /* ========================================
       Hamburger Menu
       ======================================== */

    .mobile-menu-hamburger {
        display: block !important;
        position: fixed;
        top: 10px;
        right: 10px;
        z-index: 99999;
    }

    .hamburger-button {
        width: 45px;
        height: 45px;
        background: rgba(0, 87, 49, 0.8);
        border: none;
        border-radius: 5px;
        cursor: pointer;
        position: relative;
    }

    .hamburger-button span {
        display: block;
        width: 25px;
        height: 3px;
        background: #fff;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        transition: all 0.3s;
        border-radius: 2px;
    }

    .hamburger-button span:nth-child(1) { top: 11px; }
    .hamburger-button span:nth-child(2) { top: 21px; }
    .hamburger-button span:nth-child(3) { top: 31px; }

    .hamburger-button.active span:nth-child(1) {
        top: 21px;
        transform: translateX(-50%) rotate(45deg);
    }

    .hamburger-button.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-button.active span:nth-child(3) {
        top: 21px;
        transform: translateX(-50%) rotate(-45deg);
    }

    /* ===== Dropdown Menu ===== */
    .mobile-menu-dropdown {
        display: none;
        position: fixed;
        top: 65px;
        right: 10px;
        background: #fff;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        border-radius: 8px;
        padding: 15px;
        min-width: 220px;
        max-height: 80vh;
        overflow-y: auto;
        z-index: 99998;
    }

    .mobile-menu-dropdown.active {
        display: block;
    }

    .mobile-menu-dropdown ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .mobile-menu-dropdown li {
        margin-bottom: 8px;
    }

    .mobile-menu-dropdown li:last-child {
        margin-bottom: 0;
    }

    .mobile-menu-dropdown a {
        display: block;
        padding: 12px 15px;
        color: #000;
        text-decoration: none;
        border-radius: 5px;
        transition: all 0.3s;
    }

    .mobile-menu-dropdown .current-menu-item a,
    .mobile-menu-dropdown a:active {
        background: var(--color-primary);
        color: #fff;
    }

    /* Dropdown Logo */
    .mobile-dropdown-logo {
        text-align: center;
        padding-bottom: 15px;
        margin-bottom: 15px;
        border-bottom: 1px solid #e0e0e0;
    }

    .mobile-dropdown-logo img {
        max-height: 50px;
        width: auto;
    }

    /* Dropdown Banner */
    .mobile-dropdown-banner {
        padding-top: 15px;
        margin-top: 15px;
        border-top: 1px solid #e0e0e0;
        text-align: center;
    }

    .mobile-dropdown-banner img {
        max-width: 100%;
        height: auto;
        margin-bottom: 10px;
    }

    .mobile-dropdown-banner a:last-child img {
        margin-bottom: 0;
    }
}

/* ===== PC: Hide mobile menu section ===== */
@media (min-width: 769px) {
    .mobile-vertical-menu-section {
        display: none;
    }
}
