/* Base Left Navigation Styling */
#left-navigation {
    width: 100%;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Category Styling */
.category {
    position: relative;
    margin-bottom: 15px;
}

.category-title {
    display: flex;
    justify-content: start;
    align-items: center;
    font-weight: 500;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    padding: 10px;
    transition: color 0.3s, background-color 0.3s;
    border-radius: 4px;
}
.category-title i{
    margin-right: 4px;
}

.category-title:hover {
    color: #1a73e8;
    background-color: #f0f4ff;
}

/* Subcategory Styling */
.subcategory {
    display: none;
    z-index: 100;
    margin-top: 5px;
    padding-left: 20px;
    border-left: 2px solid #1a73e8;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.subcategory div {
    font-size: 14px;
    color: #555;
    padding: 8px 0;
    cursor: pointer;
    transition: color 0.3s;
}

.subcategory div:hover {
    color: #1a73e8;
}

/* Desktop Hover Behavior for Subcategories */
@media (min-width: 768px) {
    .subcategory {
        position: absolute;
        left: 100%;
        top: 0;
        min-width: 200px;
        display: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .category:hover .subcategory {
        display: block;
    }
}

/* Mobile Toggle Behavior for Subcategories */
@media (max-width: 767px) {
    .category-title::after {
        content: "\f078"; /* FontAwesome down arrow */
        font-family: FontAwesome;
        margin-left: auto;
        transition: transform 0.3s;
    }

    .category.open .category-title::after {
        transform: rotate(180deg); /* Flip arrow on open */
    }

    .category.open .subcategory {
        display: block;
    }
}
