/* Wrapper & Overlay */
.pg-mobile-menu-wrapper {
    position: fixed;
    top: 0;
    left: -100%; /* Hidden by default */
    width: 100%;
    height: 100%;
    z-index: 999999;
    transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.pg-mobile-menu-wrapper.active {
    left: 0;
}

.pg-menu-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1; /* Behind container */
}

/* Container */
.pg-menu-container {
    position: relative;
    width: 85%;
    max-width: 400px;
    height: 100%;
    background: #ffffff;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.1);
    overflow-y: auto; /* Ensure scrollable if content overflows */
    z-index: 2; /* On top of overlay */
}

/* Header & Centered Logo */
.pg-menu-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 15px;
    border-bottom: 1px solid #f1f1f1;
}

.pg-logo-mobile img {
    display: block;
    margin: 0 auto;
}

/* Big Aligned Cross Button */
.pg-menu-close {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 28px; /* Bigger size */
    color: #fff;
    z-index: 10001; /* High enough to be clickable */
    transition: transform 0.3s ease;
    text-decoration: none;
    line-height: 1;
}

.pg-menu-close:hover {
    transform: rotate(90deg);
    color: orange;
}

/* Menu List Styling */
.pg-mobile-menu {
    list-style: none;
    padding: 20px 0;
    margin: 0;
}

.pg-mobile-menu li {
    display: block;
    position: relative;
}

.pg-mobile-menu li a {
    display: flex;
    align-items: center;
    padding: 8px 25px;
    color: #383838;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: background 0.2s;
    justify-content: space-between; /* Ensure arrow is pushed right */
}

.pg-mobile-menu li a .pg-link-content {
    display: flex;
    align-items: center;
}

.pg-mobile-menu li a:active {
    background: #f9f9f9;
}

.pg-icon-wrap {
    width: 30px;
    font-size: 18px;
    margin-right: 15px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pg-icon-wrap img {
    border-radius: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Submenu Arrow */
.pg-arrow {
    font-size: 12px;
    color: #ccc;
    transition: transform 0.3s ease;
}

.pg-has-submenu.open > a .pg-arrow {
    transform: rotate(180deg);
}

/* Divider */
.pg-divider {
    height: 8px;
    background: #f8f9fa;
    margin: 10px 0;
}

/* Submenu Styling */
.pg-submenu {
    list-style: none;
    background: #fcfcfc;
    padding-left: 20px;
    display: none; /* Toggle this with JS */
    margin: 0;
    padding-bottom: 10px;
}

.pg-submenu li a {
    font-size: 14px;
    padding: 8px 25px;
    color: #555;
    justify-content: flex-start;
}
