/* Category Posts Menu Widget Styles */
.category-posts-menu {
    margin: 0;
    padding: 0;
    position: relative;
}

.cpm-categories {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cpm-category-item {
    margin-bottom: 5px;
    position: relative;
}

.cpm-category-item:last-child {
    margin-bottom: 0;
}

.cpm-category-item.cpm-current-category {
    /*background-color: rgba(0, 115, 170, 0.05);*/
}

.cpm-category-header {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 18px;
}

.cpm-category-header:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.cpm-category-header A {
    font-size: 16px;
}

.cpm-toggle-icon {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

}

.cpm-toggle-icon svg {
}

.cpm-icon-open {
    display: none;
}

.cpm-expanded .cpm-icon-closed {
    display: none;
}

.cpm-expanded .cpm-icon-open {
    display: block;
}

.cpm-category-link {
    font-weight: 600;
    font-size: 13px;
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    flex: 1;
}

.cpm-category-link:hover {
    color: #007456;
}

.cpm-count {
    font-weight: normal;
    font-size: 11px;
    color: #666;
    margin-left: 4px;
}

.cpm-posts {
    list-style: none;
    margin: 0;
    /*padding: 0 0 0 30px;*/
    /*background-color: rgba(0, 0, 0, 0.01);*/
    overflow: hidden;
}

.cpm-post-item {
    margin: 0;
    position: relative;
    display: flex;
    align-items: center;
    padding: 6px 5px;
}

.cpm-post-item.cpm-current-post {
    background-color: rgba(0, 115, 170, 0.08);
    border-radius: 3px;
    margin: 2px 0;
    padding: 3px 5px;
}

.cpm-post-item.cpm-current-post .cpm-post-link {
    font-weight: 500;
    color: #007456;
}

.cpm-post-icon {
    display:none;
    font-size: 14px;
    color: #999;
    margin-right: 6px;
    flex-shrink: 0;
}

.cpm-post-item.cpm-current-post .cpm-post-icon {
    color: #007456;
}

.cpm-post-link {
    color: #2c2c2c;
    text-decoration: none;
    font-size: 14px;
    display: block;
    line-height: 1.3;
}

.cpm-post-link:hover {
    color: #007456;
}

.cpm-post-item:hover .cpm-post-icon {
    color: #007456;
}

.cpm-post-date {
    font-size: 10px;
    color: #999;
    font-style: italic;
}

/* Loading animation */
.cpm-posts.cpm-loading {
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 768px) {
    .cpm-category-header {
        padding: 5px 6px;
    }

    .cpm-category-link {
        font-size: 12px;
    }

    .cpm-post-link {
        font-size: 11px;
    }

    .cpm-posts {
        padding-left: 25px;
    }
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    .cpm-category-item.cpm-current-category {
        /*background-color: rgba(77, 184, 255, 0.1);*/
    }

    .cpm-category-header:hover {
        background-color: rgba(255, 255, 255, 0.05);
    }

    .cpm-category-link {
        color: #007456;
    }

    .cpm-category-link:hover {
        color: #007456;
    }

    .cpm-post-link {
        color: #000;
    }

    .cpm-post-link:hover {
        color: #007456;
    }

    .cpm-post-icon {
        color: #000;
    }

    .cpm-post-item:hover .cpm-post-icon,
    .cpm-post-item.cpm-current-post .cpm-post-icon {
        color: #007456;
    }

    .cpm-post-item.cpm-current-post {
        background-color: rgba(0, 116, 86, 0.07);
    }

    .cpm-post-item.cpm-current-post .cpm-post-link {
        color: #007456;
    }

    .cpm-posts {
        background-color: rgba(255, 255, 255, 0.01);
    }
}

.cpm-categories .cpm-posts {
    padding-left:50px !important;
}

.cpm-categories .cpm-posts LI {
    margin-bottom: 0px !important;
}


.cpm-categories {
    line-height:1.2;
}

.cpm-categories .cpm-post-icon {
    padding-top: 2px;
}
/* Smooth animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cpm-posts {
    /*animation: slideDown 0.3s ease-out;*/
}

.cpm-count { display:none !important; }