/* Mobile Menu Styles */

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    z-index: 1001;
    position: relative;
}

.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 46px;
    height: 46px;
    position: relative;
    outline: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    /* background-color: rgba(255, 255, 255, 0.1); */
}

.hamburger-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.hamburger-btn span {
    display: block;
    width: 24px;
    height: 3px;
    background-color: #fff;
    margin: 5px auto;
    transition: all 0.3s ease;
    border-radius: 2px;
    transform-origin: center;
}

.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background-color: #ff6b6b;
}

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

.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
    background-color: #ff6b6b;
}

/* Mobile Menu Wrapper */
.mobile-menu-wrapper {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-wrapper.show {
    display: block;
}

.mobile-menu-wrapper.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.mobile-menu-container {
    position: absolute;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100%;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: auto;
    border-radius: 20px 0 0 20px;
}

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

/* Custom Scrollbar */
.mobile-menu-container::-webkit-scrollbar {
    width: 6px;
}

.mobile-menu-container::-webkit-scrollbar-track {
    background: transparent;
}

.mobile-menu-container::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

.mobile-menu-container::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}

/* Mobile Menu Header */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 20px;
    border-bottom: 1px solid #e9ecef;
    background: #727272;
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.mobile-logo img {
    max-height: 45px;
    /* filter: brightness(0) invert(1); */
}

.mobile-menu-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: white;
    outline: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Mobile Menu Content */
.mobile-menu-content {
    padding: 0;
}

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

.mobile-nav > li {
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.mobile-nav > li::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.mobile-nav > li:hover::before {
    left: 100%;
}

.mobile-nav > li > a {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 20px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.mobile-nav > li > a:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #667eea;
    transform: translateX(5px);
}

.mobile-nav > li > a i {
    margin-right: 15px;
    width: 24px;
    font-size: 20px;
    text-align: center;
    color: #667eea;
}

.mobile-nav > li > a .arrow {
    margin-left: auto;
    margin-right: 0;
    transition: transform 0.3s ease;
    color: #999;
}

.mobile-nav > li.has-submenu > a.active .arrow {
    transform: rotate(180deg);
    color: #667eea;
}

/* Mobile Submenu */
.mobile-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.mobile-submenu.active {
    max-height: 600px;
    padding: 10px 0;
}

.mobile-submenu li {
    position: relative;
}

.mobile-submenu li::before {
    content: '';
    position: absolute;
    left: 45px;
    top: 50%;
    width: 6px;
    height: 6px;
    background: #667eea;
    border-radius: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-submenu li:hover::before {
    opacity: 1;
}

.mobile-submenu li a {
    display: block;
    padding: 12px 20px 12px 60px;
    color: #666;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.mobile-submenu li a:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    transform: translateX(5px);
}

/* Mobile Search */
.mobile-search {
    padding: 25px 20px;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%);
}

.mobile-search-form {
    display: flex;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: white;
}

.mobile-search-input {
    flex: 1;
    border: none;
    padding: 15px 20px;
    outline: none;
    font-size: 15px;
    color: #333;
}

.mobile-search-input::placeholder {
    color: #999;
}

.mobile-search-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 15px 20px;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

.mobile-search-btn:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: scale(1.05);
}

/* Mobile Contact Info */
.mobile-contact-info {
    padding: 25px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-top: auto;
}

.mobile-contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px 0;
}

.mobile-contact-item i {
    margin-right: 15px;
    color: #ffeaa7;
    width: 24px;
    font-size: 20px;
    text-align: center;
}

.mobile-contact-item span {
    font-weight: 500;
    font-size: 20px;
}

.mobile-social {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.mobile-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.mobile-social a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.mobile-social a img {
    border-radius: 50%;
    width: 24px;
    height: 24px;
}

/* Responsive Design */
@media screen and (max-width: 1340px) {
    .mobile-menu-toggle {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
   .header-main {
        padding: 15px 0;
        align-items: center;
        display: flex;
        justify-content: center !important;
    }
    .menuduoi{
        display: flex !important;
        justify-content: space-between;
        align-items: center;

    }
     .menutren
 {
    display: block !important;
    width: 100%;
    height: 30px;
    background: #c12026;
    color: #fff;
    font-weight: bold;
    font-size: 20px;
    text-align: center;
    line-height: 25px;
    position: relative;
    clip-path: polygon(0 0, 30px 100%, calc(100% - 30px) 100%, 100% 0);
    margin: 0 auto;
    letter-spacing: 1px;
}
.header-main-right-item{
    display: none !important;
}
    
    .desktop-menu {
        display: none !important;
    }
    
    .header-right #search-header {
        display: none !important;
    }
    
    .head-top-wrapper {
        display: none !important;
    }
    
    .header-main {
        padding: 15px 0;
        align-items: center;
        display: flex;
        justify-content: space-between;
    }
    
    .logo img {
        max-height: 50px;
    }
    
    .header-main-right-item {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        width: auto;
    }
}

@media screen and (max-width: 768px) {
    .mobile-menu-container {
        width: 300px;
        right: -300px;
    }
    
    .mobile-nav > li > a {
        padding: 16px 18px;
        font-size: 20px;
    }
    
    .mobile-submenu li a {
        padding: 10px 18px 10px 50px;
        font-size: 20px;
    }
}

@media screen and (max-width: 480px) {
    .mobile-menu-container {
        width: 100%;
        right: -100%;
        border-radius: 0;
    }
      
    
    .hamburger-btn {
        width: 42px;
        height: 42px;
    }
    
    .hamburger-btn span {
        width: 20px;
    }
}

/* Animation for smooth transitions */
.mobile-menu-wrapper.show {
    display: block;
}

/* Prevent body scroll when menu is open */
body.mobile-menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Loading animation for submenu */
@keyframes slideDown {
    from {
        max-height: 0;
        opacity: 0;
    }
    to {
        max-height: 600px;
        opacity: 1;
    }
}

.mobile-submenu.active {
    animation: slideDown 0.4s ease forwards;
}

/* Pulse effect for hamburger button */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.hamburger-btn.active {
    animation: pulse 1s infinite;
}

/* Smooth header transition on scroll */
#header-sticky {
    transition: transform 0.1s ease-in-out;
}
