/* PW Mega Menu Container */
.pw-mega-menu-wrapper {
    position: relative;
    display: inline-block;
}

.pw-menu-trigger {
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    color: #1a1a1a;
}

.pw-menu-container {
    position: absolute;
    top: 100%;
    top: 100%;
    left: auto;
    right: 0;
    width: 800px;
    max-width: 90vw;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    display: none;
    /* Toggled via JS being visible */
    z-index: 1000;
    overflow: hidden;
}

/* 2-Column Layout */
.pw-menu-layout {
    display: flex;
    min-height: 450px;
}

/* Sidebar (Left) */
.pw-sidebar {
    width: 280px;
    background: #fdfdfd;
    border-right: 1px solid #eee;
    padding: 10px 0;
    flex-shrink: 0;
}

.pw-sidebar-item {
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    color: #444;
    transition: background 0.2s, color 0.2s;
}

.pw-sidebar-item:hover {
    background: #f0f0f0;
}

.pw-sidebar-item.active {
    background: #eef3ff;
    color: #5a2fd3;
    /* PW Brand Color */
    font-weight: 600;
    border-right: 3px solid #5a2fd3;
}

/* Content Grid (Right) */
.pw-content-grid {
    flex-grow: 1;
    padding: 25px;
    background: #fff;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 Columns as requested */
    gap: 15px;
    align-content: start;
    overflow-y: auto;
    max-height: 500px;
}

/* Sub-Category Cards */
.pw-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    text-decoration: none;
    color: inherit;
}

.pw-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-color: #5a2fd3;
}

.pw-card-icon-wrapper {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f6f8;
    border-radius: 50%;
    color: #5a2fd3;
}

.pw-card-icon-wrapper i {
    font-size: 18px;
}

.pw-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .pw-menu-container {
        width: 100vw;
        position: fixed;
        left: 0;
        top: 60px;
        /* Adjust based on header height */
        height: calc(100vh - 60px);
        flex-direction: column;
    }

    .pw-menu-layout {
        flex-direction: column;
        height: 100%;
    }

    .pw-sidebar {
        width: 100%;
        height: 40%;
        overflow-y: auto;
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    .pw-content-grid {
        height: 60%;
        grid-template-columns: 1fr;
        /* Single column on mobile */
    }
}