/**
 * Menu Drawer Styles
 */

.opsim-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100001;
    visibility: hidden;
    transition: visibility 0.3s ease;
}

.opsim-drawer.is-active {
    visibility: visible;
}

.drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.opsim-drawer.is-active .drawer-overlay {
    opacity: 1;
}

.drawer-content {
    position: absolute;
    top: 0;
    left: 0;
    transform: translateX(-100%);
    width: 80%;
    max-width: 350px;
    height: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    will-change: transform;
}

.opsim-drawer.is-active .drawer-content {
    transform: translateX(0);
}

.drawer-header {
    background-color: var(--opsim-brand, #355872);
    color: #fff;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.drawer-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.drawer-close {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.drawer-close:hover {
    opacity: 0.8;
}

.drawer-close svg {
    width: 20px;
    height: 20px;
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

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

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

.mobile-menu li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    color: #000;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.mobile-menu li.menu-item-has-children > a::after {
    content: '';
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M19 9L12 15L5 9' stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    display: inline-block;
}


.mobile-menu li.current-menu-item > a,
.mobile-menu li a:hover {
    color: var(--opsim-brand, #355872);
}

/* Mobile Sub-menus */
.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #fcfcfc;
    display: none; /* Hidden by default */
}

.mobile-menu li.is-open > ul {
    display: block; /* Show when open */
}

.mobile-menu li.menu-item-has-children > a::after {
    content: '';
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M19 9L12 15L5 9' stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    display: inline-block;
    transition: transform 0.3s ease;
}

.mobile-menu li.is-open > a::after {
    transform: rotate(180deg);
}

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

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

.mobile-menu ul li a {
    padding: 10px 20px 10px 40px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: none;
}

.mobile-menu ul li a:hover {
    color: var(--opsim-brand);
}



/* Animations */
html.drawer-open,
body.drawer-open {
    overflow: hidden;
    height: 100%;
}

