/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 10001;
}

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

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

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

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

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100%;
    background-color: #292929;
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
}

/* Force white text for all links in mobile menu */
.mobile-menu a,
.mobile-menu .mobile-menu-link {
    color: #ffffff !important;
}

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

.mobile-menu-header {
    padding: 20px;
    border-bottom: 1px solid #444;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #000000;
}

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

.mobile-menu-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-nav {
    padding: 20px 0;
}

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

.mobile-menu-nav li {
    border-bottom: 1px solid #444;
}

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

.mobile-menu-nav a,
.mobile-menu-nav .mobile-menu-link {
    display: block;
    padding: 15px 20px;
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
    font-size: 16px;
    font-family: 'Roboto', Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-menu-nav a:hover,
.mobile-menu-nav .mobile-menu-link:hover {
    background-color: #ffc11e;
    color: #000000 !important;
}

.mobile-menu-nav a.active,
.mobile-menu-nav .mobile-menu-link.active {
    background-color: #ffc11e;
    color: #000000 !important;
}

/* Desktop styles - hide mobile menu */
@media screen and (min-width: 1150px) {
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .mobile-menu-overlay {
        display: none !important;
    }
    
    .mobile-menu {
        display: none !important;
    }
    
    .t454__leftwrapper,
    .t454__rightwrapper {
        display: block !important;
    }
}

/* Tablet styles */
@media screen and (max-width: 768px) and (min-width: 481px) {
    .t454__maincontainer {
        padding: 0 20px;
    }
    
    .mobile-menu-toggle {
        right: 25px;
    }
    
    .t454__imglogo {
        max-width: 140px !important;
        width: 140px !important;
    }
}

/* Medium screens (769px - 1149px) */
@media screen and (max-width: 1149px) and (min-width: 769px) {
    .t454__maincontainer {
        padding: 0 30px;
    }
    
    .mobile-menu-toggle {
        right: 35px;
    }
    
    .t454__imglogo {
        max-width: 180px !important;
        width: 180px !important;
    }
    
    .t454__logowrapper {
        padding-right: 80px;
    }
}

/* Mobile styles */
@media screen and (max-width: 1149px) {
    .mobile-menu-toggle {
        display: block;
        position: absolute;
        top: 50%;
        right: 30px;
        transform: translateY(-50%);
        z-index: 10001;
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }
    
    .t454__leftwrapper,
    .t454__rightwrapper {
        display: none;
    }
    
    .t454__maincontainer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 20px;
        max-width: 100%;
        overflow: hidden;
        position: relative;
    }
    
    .t454__logowrapper {
        flex: 1;
        min-width: 0;
        padding-right: 60px; /* Space for mobile menu button */
    }
    
    .t454__imglogo {
        max-width: 150px !important;
        width: 150px !important;
    }
    
    /* Adjust content padding for mobile */
    .r.t-rec_pt_120 {
        padding-top: 120px !important;
    }
}

/* Extra small devices */
@media screen and (max-width: 480px) {
    .mobile-menu {
        width: 100%;
        right: -100%;
    }
    
    .mobile-menu.active {
        right: 0;
    }
    
    .t454__imglogo {
        max-width: 120px !important;
        width: 120px !important;
    }
    
    .t454__maincontainer {
        padding: 0 15px;
    }
    
    .t454__logowrapper {
        padding-right: 50px; /* Less space for smaller screens */
    }
    
    .mobile-menu-toggle {
        right: 25px;
        width: 35px;
        height: 35px;
        padding: 8px;
    }
    
    .mobile-menu-toggle span {
        width: 20px;
        height: 2px;
    }
}

/* Smooth animations */
.mobile-menu,
.mobile-menu-overlay {
    will-change: transform, opacity;
}

/* Prevent body scroll when menu is open */
body.mobile-menu-open {
    overflow: hidden;
}
