.pedi-subcat-container {
    display: flex;
    gap: 10px;
    padding: 5px 2px 15px 2px;
    flex-wrap: wrap;
}

.pedi-subcat-item {
    display: inline-block;
    background: #f1f3f5;
    color: #495057;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    border: 1px solid #e9ecef;
}

.pedi-subcat-item:hover {
    background: #e9ecef;
    color: #111;
    transform: translateY(-1px);
}

.cat-header-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.cat-header-desc {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.pedi-links-section {
    margin-top: 30px;
}

.pedi-link-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.pedi-link-card-compact {
    border: 1px solid #eef0f4;
    border-radius: 12px;
    padding: 14px;
    background: #fff;
}

.pedi-link-title-compact {
    font-weight: 700;
    margin-bottom: 10px;
}

.pedi-link-list-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pedi-link-chip-compact {
    padding: 6px 10px;
    border-radius: 999px;
    background: #f5f7fb;
    color: #24324a;
    text-decoration: none;
    font-size: 0.82rem;
    border: 1px solid #dfe5ef;
}

@media (max-width: 991px) {
    .pedi-subcat-container {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-left: -15px;
        margin-right: -15px;
        padding-left: 15px;
        padding-right: 15px;
        scrollbar-width: none;
    }

    .pedi-subcat-container::-webkit-scrollbar {
        display: none;
    }
}
