.p371-cat-widget {
    list-style: none;
    padding: 0;
    margin: 0;
}

.p371-cat-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    transition: background 0.3s ease;
}

.p371-cat-parent:last-child .p371-cat-wrapper {
    border-bottom: none;
}

.p371-cat-wrapper input[type="checkbox"],
.p371-cat-submenu li input[type="checkbox"] {
    margin-right: 10px;
    flex-shrink: 0;
}

.p371-cat-wrapper label,
.p371-cat-submenu label {
    flex-grow: 1;
    cursor: pointer;
    font-size: 1em;
}

.p371-cat-parent .p371-cat-wrapper label,
.p371-cat-label {
    font-weight: bold;
}

.p371-cat-label {
    flex-grow: 1;
    font-size: 1em;
    padding: 0 4px;
}

.p371-cat-toggle {
    background: none;
    border: none;
    padding: 0 0 0 10px;
    cursor: pointer;
    line-height: 0;
}

.p371-cat-icon {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
    fill: #555;
    width: 12px;
    height: 12px;
}

.p371-cat-toggle.active .p371-cat-icon {
    transform: rotate(0deg);
}

.p371-cat-parent .p371-cat-wrapper {
    border-bottom: 1px solid #eee;
}

.p371-cat-submenu .p371-cat-wrapper {
    border-bottom: none;
    padding: 8px 0;
}

.p371-cat-submenu {
    list-style: none;
    padding: 0 0 0 20px;
    margin: 0;
    display: none;
    background: rgba(0, 0, 0, 0.02);
}

.p371-cat-submenu li {
    display: block;
}

.p371-no-results {
    width: 100%;
    text-align: center;
    padding: 40px 20px;
    font-style: italic;
}

.p371-filter-loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #333;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    animation: spin 1s linear infinite;
    margin: 15px auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.p371-search-wrapper {
    margin-bottom: 15px;
    position: relative;
}

.p371-search-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    box-sizing: border-box;
}

.p371-cat-submenu a.p371-cat-link {
    text-decoration: none;
    color: #333;
    padding: 5px;
    display: block;
    width: 100%;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.p371-cat-submenu a.p371-cat-link:hover {
    background-color: #f0f0f0;
}

.p371-cat-submenu a.p371-cat-link.active {
    font-weight: bold;
    color: #000;
    text-shadow: 0 0 1px #000;
}

.p371-cat-widget input[type="checkbox"]:checked + label {
    text-shadow: 0 0 1px #000;
}

.p371-pagination-container {
    margin-top: 20px;
}

.p371-infinite-scroll-trigger {
    height: 50px;
}

.p371-load-more-wrapper {
    text-align: center;
    margin: 20px 0;
}

.p371-load-more-btn {
    display: inline-block;
    padding: 10px 24px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.p371-load-more-btn:hover {
    background: #555;
}

.p371-load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.p371-section {
    margin-bottom: 24px;
}

.p371-section-header {
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid #eaeaea;
}

.p371-section-title {
    font-size: 1.05em;
    font-weight: 700;
    color: #333;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.p371-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.p371-tag-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.p371-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 13px;
    line-height: 1.3;
    border: 1px solid #dcdcdc;
    border-radius: 20px;
    background: #fff;
    color: #444;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.p371-tag-pill:hover {
    border-color: #777;
    background: #f7f7f7;
    color: #111;
}

.p371-tag-checkbox:checked + .p371-tag-pill {
    background: #222;
    color: #fff;
    border-color: #222;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.p371-tag-count {
    font-size: 11px;
    opacity: 0.7;
}

.p371-tag-checkbox:checked + .p371-tag-pill .p371-tag-count {
    opacity: 0.85;
    color: #eee;
}

.p371-tag-dropdown-wrapper {
    margin-top: 10px;
}

.p371-tag-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    font-size: 14px;
    color: #333;
    box-sizing: border-box;
}

.p371-tag-checklist {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
}

.p371-tag-checklist li {
    display: flex;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #eee;
}

.p371-tag-checklist li:last-child {
    border-bottom: none;
}

.p371-tag-checklist input[type="checkbox"] {
    margin-right: 10px;
    flex-shrink: 0;
}

.p371-tag-checklist label {
    flex-grow: 1;
    cursor: pointer;
    font-size: 14px;
}

.p371-tag-checklist input[type="checkbox"]:checked + label {
    font-weight: 700;
}

.isotope-container > .tmb.tmb-iso-w4 {
    width: 33.333333%;
}

.isotope-container > .tmb.tmb-iso-w3 {
    width: 25%;
}

.isotope-container > .tmb.tmb-iso-w6 {
    width: 50%;
}

.isotope-container > .tmb.tmb-iso-w12 {
    width: 100%;
}

@media (max-width: 959px) {
    .isotope-container > .tmb.tmb-iso-w4,
    .isotope-container > .tmb.tmb-iso-w3 {
        width: 50%;
    }
}

@media (max-width: 570px) {
    .isotope-container > .tmb.tmb-iso-w4,
    .isotope-container > .tmb.tmb-iso-w3,
    .isotope-container > .tmb.tmb-iso-w6 {
        width: 100%;
    }
}

.tmb.tmb-post a,
.tmb.tmb-post .t-entry-title a,
.tmb.tmb-post .uncode-single-media-wrapper a,
.tmb.tmb-post .t-entry-meta a {
    cursor: pointer !important;
    pointer-events: auto !important;
    position: relative;
    z-index: 5;
}

.tmb.tmb-post .t-inside {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

.tmb.tmb-post img {
    filter: none !important;
    opacity: 1 !important;
    transition: none !important;
}