/* Hamburger Icon */
.mob-hamburger {
    position: relative;
    right: 20px;
    display: none;
    cursor: pointer;
    z-index: 1001;
    float:right;
    padding: 20px 0;
}
.mob-hamburger.is-open {
    top: 46px;
    position: fixed;
}
.mob-hamburger div {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 4px 0;
    transition: 0.4s;
}
.mob-hamburger.is-open div:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mob-hamburger.is-open div:nth-child(2) {
    opacity: 0;
}
.mob-hamburger.is-open div:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Popup Nav */
.mobile-popup-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 80vw;
    height: 100vh;
    background: #333;
    color: white;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    padding-top: 60px;
    overflow-y: auto; /* Enables scrolling */
}

.mobile-popup-nav.open {
    transform: translateX(0);
}

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

.mobile-popup-nav li {
    position:relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-popup-nav a, .mobile-popup-nav a:visited {
    display: block;
    color: white !important;
    padding: 15px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.mobile-popup-nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-popup-nav .submenu a {
    padding-left: 30px; 
    background-color: rgba(255, 255, 255, 0.05); 
}
.submenu .submenu a{
    padding-left: 40px;
    background-color:rgba(255, 255, 255, 0.10);
}
.submenu .submenu .submenu a{
    padding-left: 40px;
    background-color:rgba(255, 255, 255, 0.15);
}
.mobile-popup-nav .submenu a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Toggle Icon */
.toggle-icon {
    float: right;
    font-size: 14px;
    margin-left: 10px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.mobile-popup-nav li .toggle-icon {
    position: absolute;
    right: 10px;
    padding-top: 17px;
    width: 60px;
    height: 58px;
    text-align: center;
    top:0;
}
@media (max-width: 1023px) { 
    .mob-hamburger {
        display: block;
    }
    .container-nav .justify-center {
        flex-direction: row-reverse;
    }
    header .ccm-search-block-form{
        margin-top:0 !important;
        padding:15px;
    }
}
